Entry: Set tooltip text on icon for emoji chooser
authorDaniel Boles <dboles@src.gnome.org>
Wed, 30 Aug 2017 11:48:23 +0000 (12:48 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 1 Sep 2017 22:18:45 +0000 (18:18 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=786885

gtk/gtkentry.c

index 796769c13d7b10bb4537f1528e52c36d8addd456..3b11290909aa383f8e6cdb6a99dbc25b2a572a82 100644 (file)
@@ -11097,6 +11097,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
@@ -11106,6 +11110,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]);