more common [gedit, gossip, ..] to prepend a custom menuitem (Clear) and also adding _ to it
This commit is contained in:
parent
bbe1c02fc2
commit
9be572c32d
|
@ -422,10 +422,10 @@ class Chat:
|
|||
buffer.delete(start, end)
|
||||
|
||||
def on_conversation_textview_populate_popup(self, textview, menu):
|
||||
item = gtk.MenuItem()
|
||||
menu.append(item)
|
||||
item = gtk.MenuItem(_('Clear'))
|
||||
menu.append(item)
|
||||
item = gtk.MenuItem() # seperator
|
||||
menu.prepend(item)
|
||||
item = gtk.MenuItem(_('C_lear'))
|
||||
menu.prepend(item)
|
||||
item.connect('activate', self.on_clear, textview)
|
||||
menu.show_all()
|
||||
|
||||
|
|
Loading…
Reference in New Issue