summaryrefslogtreecommitdiff
path: root/gtk/gtklistbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-06-28 08:19:35 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-07-19 21:27:15 -0400
commit3dc6d240b34cb8695e421981acfe1efd2239bb1e (patch)
tree06d829ddf5ccf12bd91eed189b13a850ce9e98e5 /gtk/gtklistbox.c
parent2c2867d45d15ba72410993ba6c65ab728401762b (diff)
downloadgtk+-3dc6d240b34cb8695e421981acfe1efd2239bb1e.tar.gz
Fix a few allocation coordinates & sizes
Diffstat (limited to 'gtk/gtklistbox.c')
-rw-r--r--gtk/gtklistbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index ee5de48bb7..12d76fe373 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1440,7 +1440,7 @@ ensure_row_visible (GtkListBox *box,
if (!priv->adjustment)
return;
- gtk_widget_get_allocation (GTK_WIDGET (row), &allocation);
+ gtk_widget_get_outer_allocation (GTK_WIDGET (row), &allocation);
y = allocation.y;
height = allocation.height;
@@ -1448,7 +1448,7 @@ ensure_row_visible (GtkListBox *box,
header = ROW_PRIV (row)->header;
if (GTK_IS_WIDGET (header) && gtk_widget_is_drawable (header))
{
- gtk_widget_get_allocation (header, &allocation);
+ gtk_widget_get_outer_allocation (header, &allocation);
y = allocation.y;
height += allocation.height;
}