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



Author: sebp
Date: Sun Mar 22 12:18:46 2009
New Revision: 2624
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2624&view=rev

Log:
Close window when it loses focus (patch by Omair Majid)

Modified:
   trunk/ChangeLog
   trunk/deskbar/ui/CuemiacAlignedView.py
   trunk/deskbar/ui/CuemiacWindowView.py

Modified: trunk/deskbar/ui/CuemiacAlignedView.py
==============================================================================
--- trunk/deskbar/ui/CuemiacAlignedView.py	(original)
+++ trunk/deskbar/ui/CuemiacAlignedView.py	Sun Mar 22 12:18:46 2009
@@ -37,6 +37,7 @@
         
         self.connect("delete-event", self._controller.on_quit)
         self.connect("destroy-event", self._controller.on_quit)
+        self.connect("focus-out-event", self._controller.on_quit)
         self.connect("key-press-event", self.__on_window_key_press_event)
        
         self.set_title("Deskbar Applet")

Modified: trunk/deskbar/ui/CuemiacWindowView.py
==============================================================================
--- trunk/deskbar/ui/CuemiacWindowView.py	(original)
+++ trunk/deskbar/ui/CuemiacWindowView.py	Sun Mar 22 12:18:46 2009
@@ -17,6 +17,7 @@
         self.connect("configure-event", self.__save_window_size)
         self.connect("delete-event", self._controller.on_quit)
         self.connect("destroy-event", self._controller.on_quit)
+        self.connect("focus-out-event", self._controller.on_quit) 
         self.connect("key-press-event", self.__on_window_key_press_event)
        
         self.set_title("Deskbar Applet")



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