summaryrefslogtreecommitdiffstats
path: root/src/file-update.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-07-09 16:18:24 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-07-09 16:18:24 +0000
commit3d3dc6836a11cb8e9deade5a306653327cbcc981 (patch)
tree931982e807a074c1e270632aca8fd152d65fcb47 /src/file-update.cpp
parentUpdate for Gtk alignment changes (diff)
downloadinkscape-3d3dc6836a11cb8e9deade5a306653327cbcc981.tar.gz
inkscape-3d3dc6836a11cb8e9deade5a306653327cbcc981.zip
Fix build for Gtk < 3.12
Diffstat (limited to 'src/file-update.cpp')
-rw-r--r--src/file-update.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file-update.cpp b/src/file-update.cpp
index c48e8674f..3771d549b 100644
--- a/src/file-update.cpp
+++ b/src/file-update.cpp
@@ -375,7 +375,13 @@ void sp_file_convert_dpi(SPDocument *doc)
b.set_valign(Gtk::ALIGN_START);
b.set_hexpand(false);
b.set_vexpand(false);
+
+#if GTK_CHECK_VERSION(3,12,0)
b.set_margin_start(30);
+#else
+ b.set_margin_left(30);
+#endif
+
Gtk::Box *content = scale_dialog.get_content_area();
content->pack_start(explanation, false, false, 5);
content->pack_start(choice1, false, false, 5);