[gtk+] Fix gtk_widget_is_sensitive() function



commit f8fb228752a2873d5395fe71981c8dc57ca2a301
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Mar 2 17:54:16 2010 +0100

    Fix gtk_widget_is_sensitive() function
    
    The bug was introduced in
    commit a27d5a2c9eba7af5b056de32ff9b2b4dd1eb97e1

 gtk/gtkwidget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 9b88994..baa9359 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6286,7 +6286,8 @@ gtk_widget_is_sensitive (GtkWidget *widget)
 {
   g_return_val_if_fail (GTK_IS_WIDGET (widget), FALSE);
 
-  return gtk_widget_is_sensitive (widget);
+  return (gtk_widget_get_sensitive (widget) &&
+          gtk_widget_get_sensitive (widget->parent));
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]