[gtk+] Avoid infinite recursion when removing a grab
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid infinite recursion when removing a grab
- Date: Tue, 13 Mar 2012 02:01:33 +0000 (UTC)
commit de115c3fd31410b3ac097561a5941b678accc073
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 12 22:01:18 2012 -0400
Avoid infinite recursion when removing a grab
https://bugzilla.gnome.org/show_bug.cgi?id=671819
gtk/gtkrange.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index e384aaa..c7a2b52 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2365,9 +2365,10 @@ range_grab_remove (GtkRange *range)
if (priv->grab_device)
{
- gtk_device_grab_remove (GTK_WIDGET (range),
- priv->grab_device);
+ GdkDevice *grab_device = priv->grab_device;
+
priv->grab_device = NULL;
+ gtk_device_grab_remove (GTK_WIDGET (range), grab_device);
}
location = priv->grab_location;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]