[Pkg-bazaar-commits] ./bzr-gtk/unstable r406: Made the viz show the close menu item only if opened from another window.

Daniel Schierbeck daniel.schierbeck at gmail.com
Fri Apr 10 07:50:14 UTC 2009


------------------------------------------------------------
revno: 406
committer: Daniel Schierbeck <daniel.schierbeck at gmail.com>
branch nick: menubar
timestamp: Tue 2007-11-27 22:30:17 +0100
message:
  Made the viz show the close menu item only if opened from another window.
modified:
  viz/branchwin.py
-------------- next part --------------
=== modified file 'viz/branchwin.py'
--- a/viz/branchwin.py	2007-11-22 00:56:23 +0000
+++ b/viz/branchwin.py	2007-11-27 21:30:17 +0000
@@ -121,7 +121,8 @@
         file_menu_quit = gtk.ImageMenuItem(gtk.STOCK_QUIT, self.accel_group)
         file_menu_quit.connect('activate', lambda x: gtk.main_quit())
         
-        file_menu.add(file_menu_close)
+        if self.parent is not None:
+            file_menu.add(file_menu_close)
         file_menu.add(file_menu_quit)
 
         edit_menu = gtk.Menu()



More information about the Pkg-bazaar-commits mailing list