Turn underscores in menuitems into mnemonic accelerator key
This commit is contained in:
parent
b14a2abdfc
commit
4566c62014
@ -402,13 +402,18 @@ class StyledTextEditor(Gtk.TextView):
|
|||||||
|
|
||||||
if flavor == MAIL:
|
if flavor == MAIL:
|
||||||
open_menu = Gtk.MenuItem(label=_('_Send Mail To...'))
|
open_menu = Gtk.MenuItem(label=_('_Send Mail To...'))
|
||||||
|
open_menu.set_use_underline(True)
|
||||||
copy_menu = Gtk.MenuItem(label=_('Copy _E-mail Address'))
|
copy_menu = Gtk.MenuItem(label=_('Copy _E-mail Address'))
|
||||||
|
copy_menu.set_use_underline(True)
|
||||||
else:
|
else:
|
||||||
open_menu = Gtk.MenuItem(label=_('_Open Link'))
|
open_menu = Gtk.MenuItem(label=_('_Open Link'))
|
||||||
|
open_menu.set_use_underline(True)
|
||||||
copy_menu = Gtk.MenuItem(label=_('Copy _Link Address'))
|
copy_menu = Gtk.MenuItem(label=_('Copy _Link Address'))
|
||||||
|
copy_menu.set_use_underline(True)
|
||||||
|
|
||||||
if flavor == LINK:
|
if flavor == LINK:
|
||||||
edit_menu = Gtk.MenuItem(label=_('_Edit Link'))
|
edit_menu = Gtk.MenuItem(label=_('_Edit Link'))
|
||||||
|
edit_menu.set_use_underline(True)
|
||||||
edit_menu.connect('activate', self._edit_url_cb,
|
edit_menu.connect('activate', self._edit_url_cb,
|
||||||
self.url_match[-1], # tag
|
self.url_match[-1], # tag
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user