[gtk+] Fix gtk_widget_is_sensitive() function. Second try
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix gtk_widget_is_sensitive() function. Second try
- Date: Wed, 3 Mar 2010 01:42:14 +0000 (UTC)
commit 32d043535bf3c8fb59d101efaa564f2e04fbbe00
Author: Javier Jardón <jjardon gnome org>
Date: Wed Mar 3 02:37:17 2010 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a928f7e..ce73637 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6287,7 +6287,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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]