Avoid infinite recursion when removing a grab

https://bugzilla.gnome.org/show_bug.cgi?id=671819
This commit is contained in:
Matthias Clasen 2012-03-12 22:01:18 -04:00
parent 232314d0fd
commit de115c3fd3

View File

@ -2365,9 +2365,10 @@ range_grab_remove (GtkRange *range)
if (priv->grab_device) if (priv->grab_device)
{ {
gtk_device_grab_remove (GTK_WIDGET (range), GdkDevice *grab_device = priv->grab_device;
priv->grab_device);
priv->grab_device = NULL; priv->grab_device = NULL;
gtk_device_grab_remove (GTK_WIDGET (range), grab_device);
} }
location = priv->grab_location; location = priv->grab_location;