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)
|
buffer.delete(start, end)
|
||||||
|
|
||||||
def on_conversation_textview_populate_popup(self, textview, menu):
|
def on_conversation_textview_populate_popup(self, textview, menu):
|
||||||
item = gtk.MenuItem()
|
item = gtk.MenuItem() # seperator
|
||||||
menu.append(item)
|
menu.prepend(item)
|
||||||
item = gtk.MenuItem(_('Clear'))
|
item = gtk.MenuItem(_('C_lear'))
|
||||||
menu.append(item)
|
menu.prepend(item)
|
||||||
item.connect('activate', self.on_clear, textview)
|
item.connect('activate', self.on_clear, textview)
|
||||||
menu.show_all()
|
menu.show_all()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue