summaryrefslogtreecommitdiff
path: root/gtk/gtkoverlay.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2015-08-21 00:46:35 +0200
committerBenjamin Otte <otte@redhat.com>2015-08-21 00:47:30 +0200
commit80265759473b3c806354d9f204e4016ec70a602b (patch)
tree983c5ab993f194d64fdd9b62b36d5368a5c94499 /gtk/gtkoverlay.c
parent2039ab8853c10e2b34a0bd7d0bd17b2ef5855db0 (diff)
downloadgtk+-80265759473b3c806354d9f204e4016ec70a602b.tar.gz
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.
Diffstat (limited to 'gtk/gtkoverlay.c')
-rw-r--r--gtk/gtkoverlay.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 75253a5932..cbad6b8943 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -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;