Fix gtk_widget_is_sensitive() function. Second try

Use GTK_PARENT_SENSITIVE flag instead
gtk_widget_get_sensitive(widget->parent)
This commit is contained in:
Javier Jardón 2010-03-03 02:37:17 +01:00 committed by Tristan Van Berkom
parent 6d8fee9879
commit 2dc372a657

View File

@ -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);
}
/**