mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 15:01:23 +00:00
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.
This commit is contained in:
parent
72c9853999
commit
17bad98084
@ -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_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_activate_on_single_click (GTK_FLOW_BOX (box), TRUE);
|
||||||
gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (box), GTK_SELECTION_NONE);
|
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 (popover), view);
|
||||||
gtk_container_add (GTK_CONTAINER (view), box);
|
gtk_container_add (GTK_CONTAINER (view), box);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user