From 2dc372a65759c240fd4b3e3ef31cb06942c17530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Wed, 3 Mar 2010 02:37:17 +0100 Subject: [PATCH] Fix gtk_widget_is_sensitive() function. Second try Use GTK_PARENT_SENSITIVE flag instead gtk_widget_get_sensitive(widget->parent) --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index c296c3f3b0..5ba2d2346a 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -6302,7 +6302,7 @@ gtk_widget_is_sensitive (GtkWidget *widget) g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE); return (gtk_widget_get_sensitive (widget) && - gtk_widget_get_sensitive (widget->parent)); + (GTK_OBJECT_FLAGS (widget) & GTK_PARENT_SENSITIVE) != 0); } /**