[gtk+/wip/baedert/drawing: 331/348] widget: Unset PRELIGHT and ACTIVE state flags in unmap



commit adff9bbed6add000a473a5f8a7118808c0ef746a
Author: Timm Bäder <mail baedert org>
Date:   Sun Jul 2 20:46:31 2017 +0200

    widget: Unset PRELIGHT and ACTIVE state flags in unmap

 gtk/gtkwidget.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5b7943d..d967b8d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -10520,6 +10520,10 @@ gtk_widget_real_unmap (GtkWidget *widget)
         {
           gtk_widget_unmap (child);
         }
+
+      gtk_widget_unset_state_flags (widget,
+                                    GTK_STATE_FLAG_PRELIGHT |
+                                    GTK_STATE_FLAG_ACTIVE);
     }
 }
 


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