[gtk+] emoji: Accept unpaired releases for variations
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] emoji: Accept unpaired releases for variations
- Date: Sun, 31 Dec 2017 04:26:09 +0000 (UTC)
commit 17bad9808463ba675f916a6220eb4f02e02bf4e1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 30 23:24:22 2017 -0500
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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index 9f1cb41..f9a6655 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]