menu in systray can now be teared off and reattached

This commit is contained in:
Yann Leboulanger 2004-06-17 17:11:29 +00:00
parent 154c6914d4
commit 9655c8b299
1 changed files with 3 additions and 1 deletions

View File

@ -1265,9 +1265,11 @@ class systray:
def mk_menu(self, event):
menu = gtk.Menu()
item = gtk.TearoffMenuItem()
menu.append(item)
item = gtk.MenuItem(_("Status"))
menu.append(item)
menu_sub = gtk.Menu()
item.set_submenu(menu_sub)
item = gtk.MenuItem(_("Online"))