From 543c421aede7cf64d9b5096d47c2d257c96e6863 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Thu, 9 Feb 2012 11:32:53 +0000 Subject: Backward compat fix for Gtkmm 2.20 Fixed bugs: - https://launchpad.net/bugs/928520 (bzr r10956) --- src/extension/param/description.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/extension/param/description.cpp') 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("") +newguitext + Glib::ustring(""), Gtk::ALIGN_START)); +#else + label = Gtk::manage(new Gtk::Label(Glib::ustring("") +newguitext + Glib::ustring(""), 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(); -- cgit v1.2.3