summaryrefslogtreecommitdiffstats
path: root/src/extension/param/description.cpp
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-02-13 04:25:05 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-02-13 04:25:05 +0000
commitdbb6ce3b9bd176281fba0f41b4a7aa92b6d35ff3 (patch)
tree82d546bfb8015e0408ef4c6f94c42e26378337c4 /src/extension/param/description.cpp
parentExtensions: Work around gtk3 width/height calculation bug for long labels (diff)
downloadinkscape-dbb6ce3b9bd176281fba0f41b4a7aa92b6d35ff3.tar.gz
inkscape-dbb6ce3b9bd176281fba0f41b4a7aa92b6d35ff3.zip
Extensions: Fix for old versions of gtkmm
Use "Gtk::Misc::set_alignment()" as "Gtk::Label::set_xalign()" is only available since gtkmm 3.16 (bzr r15512)
Diffstat (limited to 'src/extension/param/description.cpp')
-rw-r--r--src/extension/param/description.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/param/description.cpp b/src/extension/param/description.cpp
index 898544e94..5923adea8 100644
--- a/src/extension/param/description.cpp
+++ b/src/extension/param/description.cpp
@@ -84,7 +84,8 @@ ParamDescription::get_widget (SPDocument * /*doc*/, Inkscape::XML::Node * /*node
label = Gtk::manage(new Gtk::Label(newguitext, Gtk::ALIGN_START));
}
label->set_line_wrap();
- label->set_xalign(0);
+ //label->set_xalign(0); // requires gtkmm 3.16
+ label->set_alignment(0);
// TODO: Ugly "fix" for gtk3 width/height calculation of labels.
// - If not applying any limits long labels will make the window grow horizontally until it uses up