[Sugar-devel] [PATCH] Journal toolbar: add tooltip to favorite filter
From: Simon Schampijer si...@laptop.org This patch adds the tooltip 'Favorite entries' to the favorite filter button in the Journal toolbar. The button is a ToggleToolButton and with the recent change in the toolkit-gtk3 63b8e87b1a99a854e9adbb1579b1e05244d2dc4 we do hide the tooltip when the button is clicked or touched. This adds a new string, therefore this patch is only intended for master. The addition and string has been discussed with Gary and Manuel. Signed-off-by: Simon Schampijer si...@laptop.org --- src/jarabe/journal/journaltoolbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jarabe/journal/journaltoolbox.py b/src/jarabe/journal/journaltoolbox.py index c7ee73a..69ff777 100644 --- a/src/jarabe/journal/journaltoolbox.py +++ b/src/jarabe/journal/journaltoolbox.py @@ -89,6 +89,7 @@ class MainToolbox(ToolbarBox): self._add_widget(self.search_entry, expand=True) self._favorite_button = ToggleToolButton('emblem-favorite') +self._favorite_button.set_tooltip(_('Favorite entries')) self._favorite_button.connect('toggled', self.__favorite_button_toggled_cb) self.toolbar.insert(self._favorite_button, -1) -- 1.8.1 ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] [PATCH] Journal toolbar: add tooltip to favorite filter
Pushed to master after review from Manuel. 158f4384d1f3423a6c2063723434f4f331796f81 Simon On 02/19/2013 10:16 AM, Simon Schampijer wrote: From: Simon Schampijer si...@laptop.org This patch adds the tooltip 'Favorite entries' to the favorite filter button in the Journal toolbar. The button is a ToggleToolButton and with the recent change in the toolkit-gtk3 63b8e87b1a99a854e9adbb1579b1e05244d2dc4 we do hide the tooltip when the button is clicked or touched. This adds a new string, therefore this patch is only intended for master. The addition and string has been discussed with Gary and Manuel. Signed-off-by: Simon Schampijer si...@laptop.org --- src/jarabe/journal/journaltoolbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jarabe/journal/journaltoolbox.py b/src/jarabe/journal/journaltoolbox.py index c7ee73a..69ff777 100644 --- a/src/jarabe/journal/journaltoolbox.py +++ b/src/jarabe/journal/journaltoolbox.py @@ -89,6 +89,7 @@ class MainToolbox(ToolbarBox): self._add_widget(self.search_entry, expand=True) self._favorite_button = ToggleToolButton('emblem-favorite') +self._favorite_button.set_tooltip(_('Favorite entries')) self._favorite_button.connect('toggled', self.__favorite_button_toggled_cb) self.toolbar.insert(self._favorite_button, -1) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel