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:
|
if multiple_accounts:
|
||||||
label = gtk.Label()
|
label = gtk.Label()
|
||||||
label.set_markup('<u>' + account.upper() +'</u>')
|
label.set_markup('<u>' + account.upper() +'</u>')
|
||||||
item = gtk.SeparatorMenuItem()
|
item = gtk.MenuItem()
|
||||||
item.add(label)
|
item.add(label)
|
||||||
item.connect('state-changed', self.on_bm_header_changed_state)
|
item.connect('state-changed', self.on_bm_header_changed_state)
|
||||||
sub_menu.append(item)
|
sub_menu.append(item)
|
||||||
|
|
|
@ -148,13 +148,9 @@ class Systray:
|
||||||
item = gtk.SeparatorMenuItem()
|
item = gtk.SeparatorMenuItem()
|
||||||
sub_menu.append(item)
|
sub_menu.append(item)
|
||||||
|
|
||||||
item = gtk.SeparatorMenuItem()
|
uf_show = helpers.get_uf_show(show)
|
||||||
icon = state_images[show]
|
item = gtk.ImageMenuItem(uf_show)
|
||||||
label = gtk.Label(helpers.get_uf_show(show))
|
item.set_image(state_images[show])
|
||||||
hbox = gtk.HBox(False, 3)
|
|
||||||
hbox.pack_start(icon, False, False)
|
|
||||||
hbox.pack_start(label, False, False)
|
|
||||||
item.add(hbox)
|
|
||||||
sub_menu.append(item)
|
sub_menu.append(item)
|
||||||
item.connect('activate', self.on_show_menuitem_activate, show)
|
item.connect('activate', self.on_show_menuitem_activate, show)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue