summaryrefslogtreecommitdiff
path: root/bin/convwatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/convwatch.py')
-rw-r--r--bin/convwatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/convwatch.py b/bin/convwatch.py
index bdb09beb4b8e..bef3f9e16c77 100644
--- a/bin/convwatch.py
+++ b/bin/convwatch.py
@@ -237,8 +237,8 @@ def loadFromURL(xContext, url):
props = [("Hidden", True), ("ReadOnly", True)] # FilterName?
loadProps = tuple([mkPropertyValue(name, value) for (name, value) in props])
xListener = EventListener()
- xGEB = xContext.ServiceManager.createInstanceWithContext(
- "com.sun.star.frame.GlobalEventBroadcaster", xContext)
+ xGEB = xContext.getValueByName(
+ "/singletons/com.sun.star.frame.theGlobalEventBroadcaster")
xGEB.addDocumentEventListener(xListener)
try:
xDoc = xDesktop.loadComponentFromURL(url, "_blank", 0, loadProps)