From 501e9819954d2fb6dfdb831a71b8752b5afd1a2a Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Sat, 8 Jul 2017 12:50:17 +0200 Subject: Fix Gtk alignment API --- src/ui/dialog/export.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ui/dialog/export.cpp') 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 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 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); -- cgit v1.2.3