gtk.MenuItem() -> gtk.SeparatorMenuItem()
This commit is contained in:
parent
9472d318b2
commit
f1c58e462b
|
@ -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])
|
||||
|
|
|
@ -410,7 +410,7 @@ class RosterWindow:
|
|||
if multiple_accounts:
|
||||
label = gtk.Label()
|
||||
label.set_markup('<u>' + account.upper() +'</u>')
|
||||
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))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue