[gtk+] widget: Unset PRELIGHT and ACTIVE state in _set_sensitive



commit f7bb6a7aa8e7eb89c12b12f37e6c04ff475fa0f6
Author: Timm Bäder <mail baedert org>
Date:   Tue Aug 1 18:43:42 2017 +0200

    widget: Unset PRELIGHT and ACTIVE state in _set_sensitive
    
    They both depend on input, which an insensitive widget does not receive.

 gtk/gtkwidget.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 76971de..e5b76ba 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8246,7 +8246,8 @@ gtk_widget_set_sensitive (GtkWidget *widget,
       else
         {
           data.flags_to_set = GTK_STATE_FLAG_INSENSITIVE;
-          data.flags_to_unset = 0;
+          data.flags_to_unset = GTK_STATE_FLAG_PRELIGHT |
+                                GTK_STATE_FLAG_ACTIVE;
         }
 
       gtk_widget_propagate_state (widget, &data);


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