[gtk+] widget: Unset PRELIGHT and ACTIVE state flags in unmap
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Unset PRELIGHT and ACTIVE state flags in unmap
- Date: Thu, 20 Jul 2017 01:56:59 +0000 (UTC)
commit cef4df1e7ef392e38288a2dfa734f308ea26ec3c
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]