[gtk+/wip/baedert/drawing] widget: Unset PRELIGHT and ACTIVE state flags in unmap
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing] widget: Unset PRELIGHT and ACTIVE state flags in unmap
- Date: Sun, 2 Jul 2017 18:48:20 +0000 (UTC)
commit 26a61a38b86aa6c63532b0c65f00844e716c7ca0
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]