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/widgets/sp-attribute-widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widgets/sp-attribute-widget.cpp') diff --git a/src/widgets/sp-attribute-widget.cpp b/src/widgets/sp-attribute-widget.cpp index 2eedc3834..89ce191ee 100644 --- a/src/widgets/sp-attribute-widget.cpp +++ b/src/widgets/sp-attribute-widget.cpp @@ -157,7 +157,8 @@ void SPAttributeTable::set_object(SPObject *object, for (guint i = 0; i < (attributes.size()); i++) { Gtk::Label *ll = new Gtk::Label (_(labels[i].c_str())); ll->show(); - ll->set_alignment (1.0, 0.5); + ll->set_halign(Gtk::ALIGN_END); + ll->set_valign(Gtk::ALIGN_CENTER); ll->set_vexpand(); #if WITH_GTKMM_3_12 ll->set_margin_start(XPAD); -- cgit v1.2.3