[gtk+/native-layout] Fix gtk_widget_is_sensitive() function



commit e6572c093933f7c0650c72b70aaaf2c08c58b5dd
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 5c1d841..fc4ee17 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6301,7 +6301,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]