[caribou] put the gconf client in the main window class



commit e248a9304c814649dd63963c54f86135b62ac149
Author: Eitan Isaacson <eitan monotonous org>
Date:   Tue Dec 8 09:56:13 2009 -0800

    put the gconf client in the main window class

 src/caribou/window.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/caribou/window.py b/src/caribou/window.py
index 7464db9..dff724f 100644
--- a/src/caribou/window.py
+++ b/src/caribou/window.py
@@ -41,6 +41,7 @@ class CaribouWindow(gtk.Window):
         self._vbox.pack_start(keyboard.CaribouKeyboard(qwerty))
 
         self.connect("size-allocate", lambda w, a: self._update_position())
+        self._gconf_client = gconf.client_get_default()
 
         self._cursor_location = gdk.Rectangle()
         self._entry_location = gdk.Rectangle()
@@ -145,7 +146,6 @@ class CaribouWindowDocked(CaribouWindow,
         opacity.ProximityWindowBase.__init__(
             self, min_alpha=0.5, max_alpha=0.8)
 
-        self._gconf_client = gconf.client_get_default()
         self.connect('map-event', self.__onmapped)
 
     def __onmapped(self, obj, event):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]