[POS-commit] r68 - in Kiwi2: . Kiwi2
Lorenzo Gil Sanchez
lgs at async.com.br
Sat Mar 5 17:52:47 BRT 2005
Author: lgs
Date: 2005-03-05 17:52:47 -0300 (Sat, 05 Mar 2005)
New Revision: 68
Modified:
Kiwi2/ChangeLog
Kiwi2/Kiwi2/initgtk.py
Log:
* Kiwi2/initgtk.py (quit_if_last): also quit if there is no toplevels
(e.g., this function was called after hiding the last toplevel)
Modified: Kiwi2/ChangeLog
===================================================================
--- Kiwi2/ChangeLog 2005-03-05 20:52:02 UTC (rev 67)
+++ Kiwi2/ChangeLog 2005-03-05 20:52:47 UTC (rev 68)
@@ -1,5 +1,8 @@
2005-03-05 Lorenzo Gil Sanchez <lgs at sicem.biz>
+ * Kiwi2/initgtk.py (quit_if_last): also quit if there is no toplevels
+ (e.g., this function was called after hiding the last toplevel)
+
* examples/News/news3.py (Shell.on_ok__clicked): stay on the safe
side by checking if there is something selected
Modified: Kiwi2/Kiwi2/initgtk.py
===================================================================
--- Kiwi2/Kiwi2/initgtk.py 2005-03-05 20:52:02 UTC (rev 67)
+++ Kiwi2/Kiwi2/initgtk.py 2005-03-05 20:52:47 UTC (rev 68)
@@ -87,5 +87,5 @@
tl.get_property('visible') == True]
#print 'Toplevel visible windows:', real_toplevels
# check if this window is the last one
- if len(real_toplevels) == 1:
+ if len(real_toplevels) <= 1:
gtk.main_quit()
More information about the POS-commit
mailing list