[gtk+] Entry: Set tooltip text on icon for emoji chooser
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Entry: Set tooltip text on icon for emoji chooser
- Date: Fri, 1 Sep 2017 21:28:44 +0000 (UTC)
commit 7a3548e10c8301917244b771a8bfcf1d9c2137d0
Author: Daniel Boles <dboles src gnome org>
Date: Wed Aug 30 12:48:23 2017 +0100
Entry: Set tooltip text on icon for emoji chooser
https://bugzilla.gnome.org/show_bug.cgi?id=786885
gtk/gtkentry.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index f7735d2..a1bbe6b 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9900,6 +9900,10 @@ set_show_emoji_icon (GtkEntry *entry,
GTK_ENTRY_ICON_SECONDARY,
TRUE);
+ gtk_entry_set_icon_tooltip_text (entry,
+ GTK_ENTRY_ICON_SECONDARY,
+ _("Insert Emoji"));
+
g_signal_connect (entry, "icon-press", G_CALLBACK (pick_emoji), NULL);
}
else
@@ -9909,6 +9913,10 @@ set_show_emoji_icon (GtkEntry *entry,
gtk_entry_set_icon_from_icon_name (entry,
GTK_ENTRY_ICON_SECONDARY,
NULL);
+
+ gtk_entry_set_icon_tooltip_text (entry,
+ GTK_ENTRY_ICON_SECONDARY,
+ NULL);
}
g_object_notify_by_pspec (G_OBJECT (entry), entry_props[PROP_SHOW_EMOJI_ICON]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]