overlay: Always align widgets relative to the overlay

... not to the contained widget, which might not occupy the whole
overlay when an align mode is set.
This commit is contained in:
Benjamin Otte 2015-08-21 00:46:35 +02:00
parent 2039ab8853
commit 8026575947

View File

@ -212,13 +212,6 @@ gtk_overlay_get_main_widget_allocation (GtkOverlay *overlay,
main_alloc.width = gtk_widget_get_allocated_width (grandchild);
main_alloc.height = gtk_widget_get_allocated_height (grandchild);
}
else if (GTK_IS_WIDGET (main_widget))
{
main_alloc.x = 0;
main_alloc.y = 0;
main_alloc.width = gtk_widget_get_allocated_width (main_widget);
main_alloc.height = gtk_widget_get_allocated_height (main_widget);
}
else
{
main_alloc.x = 0;