[gtk/wip/baedert/for-master: 12/25] popovermenu: Switch back to "main" AFTER unmapping



commit 030cee1f762c80c6ae6e696829dcf15a953f79b8
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 02ee7706cb..fdc053e6e4 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -283,8 +283,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]