diff options
author | Dmitry Moiseev <m0sia@m0sia.ru> | 2014-01-17 17:09:56 +0600 |
---|---|---|
committer | Dmitry Moiseev <m0sia@m0sia.ru> | 2014-01-17 17:09:56 +0600 |
commit | 3e3ce4b8a034ce88dba7cd11e41175a92d29983c (patch) | |
tree | e27847c1a26f5244954f676bb92956a0788809f7 | |
parent | 60d9ce5c83222610a66f9dd862bba40974eb211a (diff) | |
download | pyParrotZikTCP-3e3ce4b8a034ce88dba7cd11e41175a92d29983c.tar.xz pyParrotZikTCP-3e3ce4b8a034ce88dba7cd11e41175a92d29983c.zip |
removed additional quit menu item
-rw-r--r-- | SysIndicator.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/SysIndicator.py b/SysIndicator.py index b86048a..2f7689c 100644 --- a/SysIndicator.py +++ b/SysIndicator.py @@ -105,8 +105,6 @@ class UniversalMenu: def __init__(self): if sys.platform=="linux2" or sys.platform=="win32": self.gtk_menu = gtk.Menu() - self.gtk_quite_item = MenuItem("Quit",sys.exit).gtk_item - self.gtk_menu.append(self.gtk_quite_item) elif sys.platform=="darwin": self.actions = {} self.menubarMenu = NSMenu.alloc().init() @@ -115,9 +113,7 @@ class UniversalMenu: def append(self,MenuItem): if sys.platform=="linux2" or sys.platform=="win32": - self.gtk_menu.remove(self.gtk_quite_item) self.gtk_menu.append(MenuItem.gtk_item) - self.gtk_menu.append(self.gtk_quite_item) elif sys.platform=="darwin": self.actions[MenuItem.title] = MenuItem.action self.menubarMenu.addItem_(MenuItem.nsmenu_item) |