forked from AuroraMiddleware/gtk
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:
parent
49ae68c2c7
commit
d88268c142
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user