deskbar-applet r2017 - in trunk: . deskbar/ui



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

Log:
Only store window position when window UI is used

Modified:
   trunk/ChangeLog
   trunk/deskbar/ui/CuemiacWindowController.py

Modified: trunk/deskbar/ui/CuemiacWindowController.py
==============================================================================
--- trunk/deskbar/ui/CuemiacWindowController.py	(original)
+++ trunk/deskbar/ui/CuemiacWindowController.py	Wed Mar 19 18:10:40 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
@@ -38,9 +39,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]