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:
@ -2426,6 +2426,8 @@ range_grab_add (GtkRange *range,
|
|||||||
update_steppers_state (range);
|
update_steppers_state (range);
|
||||||
|
|
||||||
gtk_style_context_add_class (context, "dragging");
|
gtk_style_context_add_class (context, "dragging");
|
||||||
|
|
||||||
|
gtk_grab_add (GTK_WIDGET (range));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2453,6 +2455,7 @@ range_grab_remove (GtkRange *range)
|
|||||||
if (!priv->grab_location)
|
if (!priv->grab_location)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
gtk_grab_remove (GTK_WIDGET (range));
|
||||||
context = gtk_widget_get_style_context (GTK_WIDGET (range));
|
context = gtk_widget_get_style_context (GTK_WIDGET (range));
|
||||||
|
|
||||||
gtk_css_gadget_queue_allocate (priv->grab_location);
|
gtk_css_gadget_queue_allocate (priv->grab_location);
|
||||||
|
Reference in New Issue
Block a user