summaryrefslogtreecommitdiff
path: root/capplets/display
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-02 15:13:54 +0200
committerraveit65 <[email protected]>2017-08-15 10:52:56 +0200
commitdf9028e9ff4448610dc7626b75a5cf331fb8e106 (patch)
tree3c50cecb330f5937f00790d57915f4d1fab31ff9 /capplets/display
parentdd607141fbb09d54f3fd043611947290fc9b90fa (diff)
downloadmate-control-center-df9028e9ff4448610dc7626b75a5cf331fb8e106.tar.bz2
mate-control-center-df9028e9ff4448610dc7626b75a5cf331fb8e106.tar.xz
display scrollarea: avoid deprecated gtk_adjustment_changed
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
Diffstat (limited to 'capplets/display')
-rw-r--r--capplets/display/scrollarea.c4
1 files changed, 3 insertions, 1 deletions
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