From 5caa6ff4dfb7b538555d60fa2732272bf8b9828b Mon Sep 17 00:00:00 2001 From: gustav_b Date: Thu, 22 Nov 2007 00:14:41 +0000 Subject: The dialog to panel refactoring: * Made the current dialogs subclass the Panel class instead of the Dialog class. * Extended the Panel class with some functionality that the dialogs relied on. * Added a PanelDialog class which is a dialog container for a single panel with the dialog behavior as a template parameter. (* Fixed coding style for the Panel and Dialog class) For details, see http://www.nabble.com/Re%3A-Dockable-dialogs%2C-todo-list-p12728194.html http://www.nabble.com/Re%3A-Inkscape-overcomes-Xara-in-Google-Trends-p13126622.html (bzr r4126) --- src/ui/dialog/export.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/ui/dialog/export.cpp') diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp index 4e4efafb5..f95944c30 100644 --- a/src/ui/dialog/export.cpp +++ b/src/ui/dialog/export.cpp @@ -20,16 +20,14 @@ namespace Inkscape { namespace UI { namespace Dialog { -Export::Export(Behavior::BehaviorFactory behavior_factory) - : Dialog (behavior_factory, "dialogs.export", SP_VERB_FILE_EXPORT), +Export::Export() + : UI::Widget::Panel("", "dialogs.export", SP_VERB_FILE_EXPORT), _page_export(1, 1) { - // Top level vbox - Gtk::VBox *vbox = get_vbox(); - vbox->set_spacing(4); + _getContents()->set_spacing(4); // Notebook for individual transformations - vbox->pack_start(_notebook, true, true); + _getContents()->pack_start(_notebook, true, true); _notebook.append_page(_page_export, _("Export")); -- cgit v1.2.3