diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-02-09 11:32:53 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-02-09 11:32:53 +0000 |
| commit | 543c421aede7cf64d9b5096d47c2d257c96e6863 (patch) | |
| tree | 4d33b448c19a94776e3777ed55cbcfbc86eb4027 /src/extension/param/description.cpp | |
| parent | Translations. Translation template update. (diff) | |
| download | inkscape-543c421aede7cf64d9b5096d47c2d257c96e6863.tar.gz inkscape-543c421aede7cf64d9b5096d47c2d257c96e6863.zip | |
Backward compat fix for Gtkmm 2.20
Fixed bugs:
- https://launchpad.net/bugs/928520
(bzr r10956)
Diffstat (limited to 'src/extension/param/description.cpp')
| -rw-r--r-- | src/extension/param/description.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/extension/param/description.cpp b/src/extension/param/description.cpp index f6bbb5447..bf6ae708a 100644 --- a/src/extension/param/description.cpp +++ b/src/extension/param/description.cpp @@ -81,12 +81,20 @@ ParamDescription::get_widget (SPDocument * /*doc*/, Inkscape::XML::Node * /*node Gtk::Label * label; int padding = 12 + _indent; if (_mode == HEADER) { +#if WITH_GTKMM_2_22 label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_START)); +#else + label = Gtk::manage(new Gtk::Label(Glib::ustring("<b>") +newguitext + Glib::ustring("</b>"), Gtk::ALIGN_LEFT)); +#endif label->set_padding(0,5); label->set_use_markup(true); padding = _indent; } else { +#if WITH_GTKMM_2_22 label = Gtk::manage(new Gtk::Label(newguitext, Gtk::ALIGN_START)); +#else + label = Gtk::manage(new Gtk::Label(newguitext, Gtk::ALIGN_LEFT)); +#endif } label->set_line_wrap(); label->show(); |
