summaryrefslogtreecommitdiffstats
path: root/src/extension/param
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/param')
-rw-r--r--src/extension/param/description.cpp2
-rw-r--r--src/extension/param/notebook.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/extension/param/description.cpp b/src/extension/param/description.cpp
index 7cf818280..d0698a00e 100644
--- a/src/extension/param/description.cpp
+++ b/src/extension/param/description.cpp
@@ -88,7 +88,7 @@ ParamDescription::get_widget (SPDocument * /*doc*/, Inkscape::XML::Node * /*node
}
label->set_line_wrap();
//label->set_xalign(0); // requires gtkmm 3.16
- label->set_alignment(Gtk::ALIGN_START);
+ label->set_halign(Gtk::ALIGN_START);
// TODO: Ugly "fix" for gtk3 width/height calculation of labels.
// - If not applying any limits long labels will make the window grow horizontally until it uses up
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();