From f1c58e462bec5dca277d40eb3ef56b731bc87356 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 7 Aug 2005 15:22:51 +0000 Subject: [PATCH] gtk.MenuItem() -> gtk.SeparatorMenuItem() --- src/chat.py | 2 +- src/roster_window.py | 8 ++++---- src/systray.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/chat.py b/src/chat.py index 6f49d8b09..0bf8d87de 100644 --- a/src/chat.py +++ b/src/chat.py @@ -269,7 +269,7 @@ class Chat: menu.connect('deactivate', self.on_popup_deactivate) # common menuitems (tab switches) if len(self.xmls) > 1: # if there is more than one tab - menu.append(gtk.MenuItem()) # seperator + menu.append(gtk.SeparatorMenuItem()) # seperator for jid in self.xmls: if jid != self.get_active_jid(): item = gtk.ImageMenuItem(_('Switch to %s') % self.names[jid]) diff --git a/src/roster_window.py b/src/roster_window.py index bd069fcac..c4e5af022 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.MenuItem() + item = gtk.SeparatorMenuItem() item.add(label) item.connect('state-changed', self.on_bm_header_changed_state) sub_menu.append(item) @@ -426,7 +426,7 @@ class RosterWindow: sub_menu.append(item) if at_least_one_account_connected: - newitem = gtk.MenuItem() # seperator + newitem = gtk.SeparatorMenuItem() # seperator sub_menu.append(newitem) newitem = gtk.ImageMenuItem(_('Manage Bookmarks...')) @@ -913,7 +913,7 @@ class RosterWindow: item.connect('activate', self.on_agent_logging, jid, 'unavailable', account) - item = gtk.MenuItem() # seperator + item = gtk.SeparatorMenuItem() # seperator menu.append(item) item = gtk.ImageMenuItem(_('Edit')) @@ -989,7 +989,7 @@ class RosterWindow: 'offline']: if show == 'offline': # We add a sep before offline item - item = gtk.MenuItem() + item = gtk.SeparatorMenuItem() sub_menu.append(item) item = gtk.ImageMenuItem(helpers.get_uf_show(show)) diff --git a/src/systray.py b/src/systray.py index bf8bcfcfd..faf39448a 100644 --- a/src/systray.py +++ b/src/systray.py @@ -145,10 +145,10 @@ class Systray: 'offline']: if show == 'offline': # We add a sep before offline item - item = gtk.MenuItem() + item = gtk.SeparatorMenuItem() sub_menu.append(item) - item = gtk.MenuItem() + item = gtk.SeparatorMenuItem() icon = state_images[show] label = gtk.Label(helpers.get_uf_show(show)) hbox = gtk.HBox(False, 3)