summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/tolerance-slider.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/widget/tolerance-slider.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/widget/tolerance-slider.cpp')
-rw-r--r--src/ui/widget/tolerance-slider.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ui/widget/tolerance-slider.cpp b/src/ui/widget/tolerance-slider.cpp
index dea14585d..47e646c34 100644
--- a/src/ui/widget/tolerance-slider.cpp
+++ b/src/ui/widget/tolerance-slider.cpp
@@ -72,7 +72,8 @@ void ToleranceSlider::init (const Glib::ustring& label1, const Glib::ustring& la
Gtk::Label *theLabel1 = Gtk::manage(new Gtk::Label(label1));
theLabel1->set_use_underline();
- theLabel1->set_alignment(0, 0.5);
+ theLabel1->set_halign(Gtk::ALIGN_START);
+ theLabel1->set_valign(Gtk::ALIGN_CENTER);
// align the label with the checkbox text above by indenting 22 px.
_hbox->pack_start(*theLabel1, Gtk::PACK_EXPAND_WIDGET, 22);
@@ -100,9 +101,11 @@ void ToleranceSlider::init (const Glib::ustring& label1, const Glib::ustring& la
_button1->set_tooltip_text (tip2);
_button2->set_tooltip_text (tip3);
_button1->add (*theLabel3);
- _button1->set_alignment (0.0, 0.5);
+ _button1->set_halign(Gtk::ALIGN_START);
+ _button1->set_valign(Gtk::ALIGN_CENTER);
_button2->add (*theLabel2);
- _button2->set_alignment (0.0, 0.5);
+ _button2->set_halign(Gtk::ALIGN_START);
+ _button2->set_valign(Gtk::ALIGN_CENTER);
_vbox->add (*_button1);
_vbox->add (*_button2);