Add tooltips to sidebar filter 'Find' and 'Reset' buttons. (#1091)

Issue #11783
This commit is contained in:
Paul Culley 2020-08-21 09:50:15 -05:00 committed by GitHub
parent 8654c50594
commit 8000eaca2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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