deskbar-applet-02-multihead-support.diff revision 15713
--- deskbar-applet-2.23.2.old/deskbar/ui/AbstractCuemiacDeskbarIcon.py 2008-05-29 16:18:39.929746000 +0100
+++ deskbar-applet-2.23.2/deskbar/ui/AbstractCuemiacDeskbarIcon.py 2008-05-29 16:20:59.272081000 +0100
@@ -31,7 +31,7 @@
self._active_view = deskbar.BUTTON_UI_NAME
def create_window_ui(self):
- self._view = CuemiacWindowView(self._controller, self._core)
+ self._view = CuemiacWindowView(self._controller, self._core, self.applet)
self._active_view = deskbar.WINDOW_UI_NAME
def _setup_core (self):
--- deskbar-applet-2.23.2.old/deskbar/ui/CuemiacAlignedView.py 2008-05-29 16:18:39.930265000 +0100
+++ deskbar-applet-2.23.2/deskbar/ui/CuemiacAlignedView.py 2008-05-29 16:27:55.476993000 +0100
@@ -24,6 +24,7 @@
self.applet.connect("change-orient", self._on_change_orient)
self._screen_height = self.get_screen().get_height ()
@@ -59,6 +60,9 @@
def get_toplevel(self):
return self
+
+ def get_topwindow(self):
+ return self.applet.window
def receive_focus(self, time):
--- deskbar-applet-2.23.5.old/deskbar/ui/CuemiacWindowView.py 2008-05-29 16:18:39.930125000 +0100
+++ deskbar-applet-2.23.5/deskbar/ui/CuemiacWindowView.py 2008-05-29 16:25:32.072521000 +0100
@@ -8,11 +8,13 @@
This class is responsible for setting up the GUI.
"""
- def __init__(self, controller, model):
+ def __init__(self, controller, model, applet):
AbstractCuemiacView.__init__(self, controller, model)
gtk.Window.__init__(self)
self.__small_window_height = None
+ self.applet = applet
self.connect("configure-event", self.__save_window_size)
self.connect("delete-event", self._controller.on_quit)
@@ -50,6 +50,9 @@
def get_toplevel(self):
return self
+ def get_topwindow(self):
+ return self.applet.window
+
def receive_focus(self, time):
--- deskbar-applet-2.25.2/deskbar/ui/CuemiacWindowController.py-orig 2009-01-22 15:20:21.660950000 -0600
+++ deskbar-applet-2.25.2/deskbar/ui/CuemiacWindowController.py 2009-01-22 15:23:17.851201000 -0600
@@ -1,5 +1,6 @@
import gtk
import gtk.gdk
+import gnome
import logging
import deskbar
@@ -47,14 +48,14 @@ class CuemiacWindowController(deskbar.in
def on_show_about(self, sender):
- show_about(self._view.get_toplevel())
+ show_about(self._view.get_topwindow())
def on_show_preferences(self, sender):
prefs = DeskbarPreferences(self._model)
def on_show_help(self, sender):
- deskbar.core.Utils.launch_default_for_uri_and_scheme("ghelp:deskbar")
+ gnome.ui.help_display_uri_on_screen("ghelp:deskbar", (self._view_get_topwindow()).get_screen())
def on_query_entry_changed(self, entry):