[geary] Pluralize tooltips with multiple selection
- From: Charles Lindsay <clindsay src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Pluralize tooltips with multiple selection
- Date: Wed, 26 Feb 2014 01:14:06 +0000 (UTC)
commit 8279bb2aba0ed3e0d95b3150682ec7e5fd925870
Author: Charles Lindsay <chaz yorba org>
Date: Tue Feb 25 17:08:30 2014 -0800
Pluralize tooltips with multiple selection
Looks like when we went to the pill toolbar, we lost our plural tooltips
on the toolbar. This hooks up to the tooltip changed signal to keep the
buttons in line with the action, which we're setting from the
controller.
Closes: bgo #720710
src/client/components/pill-toolbar.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/client/components/pill-toolbar.vala b/src/client/components/pill-toolbar.vala
index fbac5f0..f0313ae 100644
--- a/src/client/components/pill-toolbar.vala
+++ b/src/client/components/pill-toolbar.vala
@@ -18,6 +18,7 @@ public class PillToolbar : Gtk.Toolbar {
bool show_label = false) {
b.related_action = action_group.get_action(action_name);
b.tooltip_text = b.related_action.tooltip;
+ b.related_action.notify["tooltip"].connect(() => { b.tooltip_text = b.related_action.tooltip; });
b.image = new Gtk.Image.from_icon_name(icon_name != null ? icon_name :
b.related_action.icon_name, Gtk.IconSize.MENU);
b.always_show_image = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]