summaryrefslogtreecommitdiffstats
path: root/bin/convwatch.py
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-16 16:06:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-16 18:40:05 +0100
commit62951cdd17530f6218232f3d482bfd4ddd8a95ec (patch)
tree98376b3704c388143eefcb6abce624a48236eb74 /bin/convwatch.py
parentSupport for singleton constructor functions (diff)
downloadcore-62951cdd17530f6218232f3d482bfd4ddd8a95ec.tar.gz
core-62951cdd17530f6218232f3d482bfd4ddd8a95ec.zip
Introduce com.sun.star.frame.theGlobalEventBroadcaster singleton
...to supersede com.sun.star.frame.GlobalEventBroadcaster single-instance service. Change-Id: I74ecaadadb4c600d39979aa7c13b6389bed38fd7
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)