forked from AuroraMiddleware/gtk
Make gtk_container_remove work on popover menus
Extend the hack we have in place for composite containers to GtkPopoverMenu.
This commit is contained in:
parent
1e39790c49
commit
ecfcb3e2cc
@ -1722,7 +1722,10 @@ gtk_container_remove (GtkContainer *container,
|
||||
{
|
||||
g_return_if_fail (GTK_IS_CONTAINER (container));
|
||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||
g_return_if_fail (gtk_widget_get_parent (widget) == GTK_WIDGET (container) || GTK_IS_ASSISTANT (container) || GTK_IS_ACTION_BAR (container));
|
||||
g_return_if_fail (gtk_widget_get_parent (widget) == GTK_WIDGET (container) ||
|
||||
GTK_IS_ASSISTANT (container) ||
|
||||
GTK_IS_ACTION_BAR (container) ||
|
||||
GTK_IS_POPOVER_MENU (container));
|
||||
|
||||
g_object_ref (container);
|
||||
g_object_ref (widget);
|
||||
|
Loading…
Reference in New Issue
Block a user