From 3b5fcae948fca58f572026edc434a3dae26a94ac Mon Sep 17 00:00:00 2001 From: prculley Date: Thu, 30 Mar 2017 14:12:59 -0500 Subject: [PATCH] bug 9998 partial fix for Note editor Toolbar overflow icons missing Bug Affects Windows only. Adds text labels to icons which will only appear in the overflow dropdown menu when dialog is too narrow. Icons still don't show due to Gtk bug on Windows, but at least user sees the text labels. --- gramps/gui/widgets/styledtexteditor.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gramps/gui/widgets/styledtexteditor.py b/gramps/gui/widgets/styledtexteditor.py index e876c0015..c09f2ed96 100644 --- a/gramps/gui/widgets/styledtexteditor.py +++ b/gramps/gui/widgets/styledtexteditor.py @@ -78,6 +78,8 @@ if has_display(): FORMAT_TOOLBAR = ''' + + @@ -86,8 +88,6 @@ FORMAT_TOOLBAR = ''' - - @@ -464,13 +464,14 @@ class StyledTextEditor(Gtk.TextView): # ...then the normal actions, which have a ToolButton as proxy format_actions = [ - (str(StyledTextTagType.FONTCOLOR), 'gramps-font-color', None, None, - _('Font Color'), self._on_action_activate), - (str(StyledTextTagType.HIGHLIGHT), 'gramps-font-bgcolor', None, - None, _('Background Color'), self._on_action_activate), - (str(StyledTextTagType.LINK), 'go-jump', None, None, + (str(StyledTextTagType.FONTCOLOR), 'gramps-font-color', + _('Font Color'), None, _('Font Color'), self._on_action_activate), + (str(StyledTextTagType.HIGHLIGHT), 'gramps-font-bgcolor', + _('Background Color'), None, _('Background Color'), + self._on_action_activate), + (str(StyledTextTagType.LINK), 'go-jump', _('Link'), None, _('Link'), self._on_link_activate), - ('clear', 'edit-clear', None, None, + ('clear', 'edit-clear', _('Clear Markup'), None, _('Clear Markup'), self._format_clear_cb), ]