diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-04-28 15:49:30 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-04-28 15:49:30 +0000 |
| commit | 019c87b20cd0b9c85268afaf389d7380b4dbce3c (patch) | |
| tree | d11083eb85a4c9616e7e667802b110cad24425dd /src/extension/param/radiobutton.cpp | |
| parent | Drop GtkObject use in dialog (diff) | |
| download | inkscape-019c87b20cd0b9c85268afaf389d7380b4dbce3c.tar.gz inkscape-019c87b20cd0b9c85268afaf389d7380b4dbce3c.zip | |
gtkmm-3.0 fixes for Gtk::Box and header inclusions
(bzr r11304)
Diffstat (limited to 'src/extension/param/radiobutton.cpp')
| -rw-r--r-- | src/extension/param/radiobutton.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/extension/param/radiobutton.cpp b/src/extension/param/radiobutton.cpp index 9c8475e2d..d71d60ebd 100644 --- a/src/extension/param/radiobutton.cpp +++ b/src/extension/param/radiobutton.cpp @@ -20,6 +20,7 @@ #include <gtkmm/box.h> #include <gtkmm/comboboxtext.h> +#include <gtkmm/radiobutton.h> #include <glibmm/i18n.h> #include "xml/node.h" @@ -273,8 +274,15 @@ Gtk::Widget * ParamRadioButton::get_widget(SPDocument * doc, Inkscape::XML::Node return NULL; } +#if WITH_GTKMM_3_0 + Gtk::Box * hbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 4)); + hbox->set_homogeneous(false); + Gtk::Box * vbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, 0)); + vbox->set_homogeneous(false); +#else Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4)); Gtk::VBox * vbox = Gtk::manage(new Gtk::VBox(false, 0)); +#endif #if WITH_GTKMM_2_22 Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_START, Gtk::ALIGN_START)); |
