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)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
## - Yann Le Boulanger <asterix@lagaule.org>
|
## - Yann Le Boulanger <asterix@lagaule.org>
|
||||||
## - Vincent Hanquez <tab@snarc.org>
|
## - Vincent Hanquez <tab@snarc.org>
|
||||||
## - Nikos Kouremenos <kourem@gmail.com>
|
## - Nikos Kouremenos <kourem@gmail.com>
|
||||||
## - Dimitur Kirov <dkirov@gmail.com>
|
## - Dimitur Kirov <dkirov@gmail.com>
|
||||||
##
|
##
|
||||||
## Copyright (C) 2003-2005 Gajim Team
|
## Copyright (C) 2003-2005 Gajim Team
|
||||||
##
|
##
|
||||||
|
@ -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