gtkrange: Instaurate GTK+ grabs while manipulating ranges

It should not be necessary for most situations, except while there's
GDK grabs coercing events in a different way.

https://bugzilla.gnome.org/show_bug.cgi?id=782870
This commit is contained in:
Carlos Garnacho 2017-06-26 19:26:26 +02:00
parent 54c26e0983
commit 9b032073cb

View File

@ -2426,6 +2426,8 @@ range_grab_add (GtkRange *range,
update_steppers_state (range);
gtk_style_context_add_class (context, "dragging");
gtk_grab_add (GTK_WIDGET (range));
}
static void
@ -2453,6 +2455,7 @@ range_grab_remove (GtkRange *range)
if (!priv->grab_location)
return;
gtk_grab_remove (GTK_WIDGET (range));
context = gtk_widget_get_style_context (GTK_WIDGET (range));
gtk_css_gadget_queue_allocate (priv->grab_location);