[kupfer: 4/10] ui: Connect d-bus method handlers after load and display
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 4/10] ui: Connect d-bus method handlers after load and display
- Date: Thu, 31 Mar 2011 16:50:43 +0000 (UTC)
commit 463082ac81de39035751ebc43f506d240b206f6b
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Mar 31 18:49:21 2011 +0200
ui: Connect d-bus method handlers after load and display
kupfer/ui/browser.py | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/kupfer/ui/browser.py b/kupfer/ui/browser.py
index aeeb14d..19940e5 100644
--- a/kupfer/ui/browser.py
+++ b/kupfer/ui/browser.py
@@ -2241,12 +2241,6 @@ class WindowController (pretty.OutputMixin):
except listen.NoConnectionError:
kserv = None
else:
- kserv.connect("present", self.on_present)
- kserv.connect("show-hide", self.on_show_hide)
- kserv.connect("put-text", self.on_put_text)
- kserv.connect("put-files", self.on_put_files)
- kserv.connect("execute-file", self.on_execute_file)
- kserv.connect("quit", self.quit)
keyobj = keybindings.GetKeyboundObject()
keyobj.connect("bound-key-changed",
lambda x,y,z: kserv.BoundKeyChanged(y,z))
@@ -2260,6 +2254,14 @@ class WindowController (pretty.OutputMixin):
self.initialize(data_controller)
sch.display()
+ if kserv:
+ kserv.connect("present", self.on_present)
+ kserv.connect("show-hide", self.on_show_hide)
+ kserv.connect("put-text", self.on_put_text)
+ kserv.connect("put-files", self.on_put_files)
+ kserv.connect("execute-file", self.on_execute_file)
+ kserv.connect("quit", self.quit)
+
if not quiet:
self.activate()
gobject.idle_add(self.lazy_setup)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]