forked from AuroraMiddleware/gtk
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:
parent
54c26e0983
commit
9b032073cb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user