gtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()

Otherwise the stack gets parented to the wrong widget and the contents
are never drawn.
This commit is contained in:
Ernestas Kulik 2018-07-23 13:01:01 +03:00
parent 49ae68c2c7
commit d88268c142

View File

@ -171,8 +171,7 @@ gtk_popover_menu_add (GtkContainer *container,
if (stack == NULL)
{
gtk_widget_set_parent (child, GTK_WIDGET (container));
_gtk_bin_set_child (GTK_BIN (container), child);
GTK_CONTAINER_CLASS (gtk_popover_menu_parent_class)->add (container, child);
}
else
{