diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2013-03-08 01:22:57 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2013-03-08 01:22:57 +0000 |
| commit | 9af3b480980742e04a220fb2dd37ee8b55df62c4 (patch) | |
| tree | 12183cd4a7ce025a744a40329ea12c1b85eeb7b1 /src/ui | |
| parent | Switch to orientable Scale widgets in Gtkmm 3 (diff) | |
| download | inkscape-9af3b480980742e04a220fb2dd37ee8b55df62c4.tar.gz inkscape-9af3b480980742e04a220fb2dd37ee8b55df62c4.zip | |
Drop more Gtk::Table usage
(bzr r12180)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/widget/dock.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/widget/dock.cpp b/src/ui/widget/dock.cpp index a38a93fb1..2bfc7e0df 100644 --- a/src/ui/widget/dock.cpp +++ b/src/ui/widget/dock.cpp @@ -54,6 +54,17 @@ Dock::Dock(Gtk::Orientation orientation) { gdl_dock_bar_set_orientation(_gdl_dock_bar, static_cast<GtkOrientation>(orientation)); +#if WITH_GTKMM_3_0 + switch(orientation) { + case Gtk::ORIENTATION_VERTICAL: + _dock_box = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL)); + break; + case Gtk::ORIENTATION_HORIZONTAL: + _dock_box = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL)); + } + + _paned = Gtk::manage(new Gtk::Paned(orientation)); +#else switch (orientation) { case Gtk::ORIENTATION_VERTICAL: _dock_box = Gtk::manage(new Gtk::HBox()); @@ -63,6 +74,7 @@ Dock::Dock(Gtk::Orientation orientation) _dock_box = Gtk::manage(new Gtk::VBox()); _paned = Gtk::manage(new Gtk::HPaned()); } +#endif _scrolled_window->add(*_dock_box); _scrolled_window->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); |
