overlay: Fix child window position/size on realize

We don't get an automatic queue resize on realize anymore, which
was papering over this bug where we did not set the child window
size/position at realize time.
This commit is contained in:
Alexander Larsson 2012-12-11 15:41:50 +01:00
parent 796ae50064
commit 1c05915f51

View File

@ -423,7 +423,10 @@ gtk_overlay_realize (GtkWidget *widget)
child = children->data;
if (child->window == NULL)
child->window = gtk_overlay_create_child_window (overlay, child->widget);
{
child->window = gtk_overlay_create_child_window (overlay, child->widget);
gtk_overlay_child_allocate (overlay, child);
}
}
}