[gtk+/gtk-3-22] Entry: Only open emoji picker on 2ndary icon click
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] Entry: Only open emoji picker on 2ndary icon click
- Date: Mon, 28 Aug 2017 19:53:47 +0000 (UTC)
commit fccf19b905f0e58b70408c46942c1860bb9617b0
Author: Daniel Boles <dboles src gnome org>
Date: Mon Aug 28 20:26:48 2017 +0100
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
gtk/gtkentry.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 0939f2e..d7975df 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -11061,7 +11061,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]