[gnome-contacts] Window: add tooltips to icon buttons.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Window: add tooltips to icon buttons.
- Date: Sun, 21 Jan 2018 21:01:32 +0000 (UTC)
commit a67d47d0ad148d7994660bba16cd78f74ee954ed
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Jan 21 22:01:08 2018 +0100
Window: add tooltips to icon buttons.
data/ui/contacts-window.ui | 6 +++---
src/contacts-window.vala | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/contacts-window.ui b/data/ui/contacts-window.ui
index 7571709..cef3289 100644
--- a/data/ui/contacts-window.ui
+++ b/data/ui/contacts-window.ui
@@ -30,15 +30,13 @@
<property name="can_focus">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
+ <property name="tooltip_text" translatable="yes">Create new contact</property>
<signal name="clicked" handler="new_contact" object="ContactsWindow" after="no"
swapped="no"/>
<child internal-child="accessible">
<object class="AtkObject" id="add_button_atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Add contact</property>
</object>
</child>
- <style>
- <class name="image-button"/>
- </style>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -57,6 +55,7 @@
<property name="visible">False</property>
<property name="can_focus">True</property>
<property name="focus_on_click">False</property>
+ <property name="tooltip_text" translatable="yes">Cancel selection</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -103,6 +102,7 @@
<property name="can_focus">True</property>
<property name="focus_on_click">False</property>
<property name="valign">center</property>
+ <property name="tooltip_text" translatable="yes">Edit details</property>
<signal name="clicked" handler="on_edit_button_clicked"/>
<child>
<object class="GtkImage">
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index 36393c9..057d9a0 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -209,6 +209,8 @@ public class Contacts.Window : Gtk.ApplicationWindow {
this.ignore_favorite_button_toggled = true;
this.favorite_button.active = c.individual.is_favourite;
this.ignore_favorite_button_toggled = false;
+ this.favorite_button.tooltip_text = (c.individual.is_favourite)? _("Unmark as favorite")
+ : _("Mark as favorite");
this.right_header.title = c.display_name;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]