From c04a7d200ae5719ee1ce78aab692007b37003b0b Mon Sep 17 00:00:00 2001
From: monsta <monsta@inbox.ru>
Date: Fri, 15 Jan 2016 16:34:24 +0300
Subject: [GTK+3] libslab: use function from GtkScrollable instead of GtkLayout

---
 libslab/app-resizer.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/libslab/app-resizer.c b/libslab/app-resizer.c
index 8c0aead7..1ffeb7e5 100644
--- a/libslab/app-resizer.c
+++ b/libslab/app-resizer.c
@@ -305,7 +305,14 @@ app_resizer_new (GtkVBox * child, gint initial_num_columns, gboolean homogeneous
 void
 app_resizer_set_vadjustment_value (GtkWidget * widget, gdouble value)
 {
-	GtkAdjustment *adjust = gtk_layout_get_vadjustment (GTK_LAYOUT (widget));
+	GtkAdjustment *adjust;
+
+#if GTK_CHECK_VERSION (3, 0, 0)
+	adjust = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (widget));
+#else
+	adjust = gtk_layout_get_vadjustment (GTK_LAYOUT (widget));
+#endif
+
 	gdouble upper = gtk_adjustment_get_upper (adjust);
 	gdouble page_size = gtk_adjustment_get_page_size (adjust);
 	if (value > upper - page_size)
-- 
cgit v1.2.1