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.
This commit is contained in:
Timm Bäder 2019-10-06 12:13:42 +02:00
parent 8928323c6b
commit bd9687a4f2

View File

@ -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