From 17bad9808463ba675f916a6220eb4f02e02bf4e1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 30 Dec 2017 23:24:22 -0500 Subject: [PATCH] emoji: Accept unpaired releases for variations This enables a single long-press-move-release gesture for picking a variation. This is not perfect yet: We don't get hover in this case. --- gtk/gtkemojichooser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 9f1cb41244..f9a665546e 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -276,6 +276,7 @@ show_variations (GtkEmojiChooser *chooser, gtk_flow_box_set_max_children_per_line (GTK_FLOW_BOX (box), 6); gtk_flow_box_set_activate_on_single_click (GTK_FLOW_BOX (box), TRUE); gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (box), GTK_SELECTION_NONE); + g_object_set (box, "accept-unpaired-release", TRUE, NULL); gtk_container_add (GTK_CONTAINER (popover), view); gtk_container_add (GTK_CONTAINER (view), box);