deskbar-applet r1873 - branches/button-ui/deskbar/ui



Author: sebp
Date: Fri Jan 25 22:25:28 2008
New Revision: 1873
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=1873&view=rev

Log:
Forgot to set self._active_view when UI changed during runtime

Modified:
   branches/button-ui/deskbar/ui/DeskbarTray.py

Modified: branches/button-ui/deskbar/ui/DeskbarTray.py
==============================================================================
--- branches/button-ui/deskbar/ui/DeskbarTray.py	(original)
+++ branches/button-ui/deskbar/ui/DeskbarTray.py	Fri Jan 25 22:25:28 2008
@@ -76,12 +76,10 @@
         # Deskbar gnome-2-18 branch.
         if self.__core.get_ui_name() == deskbar.WINDOW_UI_NAME:
             self.__create_window_ui()
-            self._active_view = deskbar.WINDOW_UI_NAME
         else:
             # We need to use an AlignedWindow, which needs a Widget (self.image
             # in this case) and the applet (self.applet)
             self.__create_button_ui()
-            self._active_ui = deskbar.BUTTON_UI_NAME
 
         self.__view.set_sensitive(False)
         
@@ -91,9 +89,11 @@
         
     def __create_button_ui(self):
         self.__view = CuemiacAlignedView(self.__controller, self.__core, self.image, self.applet)
+        self._active_ui = deskbar.BUTTON_UI_NAME
         
     def __create_window_ui(self):
         self.__view = CuemiacWindowView(self.__controller, self.__core)
+        self._active_view = deskbar.WINDOW_UI_NAME
         
     def __setup_applet_menu(self):
         self.applet.setup_menu_from_file (



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