summaryrefslogtreecommitdiffstats
path: root/src/extension/param/notebook.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2017-02-26 17:31:58 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2017-02-26 17:31:58 +0000
commit80cdddd1120a4922257039847978f50d660f31f2 (patch)
tree51650dd96ccfe3c5d55c6cbe31e56bdd1181f658 /src/extension/param/notebook.cpp
parentDon't block data entry into the text-tool font-size entry widget after an emp... (diff)
downloadinkscape-80cdddd1120a4922257039847978f50d660f31f2.tar.gz
inkscape-80cdddd1120a4922257039847978f50d660f31f2.zip
Gtk+ 3 deprecation fixes
(bzr r15547)
Diffstat (limited to 'src/extension/param/notebook.cpp')
-rw-r--r--src/extension/param/notebook.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/extension/param/notebook.cpp b/src/extension/param/notebook.cpp
index 8ef48926e..de86d1005 100644
--- a/src/extension/param/notebook.cpp
+++ b/src/extension/param/notebook.cpp
@@ -223,7 +223,11 @@ Gtk::Widget * ParamNotebookPage::get_widget(SPDocument * doc, Inkscape::XML::Nod
Gtk::Widget * widg = param->get_widget(doc, node, changeSignal);
if (widg) {
int indent = param->get_indent();
+#if GTK_CHECK_VERSION(3,12,0)
+ widg->set_margin_start(indent * Parameter::GUI_INDENTATION);
+#else
widg->set_margin_left(indent * Parameter::GUI_INDENTATION);
+#endif
vbox->pack_start(*widg, false, false, 0);
gchar const * tip = param->get_tooltip();