forked from AuroraMiddleware/gtk
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:
parent
6d8fee9879
commit
2dc372a657
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user