[gtk+] container: Fix scrolling adjustment coordinates



commit f879750759324904d5b1be8d6e084540332a39b2
Author: Timm Bäder <mail baedert org>
Date:   Mon Aug 21 12:12:50 2017 +0200

    container: Fix scrolling adjustment coordinates

 gtk/gtkcontainer.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 2c51cdb..9a8154b 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -2059,11 +2059,7 @@ gtk_container_real_set_focus_child (GtkContainer *container,
                                                  0, 0, &x, &y))
             return;
 
-          _gtk_widget_get_allocation (focus_child, &allocation);
-          x += allocation.x;
-          y += allocation.y;
-
-          _gtk_widget_get_allocation (child, &allocation);
+          gtk_widget_get_outer_allocation (child, &allocation);
 
           if (vadj)
             gtk_adjustment_clamp_page (vadj, y, y + allocation.height);


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