[gtk/wip/baedert/for-master] popovermenu: Switch back to "main" AFTER unmapping
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] popovermenu: Switch back to "main" AFTER unmapping
- Date: Sun, 6 Oct 2019 10:53:08 +0000 (UTC)
commit fb3b34d1c2c4bb80df7cffe604ac0c0f11cf9e28
Author: Timm Bäder <mail baedert org>
Date: Sun Oct 6 12:13:42 2019 +0200
popovermenu: Switch back to "main" AFTER unmapping
Otherwise we might set things to child visible etc. while being
unmapped, which is a violation of the widget invariants of these
properties.
gtk/gtkpopovermenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c
index 98b52058bc..44cfa0cea0 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -287,8 +287,8 @@ gtk_popover_menu_map (GtkWidget *widget)
static void
gtk_popover_menu_unmap (GtkWidget *widget)
{
- gtk_popover_menu_open_submenu (GTK_POPOVER_MENU (widget), "main");
GTK_WIDGET_CLASS (gtk_popover_menu_parent_class)->unmap (widget);
+ gtk_popover_menu_open_submenu (GTK_POPOVER_MENU (widget), "main");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]