summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles@src.gnome.org>2017-08-28 20:26:48 +0100
committerDaniel Boles <dboles@src.gnome.org>2017-08-28 20:52:01 +0100
commit477fc9565532263c499227fa1cccc72ec18d729d (patch)
treeb381e65cbb7cbd459162b7cb282e21507fe2c49e
parent69e0c7a8c3baa3c5ed446a7879fc33a98f89dd2d (diff)
downloadgtk+-477fc9565532263c499227fa1cccc72ec18d729d.tar.gz
Entry: Only open emoji picker on 2ndary icon click
We hijack the secondary icon for the emoji picker, but the handler for ::icon-press did not check the pressed icon and opened it for either. https://bugzilla.gnome.org/show_bug.cgi?id=786938
-rw-r--r--gtk/gtkentry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 26fd08dc28..840a9cbdc5 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -9858,7 +9858,8 @@ pick_emoji (GtkEntry *entry,
GdkEvent *event,
gpointer data)
{
- gtk_entry_choose_emoji (entry);
+ if (icon == GTK_ENTRY_ICON_SECONDARY)
+ gtk_entry_choose_emoji (entry);
}
static void