summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/export.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-07-08 10:50:17 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-07-08 10:50:17 +0000
commit501e9819954d2fb6dfdb831a71b8752b5afd1a2a (patch)
tree3085e2219179dd023b9863f59be58772a74340d6 /src/ui/dialog/export.cpp
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-501e9819954d2fb6dfdb831a71b8752b5afd1a2a.tar.gz
inkscape-501e9819954d2fb6dfdb831a71b8752b5afd1a2a.zip
Fix Gtk alignment API
Diffstat (limited to 'src/ui/dialog/export.cpp')
-rw-r--r--src/ui/dialog/export.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp
index b1b1cc291..56f3a29c0 100644
--- a/src/ui/dialog/export.cpp
+++ b/src/ui/dialog/export.cpp
@@ -503,7 +503,8 @@ Glib::RefPtr<Gtk::Adjustment> Export::createSpinbutton( gchar const * /*key*/, f
if (!ll.empty()) {
l = new Gtk::Label(ll,true);
- l->set_alignment (1.0, 0.5);
+ l->set_halign(Gtk::ALIGN_END);
+ l->set_valign(Gtk::ALIGN_CENTER);
l->set_hexpand();
l->set_vexpand();
t->attach(*l, x + pos, y, 1, 1);
@@ -526,7 +527,8 @@ Glib::RefPtr<Gtk::Adjustment> Export::createSpinbutton( gchar const * /*key*/, f
if (!lr.empty()) {
l = new Gtk::Label(lr,true);
- l->set_alignment (0.0, 0.5);
+ l->set_halign(Gtk::ALIGN_START);
+ l->set_valign(Gtk::ALIGN_CENTER);
l->set_hexpand();
l->set_vexpand();
t->attach(*l, x + pos, y, 1, 1);