From 8000eaca2f81f4b73a5a8b102de52612c6a5400b Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Fri, 21 Aug 2020 09:50:15 -0500 Subject: [PATCH] Add tooltips to sidebar filter 'Find' and 'Reset' buttons. (#1091) Issue #11783 --- gramps/gui/filters/sidebar/_sidebarfilter.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gramps/gui/filters/sidebar/_sidebarfilter.py b/gramps/gui/filters/sidebar/_sidebarfilter.py index ae44944a8..ad39398fc 100644 --- a/gramps/gui/filters/sidebar/_sidebarfilter.py +++ b/gramps/gui/filters/sidebar/_sidebarfilter.py @@ -58,7 +58,13 @@ class SidebarFilter(DbGUIElement): self.grid.set_row_spacing(6) self.grid.set_column_spacing(6) self.apply_btn = Gtk.Button.new_with_mnemonic(_('_Find')) + self.apply_btn.set_tooltip_text(_( + "This updates the view with the current filter parameters.")) self.clear_btn = Gtk.Button() + self.clear_btn.set_tooltip_text(_( + "This resets the filter parameters to empty state. The 'Find' " + "button should be used to actually update the view to its " + "defaults.")) self._init_interface() uistate.connect('filters-changed', self.on_filters_changed)