gtk.MenuItem() -> gtk.SeparatorMenuItem()
This commit is contained in:
parent
9472d318b2
commit
f1c58e462b
3 changed files with 7 additions and 7 deletions
|
@ -269,7 +269,7 @@ class Chat:
|
||||||
menu.connect('deactivate', self.on_popup_deactivate)
|
menu.connect('deactivate', self.on_popup_deactivate)
|
||||||
# common menuitems (tab switches)
|
# common menuitems (tab switches)
|
||||||
if len(self.xmls) > 1: # if there is more than one tab
|
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:
|
for jid in self.xmls:
|
||||||
if jid != self.get_active_jid():
|
if jid != self.get_active_jid():
|
||||||
item = gtk.ImageMenuItem(_('Switch to %s') % self.names[jid])
|
item = gtk.ImageMenuItem(_('Switch to %s') % self.names[jid])
|
||||||
|
|
|
@ -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.MenuItem()
|
item = gtk.SeparatorMenuItem()
|
||||||
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)
|
||||||
|
@ -426,7 +426,7 @@ class RosterWindow:
|
||||||
sub_menu.append(item)
|
sub_menu.append(item)
|
||||||
|
|
||||||
if at_least_one_account_connected:
|
if at_least_one_account_connected:
|
||||||
newitem = gtk.MenuItem() # seperator
|
newitem = gtk.SeparatorMenuItem() # seperator
|
||||||
sub_menu.append(newitem)
|
sub_menu.append(newitem)
|
||||||
|
|
||||||
newitem = gtk.ImageMenuItem(_('Manage Bookmarks...'))
|
newitem = gtk.ImageMenuItem(_('Manage Bookmarks...'))
|
||||||
|
@ -913,7 +913,7 @@ class RosterWindow:
|
||||||
item.connect('activate', self.on_agent_logging, jid, 'unavailable',
|
item.connect('activate', self.on_agent_logging, jid, 'unavailable',
|
||||||
account)
|
account)
|
||||||
|
|
||||||
item = gtk.MenuItem() # seperator
|
item = gtk.SeparatorMenuItem() # seperator
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
item = gtk.ImageMenuItem(_('Edit'))
|
item = gtk.ImageMenuItem(_('Edit'))
|
||||||
|
@ -989,7 +989,7 @@ class RosterWindow:
|
||||||
'offline']:
|
'offline']:
|
||||||
|
|
||||||
if show == 'offline': # We add a sep before offline item
|
if show == 'offline': # We add a sep before offline item
|
||||||
item = gtk.MenuItem()
|
item = gtk.SeparatorMenuItem()
|
||||||
sub_menu.append(item)
|
sub_menu.append(item)
|
||||||
|
|
||||||
item = gtk.ImageMenuItem(helpers.get_uf_show(show))
|
item = gtk.ImageMenuItem(helpers.get_uf_show(show))
|
||||||
|
|
|
@ -145,10 +145,10 @@ class Systray:
|
||||||
'offline']:
|
'offline']:
|
||||||
|
|
||||||
if show == 'offline': # We add a sep before offline item
|
if show == 'offline': # We add a sep before offline item
|
||||||
item = gtk.MenuItem()
|
item = gtk.SeparatorMenuItem()
|
||||||
sub_menu.append(item)
|
sub_menu.append(item)
|
||||||
|
|
||||||
item = gtk.MenuItem()
|
item = gtk.SeparatorMenuItem()
|
||||||
icon = state_images[show]
|
icon = state_images[show]
|
||||||
label = gtk.Label(helpers.get_uf_show(show))
|
label = gtk.Label(helpers.get_uf_show(show))
|
||||||
hbox = gtk.HBox(False, 3)
|
hbox = gtk.HBox(False, 3)
|
||||||
|
|
Loading…
Add table
Reference in a new issue