From: mental Date: Wed, 2 Jul 2008 01:45:20 +0000 (+0000) Subject: add tab to layers dialog X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6093c3cc80cef6da969f597cb990d6ea32e18eeb;p=inkscape.git add tab to layers dialog --- diff --git a/src/dialogs/layers-panel.cpp b/src/dialogs/layers-panel.cpp index d54fb6fc7..7863e19f1 100644 --- a/src/dialogs/layers-panel.cpp +++ b/src/dialogs/layers-panel.cpp @@ -732,10 +732,13 @@ LayersPanel::LayersPanel() : _watching.push_back( &_compositeSettings ); - _getContents()->pack_start( _scroller, Gtk::PACK_EXPAND_WIDGET ); + _layersPage.pack_start( _scroller, Gtk::PACK_EXPAND_WIDGET ); + _layersPage.pack_end(_compositeSettings, Gtk::PACK_SHRINK); + _layersPage.pack_end(_buttonsRow, Gtk::PACK_SHRINK); - _getContents()->pack_end(_compositeSettings, Gtk::PACK_SHRINK); - _getContents()->pack_end(_buttonsRow, Gtk::PACK_SHRINK); + _notebook.append_page(_layersPage, _("Layers")); + + _getContents()->pack_start(_notebook, Gtk::PACK_EXPAND_WIDGET); SPDesktop* targetDesktop = getDesktop(); diff --git a/src/dialogs/layers-panel.h b/src/dialogs/layers-panel.h index e554ad0bf..62596e407 100644 --- a/src/dialogs/layers-panel.h +++ b/src/dialogs/layers-panel.h @@ -19,6 +19,7 @@ #include #include #include +#include //#include "ui/previewholder.h" #include "ui/widget/panel.h" @@ -115,6 +116,8 @@ private: Gtk::ScrolledWindow _scroller; Gtk::Menu _popupMenu; Gtk::SpinButton _spinBtn; + Gtk::Notebook _notebook; + Gtk::VBox _layersPage; UI::Widget::StyleSubject::CurrentLayer _subject; UI::Widget::ObjectCompositeSettings _compositeSettings;