From 3e3ce4b8a034ce88dba7cd11e41175a92d29983c Mon Sep 17 00:00:00 2001 From: Dmitry Moiseev Date: Fri, 17 Jan 2014 17:09:56 +0600 Subject: removed additional quit menu item --- SysIndicator.py | 4 ---- 1 file changed, 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) -- cgit v1.2.1