Commit 9b032073 authored by Carlos Garnacho's avatar Carlos Garnacho

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
parent 54c26e09
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment