forked from AuroraMiddleware/gtk
overlay: Properly allocate the child upon addition
This ensures that after addition the child gets assigned the proper allocation and the child window is properly shown/hidden.
This commit is contained in:
parent
003d80dbea
commit
6454c718dd
@ -628,6 +628,7 @@ gtk_overlay_add_overlay (GtkOverlay *overlay,
|
||||
{
|
||||
child->window = gtk_overlay_create_child_window (overlay, widget);
|
||||
gtk_widget_set_parent (widget, GTK_WIDGET (overlay));
|
||||
gtk_overlay_child_allocate (overlay, child);
|
||||
}
|
||||
else
|
||||
gtk_widget_set_parent (widget, GTK_WIDGET (overlay));
|
||||
|
Loading…
Reference in New Issue
Block a user