diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-08 10:50:17 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-08 10:50:17 +0000 |
| commit | 501e9819954d2fb6dfdb831a71b8752b5afd1a2a (patch) | |
| tree | 3085e2219179dd023b9863f59be58772a74340d6 /src/ui/dialog/lpe-powerstroke-properties.cpp | |
| parent | Merge branch 'master' of gitlab.com:inkscape/inkscape (diff) | |
| download | inkscape-501e9819954d2fb6dfdb831a71b8752b5afd1a2a.tar.gz inkscape-501e9819954d2fb6dfdb831a71b8752b5afd1a2a.zip | |
Fix Gtk alignment API
Diffstat (limited to 'src/ui/dialog/lpe-powerstroke-properties.cpp')
| -rw-r--r-- | src/ui/dialog/lpe-powerstroke-properties.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/dialog/lpe-powerstroke-properties.cpp b/src/ui/dialog/lpe-powerstroke-properties.cpp index 0757aa1c3..bc3fbd828 100644 --- a/src/ui/dialog/lpe-powerstroke-properties.cpp +++ b/src/ui/dialog/lpe-powerstroke-properties.cpp @@ -50,7 +50,8 @@ PowerstrokePropertiesDialog::PowerstrokePropertiesDialog() _powerstroke_position_entry.set_range(-SCALARPARAM_G_MAXDOUBLE, SCALARPARAM_G_MAXDOUBLE); _powerstroke_position_entry.set_hexpand(); _powerstroke_position_label.set_label(_("Position:")); - _powerstroke_position_label.set_alignment(1.0, 0.5); + _powerstroke_position_label.set_halign(Gtk::ALIGN_END); + _powerstroke_position_label.set_valign(Gtk::ALIGN_CENTER); _powerstroke_width_entry.set_activates_default(true); _powerstroke_width_entry.set_digits(4); @@ -58,7 +59,8 @@ PowerstrokePropertiesDialog::PowerstrokePropertiesDialog() _powerstroke_width_entry.set_range(-SCALARPARAM_G_MAXDOUBLE, SCALARPARAM_G_MAXDOUBLE); _powerstroke_width_entry.set_hexpand(); _powerstroke_width_label.set_label(_("Width:")); - _powerstroke_width_label.set_alignment(1.0, 0.5); + _powerstroke_width_label.set_halign(Gtk::ALIGN_END); + _powerstroke_width_label.set_valign(Gtk::ALIGN_CENTER); _layout_table.attach(_powerstroke_position_label,0,0,1,1); _layout_table.attach(_powerstroke_position_entry,1,0,1,1); |
