deskbar-applet r2018 - in branches/gnome-2-22: . deskbar/ui



Author: sebp
Date: Wed Mar 19 18:11:56 2008
New Revision: 2018
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2018&view=rev

Log:
Only store window position when window UI is used

Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/deskbar/ui/CuemiacWindowController.py

Modified: branches/gnome-2-22/deskbar/ui/CuemiacWindowController.py
==============================================================================
--- branches/gnome-2-22/deskbar/ui/CuemiacWindowController.py	(original)
+++ branches/gnome-2-22/deskbar/ui/CuemiacWindowController.py	Wed Mar 19 18:11:56 2008
@@ -2,6 +2,7 @@
 import gtk.gdk
 import gnomevfs
 import logging
+import deskbar
 import deskbar.interfaces.Controller
 import deskbar.core.Utils
 from deskbar.ui.About import show_about
@@ -37,9 +38,12 @@
         if self._model.get_clear_entry():
             self._view.clear_all()
         window = self._view.get_toplevel()
-        x, y = window.get_position()      
-        self._model.set_window_x(x)      
-        self._model.set_window_y(y)
+        x, y = window.get_position()
+        
+        if self._model.get_ui_name() == deskbar.WINDOW_UI_NAME:
+            self._model.set_window_x(x)
+            self._model.set_window_y(y)
+        
         window.hide()
         return True
 



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