From df9028e9ff4448610dc7626b75a5cf331fb8e106 Mon Sep 17 00:00:00 2001
From: raveit65 <mate@raveit.de>
Date: Wed, 2 Aug 2017 15:13:54 +0200
Subject: display scrollarea: avoid deprecated gtk_adjustment_changed
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

gtk_adjustment_changed has been deprecated since version 3.18 and
GTK+ emits “changed” itself whenever any of the properties (other than value) change.
see https://developer.gnome.org/gtk3/unstable/GtkAdjustment.html#gtk-adjustment-changed
---
 capplets/display/scrollarea.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/capplets/display/scrollarea.c b/capplets/display/scrollarea.c
index 54284818..17936130 100644
--- a/capplets/display/scrollarea.c
+++ b/capplets/display/scrollarea.c
@@ -568,8 +568,10 @@ clamp_adjustment (GtkAdjustment *adj)
 					       - gtk_adjustment_get_page_size (adj)));
     else
 	gtk_adjustment_set_value (adj, 0.0);
-    
+
+#if !GTK_CHECK_VERSION (3,18,0)
     gtk_adjustment_changed (adj);
+#endif
 }
 
 static gboolean
-- 
cgit v1.2.1