[gtk+] overlay: Always align widgets relative to the overlay



commit 80265759473b3c806354d9f204e4016ec70a602b
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 21 00:46:35 2015 +0200

    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.

 gtk/gtkoverlay.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 75253a5..cbad6b8 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]