diff --git a/src/roster_window.py b/src/roster_window.py index 72770613b..9ccaa6d5a 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -410,7 +410,7 @@ class RosterWindow: if multiple_accounts: label = gtk.Label() label.set_markup('' + account.upper() +'') - item = gtk.SeparatorMenuItem() + item = gtk.MenuItem() item.add(label) item.connect('state-changed', self.on_bm_header_changed_state) sub_menu.append(item) diff --git a/src/systray.py b/src/systray.py index faf39448a..a4a862ce1 100644 --- a/src/systray.py +++ b/src/systray.py @@ -4,7 +4,7 @@ ## - Yann Le Boulanger ## - Vincent Hanquez ## - Nikos Kouremenos -## - Dimitur Kirov +## - Dimitur Kirov ## ## Copyright (C) 2003-2005 Gajim Team ## @@ -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)