summaryrefslogtreecommitdiffstats
path: root/src/widgets/spw-utilities.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2014-08-23 19:37:35 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2014-08-23 19:37:35 +0000
commit05de4f998a3ff9cd14af7e3f0ca49e92cff8e40a (patch)
tree94c15b426434b4ddef16d7ad13c9171620afb189 /src/widgets/spw-utilities.cpp
parentspw-utilities: gtk_widget_modify_font deprecation fix (diff)
downloadinkscape-05de4f998a3ff9cd14af7e3f0ca49e92cff8e40a.tar.gz
inkscape-05de4f998a3ff9cd14af7e3f0ca49e92cff8e40a.zip
gtk_widget_set_margin_left/right deprecation fix
(bzr r13341.1.164)
Diffstat (limited to 'src/widgets/spw-utilities.cpp')
-rw-r--r--src/widgets/spw-utilities.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/spw-utilities.cpp b/src/widgets/spw-utilities.cpp
index 96aae020a..f87889bb1 100644
--- a/src/widgets/spw-utilities.cpp
+++ b/src/widgets/spw-utilities.cpp
@@ -64,8 +64,15 @@ Gtk::Label * spw_label(Gtk::Table *table, const gchar *label_text, int col, int
label_widget->set_hexpand();
label_widget->set_halign(Gtk::ALIGN_FILL);
label_widget->set_valign(Gtk::ALIGN_CENTER);
+
+ #if GTK_CHECK_VERSION(3,12,0)
+ label_widget->set_margin_start(4);
+ label_widget->set_margin_end(4);
+ #else
label_widget->set_margin_left(4);
label_widget->set_margin_right(4);
+ #endif
+
table->attach(*label_widget, col, row, 1, 1);
#else
table->attach(*label_widget, col, col+1, row, row+1, (Gtk::EXPAND | Gtk::FILL), static_cast<Gtk::AttachOptions>(0), 4, 0);