more common [gedit, gossip, ..] to prepend a custom menuitem (Clear) and also adding _ to it

This commit is contained in:
Nikos Kouremenos 2005-05-12 18:40:42 +00:00
parent bbe1c02fc2
commit 9be572c32d
1 changed files with 4 additions and 4 deletions

View File

@ -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()