[Deskbar] [PATCH] Enable cuemiac via pref dialog - fixed
- From: Mikkel Kamstrup Erlandsen <kamstrup daimi au dk>
- To: deskbar-applet-list gnome org
- Subject: [Deskbar] [PATCH] Enable cuemiac via pref dialog - fixed
- Date: Mon, 23 Jan 2006 23:05:21 +0100
Well. I have to have been tired last night. But here it is. Feast
yourselves on the C!!!!!111onre OMG wow lol rofl btw pwn!
Cheers
Mikkel
? cuemiac-gconf-enable-1.patch
? deskbar/evolution/.deps
? deskbar/evolution/.libs
? deskbar/evolution/_evolution.la
? deskbar/gnomedesktop/.deps
? deskbar/gnomedesktop/.libs
? deskbar/gnomedesktop/_gnomedesktop.la
? deskbar/gnomedesktop/_gnomedesktop.lo
? deskbar/gnomedesktop/_gnomedesktopmodule.lo
? deskbar/iconentry/.deps
? deskbar/iconentry/.libs
? deskbar/iconentry/_iconentry.la
? deskbar/iconentry/_iconentry.lo
? deskbar/iconentry/_iconentrymodule.lo
? deskbar/iconentry/ephy-icon-entry.lo
? deskbar/keybinder/.deps
? deskbar/keybinder/.libs
? deskbar/keybinder/_keybinder.la
? po/.intltool-merge-cache
Index: deskbar/DeskbarApplet.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/DeskbarApplet.py,v
retrieving revision 1.15
diff -u -r1.15 DeskbarApplet.py
--- deskbar/DeskbarApplet.py 23 Jan 2006 18:44:59 -0000 1.15
+++ deskbar/DeskbarApplet.py 23 Jan 2006 22:00:41 -0000
@@ -38,6 +38,7 @@
self.loader.connect ("module-stopped", self.module_list.module_toggled_cb)
self.loader.connect ("module-initialized", self._connect_if_async)
+ # Set and retrieve the UI to be used
ui_name = deskbar.GCONF_CLIENT.get_string(self.prefs.GCONF_UI_NAME)
if ui_name == None:
ui_name = deskbar.COMPLETION_UI_NAME
@@ -47,12 +48,13 @@
elif ui_name == deskbar.CUEMIAC_UI_NAME:
self.ui = CuemiacUI (applet)
+ # Set up the chosen UI
self.set_up_ui_signals ()
self.ui.set_sensitive (False)
self.applet.add(self.ui.get_view ())
self.applet.show_all()
- deskbar.GCONF_CLIENT.notify_add (deskbar.GCONF_UI_NAME, lambda x, y, z, a: self.on_ui_changed (z.value))
+ deskbar.GCONF_CLIENT.notify_add (self.prefs.GCONF_UI_NAME, lambda x, y, z, a: self.on_ui_changed (z.value))
# Set and retreive enabled handler list from gconf
deskbar.GCONF_CLIENT.notify_add(deskbar.GCONF_ENABLED_HANDLERS, lambda x, y, z, a: self.on_config_handlers(z.value))
@@ -251,3 +253,4 @@
self.applet.add (self.ui.get_view())
self.applet.show_all ()
self.ui.set_sensitive(True)
+ print "Changing UI to:", value.get_string ()
Index: deskbar/ui/DeskbarPreferencesUI.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/DeskbarPreferencesUI.py,v
retrieving revision 1.2
diff -u -r1.2 DeskbarPreferencesUI.py
--- deskbar/ui/DeskbarPreferencesUI.py 23 Jan 2006 00:54:40 -0000 1.2
+++ deskbar/ui/DeskbarPreferencesUI.py 23 Jan 2006 22:00:41 -0000
@@ -188,7 +188,6 @@
deskbar.GCONF_CLIENT.set_string(applet.prefs.GCONF_UI_NAME, COMPLETION_UI_NAME)
elif self.cuemiac_ui_radio.get_active ():
deskbar.GCONF_CLIENT.set_string(applet.prefs.GCONF_UI_NAME, CUEMIAC_UI_NAME)
- print "UI"
def on_config_ui (self, value):
if value != None and value.type == gconf.VALUE_STRING:
Index: deskbar/ui/cuemiac/Cuemiac.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/cuemiac/Cuemiac.py,v
retrieving revision 1.7
diff -u -r1.7 Cuemiac.py
--- deskbar/ui/cuemiac/Cuemiac.py 23 Jan 2006 00:54:41 -0000 1.7
+++ deskbar/ui/cuemiac/Cuemiac.py 23 Jan 2006 22:00:42 -0000
@@ -694,9 +694,9 @@
def show_history (self):
if self.deskbar_button.get_active_arrow ():
- self.emit ("request-history-show", self.deskbar_button.button_arrow, self.applet.get_orient())
+ print "FIXME show history"
else:
- self.emit ("request-history-hide")
+ print "FIXME hide history"
def get_view (self):
return self.deskbar_button
@@ -735,7 +735,7 @@
self.box.pack_start (self.entry, False)
self.box.pack_start (self.scroll_win)
self.cview.append_method = gtk.TreeStore.append
- if orientation == gnomeapplet.ORIENT_DOWN:
+ if orient == gnomeapplet.ORIENT_DOWN:
self.deskbar_button.set_button_image_from_file (join(deskbar.ART_DATA_DIR, "deskbar-horiz.svg"))
else:
self.deskbar_button.set_button_image_from_file (join(deskbar.ART_DATA_DIR, "deskbar-vert.svg"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]