summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-print-preview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pluma/pluma-print-preview.c b/pluma/pluma-print-preview.c
index 909fea81..7e8dfe00 100644
--- a/pluma/pluma-print-preview.c
+++ b/pluma/pluma-print-preview.c
@@ -954,8 +954,10 @@ preview_layout_key_press (GtkWidget *widget,
gtk_adjustment_set_value (hadj, x);
gtk_adjustment_set_value (vadj, y);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_adjustment_value_changed (hadj);
gtk_adjustment_value_changed (vadj);
+#endif
}
return ret;