gtkpopover: Update the menu's alignment

... when the popover position changes.
This commit is contained in:
Timm Bäder
2015-03-17 19:34:43 +01:00
parent 36c65c1aca
commit d3a18de97e
3 changed files with 41 additions and 4 deletions

View File

@ -2330,7 +2330,10 @@ gtk_popover_bind_model (GtkPopover *popover,
gtk_widget_show (stack);
gtk_container_add (GTK_CONTAINER (popover), stack);
gtk_menu_section_box_new_toplevel (GTK_STACK (stack), model, action_namespace);
gtk_menu_section_box_new_toplevel (GTK_STACK (stack),
model,
action_namespace,
popover);
gtk_stack_set_visible_child_name (GTK_STACK (stack), "main");
g_signal_connect (popover, "unmap", G_CALLBACK (back_to_main), NULL);