forked from AuroraMiddleware/gtk
Entry: Set tooltip text on icon for emoji chooser
https://bugzilla.gnome.org/show_bug.cgi?id=786885
This commit is contained in:
parent
0388f16fb4
commit
38b8b3ce1d
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user