summaryrefslogtreecommitdiffstats
path: root/src/widgets
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/widgets
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-501e9819954d2fb6dfdb831a71b8752b5afd1a2a.tar.gz
inkscape-501e9819954d2fb6dfdb831a71b8752b5afd1a2a.zip
Fix Gtk alignment API
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/sp-attribute-widget.cpp3
-rw-r--r--src/widgets/spw-utilities.cpp1
2 files changed, 2 insertions, 2 deletions
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);
diff --git a/src/widgets/spw-utilities.cpp b/src/widgets/spw-utilities.cpp
index 88a76b1ed..68fb78327 100644
--- a/src/widgets/spw-utilities.cpp
+++ b/src/widgets/spw-utilities.cpp
@@ -42,7 +42,6 @@ Gtk::Label * spw_label(Gtk::Grid *table, const gchar *label_text, int col, int r
{
label_widget->set_text(label_text);
}
- label_widget->set_alignment(1.0, 0.5);
label_widget->show();
label_widget->set_hexpand();