From 4566c62014e86fe1d81c861845cb1ef2b9f8d553 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 8 May 2015 08:58:13 -0400 Subject: [PATCH] Turn underscores in menuitems into mnemonic accelerator key --- gramps/gui/widgets/styledtexteditor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index 912f43bfe..8883ee097 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -402,13 +402,18 @@ class StyledTextEditor(Gtk.TextView): if flavor == MAIL: 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.set_use_underline(True) else: open_menu = Gtk.MenuItem(label=_('_Open Link')) + open_menu.set_use_underline(True) copy_menu = Gtk.MenuItem(label=_('Copy _Link Address')) + copy_menu.set_use_underline(True) if flavor == LINK: edit_menu = Gtk.MenuItem(label=_('_Edit Link')) + edit_menu.set_use_underline(True) edit_menu.connect('activate', self._edit_url_cb, self.url_match[-1], # tag )