summaryrefslogtreecommitdiffstats
path: root/src/extension/extension.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/extension.cpp')
-rw-r--r--src/extension/extension.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index 8b5a687ef..6c6e2d71e 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -694,7 +694,11 @@ public:
*/
void addWidget(Gtk::Widget *widg, gchar const *tooltip, int indent) {
if (widg) {
+#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
this->pack_start(*widg, false, false, 0);
if (tooltip) {
widg->set_tooltip_text(_(tooltip));