fix logic (for seperator now only use gtk.SeparatorMenuItem())
This commit is contained in:
parent
d7f14f8f59
commit
cd024055a9
|
@ -410,7 +410,7 @@ class RosterWindow:
|
|||
if multiple_accounts:
|
||||
label = gtk.Label()
|
||||
label.set_markup('<u>' + account.upper() +'</u>')
|
||||
item = gtk.SeparatorMenuItem()
|
||||
item = gtk.MenuItem()
|
||||
item.add(label)
|
||||
item.connect('state-changed', self.on_bm_header_changed_state)
|
||||
sub_menu.append(item)
|
||||
|
|
|
@ -148,13 +148,9 @@ class Systray:
|
|||
item = gtk.SeparatorMenuItem()
|
||||
sub_menu.append(item)
|
||||
|
||||
item = gtk.SeparatorMenuItem()
|
||||
icon = state_images[show]
|
||||
label = gtk.Label(helpers.get_uf_show(show))
|
||||
hbox = gtk.HBox(False, 3)
|
||||
hbox.pack_start(icon, False, False)
|
||||
hbox.pack_start(label, False, False)
|
||||
item.add(hbox)
|
||||
uf_show = helpers.get_uf_show(show)
|
||||
item = gtk.ImageMenuItem(uf_show)
|
||||
item.set_image(state_images[show])
|
||||
sub_menu.append(item)
|
||||
item.connect('activate', self.on_show_menuitem_activate, show)
|
||||
|
||||
|
|
Loading…
Reference in New Issue