mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
remove useless about menu in wicd's tray icon
This commit is contained in:
@@ -477,7 +477,6 @@ class TrayIcon(object):
|
|||||||
</menu>
|
</menu>
|
||||||
<separator/>
|
<separator/>
|
||||||
<menuitem action="Info"/>
|
<menuitem action="Info"/>
|
||||||
<menuitem action="About"/>
|
|
||||||
<menuitem action="Quit"/>
|
<menuitem action="Quit"/>
|
||||||
</menu>
|
</menu>
|
||||||
</menubar>
|
</menubar>
|
||||||
@@ -489,8 +488,6 @@ class TrayIcon(object):
|
|||||||
('Info', gtk.STOCK_INFO, "_Connection Info", None,
|
('Info', gtk.STOCK_INFO, "_Connection Info", None,
|
||||||
'Information about the current connection',
|
'Information about the current connection',
|
||||||
self.on_conn_info),
|
self.on_conn_info),
|
||||||
('About', gtk.STOCK_ABOUT, '_About...', None,
|
|
||||||
'About wicd-tray-icon', self.on_about),
|
|
||||||
('Quit',gtk.STOCK_QUIT,'_Quit',None,'Quit wicd-tray-icon',
|
('Quit',gtk.STOCK_QUIT,'_Quit',None,'Quit wicd-tray-icon',
|
||||||
self.on_quit),
|
self.on_quit),
|
||||||
]
|
]
|
||||||
@@ -499,7 +496,7 @@ class TrayIcon(object):
|
|||||||
self.manager = gtk.UIManager()
|
self.manager = gtk.UIManager()
|
||||||
self.manager.insert_action_group(actg, 0)
|
self.manager.insert_action_group(actg, 0)
|
||||||
self.manager.add_ui_from_string(menu)
|
self.manager.add_ui_from_string(menu)
|
||||||
self.menu = (self.manager.get_widget('/Menubar/Menu/About').
|
self.menu = (self.manager.get_widget('/Menubar/Menu/Quit').
|
||||||
props.parent)
|
props.parent)
|
||||||
self.gui_win = None
|
self.gui_win = None
|
||||||
self.current_icon_path = None
|
self.current_icon_path = None
|
||||||
|
|||||||
Reference in New Issue
Block a user