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 | |
| 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')
| -rw-r--r-- | src/extension/param/bool.cpp | 4 | ||||
| -rw-r--r-- | src/extension/param/description.cpp | 8 | ||||
| -rw-r--r-- | src/extension/param/enum.cpp | 4 | ||||
| -rw-r--r-- | src/extension/param/float.cpp | 4 | ||||
| -rw-r--r-- | src/extension/param/int.cpp | 4 | ||||
| -rw-r--r-- | src/extension/param/radiobutton.cpp | 4 | ||||
| -rw-r--r-- | src/extension/param/string.cpp | 4 |
7 files changed, 32 insertions, 0 deletions
diff --git a/src/extension/param/bool.cpp b/src/extension/param/bool.cpp index dade2c275..bc75e62fc 100644 --- a/src/extension/param/bool.cpp +++ b/src/extension/param/bool.cpp @@ -130,7 +130,11 @@ Gtk::Widget *ParamBool::get_widget(SPDocument * doc, Inkscape::XML::Node * node, Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); +#if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START)); +#else + Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT)); +#endif label->show(); hbox->pack_end(*label, true, true); 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(); diff --git a/src/extension/param/enum.cpp b/src/extension/param/enum.cpp index e24b244ec..ff77c1603 100644 --- a/src/extension/param/enum.cpp +++ b/src/extension/param/enum.cpp @@ -232,7 +232,11 @@ Gtk::Widget *ParamComboBox::get_widget(SPDocument * doc, Inkscape::XML::Node * n Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); +#if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START)); +#else + Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT)); +#endif label->show(); hbox->pack_start(*label, false, false, _indent); diff --git a/src/extension/param/float.cpp b/src/extension/param/float.cpp index b9a723eea..7188025da 100644 --- a/src/extension/param/float.cpp +++ b/src/extension/param/float.cpp @@ -175,7 +175,11 @@ Gtk::Widget * ParamFloat::get_widget(SPDocument * doc, Inkscape::XML::Node * nod Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); +#if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START)); +#else + Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT)); +#endif label->show(); hbox->pack_start(*label, true, true, _indent); diff --git a/src/extension/param/int.cpp b/src/extension/param/int.cpp index 1ef31f348..461943a4c 100644 --- a/src/extension/param/int.cpp +++ b/src/extension/param/int.cpp @@ -156,7 +156,11 @@ ParamInt::get_widget (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); +#if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START)); +#else + Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT)); +#endif label->show(); hbox->pack_start(*label, true, true, _indent); diff --git a/src/extension/param/radiobutton.cpp b/src/extension/param/radiobutton.cpp index 90b380643..1b52bebe5 100644 --- a/src/extension/param/radiobutton.cpp +++ b/src/extension/param/radiobutton.cpp @@ -275,7 +275,11 @@ Gtk::Widget * ParamRadioButton::get_widget(SPDocument * doc, Inkscape::XML::Node Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); Gtk::VBox * vbox = Gtk::manage(new Gtk::VBox(false, 0)); +#if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START, Gtk::ALIGN_START)); +#else + Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT, Gtk::ALIGN_TOP)); +#endif label->show(); hbox->pack_start(*label, false, false, _indent); diff --git a/src/extension/param/string.cpp b/src/extension/param/string.cpp index 23f53cdbe..3f8d176a5 100644 --- a/src/extension/param/string.cpp +++ b/src/extension/param/string.cpp @@ -155,7 +155,11 @@ Gtk::Widget * ParamString::get_widget(SPDocument * doc, Inkscape::XML::Node * no Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); +#if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START)); +#else + Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT)); +#endif label->show(); hbox->pack_start(*label, false, false, _indent); |
