From 246fcd5198c0a53e27f309777a8ae23e98221753 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 28 Jul 2007 12:32:01 +0000 Subject: Gtkmm-ified the desktop window object, and modified the file dialogs so that they are correctly parented (bzr r3328) --- src/ui/view/edit-widget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/view/edit-widget.cpp') diff --git a/src/ui/view/edit-widget.cpp b/src/ui/view/edit-widget.cpp index 8e423c8fb..d5b782865 100644 --- a/src/ui/view/edit-widget.cpp +++ b/src/ui/view/edit-widget.cpp @@ -178,7 +178,7 @@ void EditWidget::onActionFileOpen() { // g_warning("onActionFileOpen called"); - sp_file_open_dialog (NULL, NULL); + sp_file_open_dialog (*this, NULL, NULL); } void @@ -1110,7 +1110,7 @@ EditWidget::initStatusbar() //======================================== //----------implements EditWidgetInterface -void * +Gtk::Window * EditWidget::getWindow() { return this; @@ -1231,7 +1231,7 @@ EditWidget::shutdown() { case Gtk::RESPONSE_YES: sp_document_ref(doc); - if (sp_file_save_document(doc)) { + if (sp_file_save_document(*this, doc)) { sp_document_unref(doc); } else { // save dialog cancelled or save failed sp_document_unref(doc); @@ -1279,7 +1279,7 @@ EditWidget::shutdown() { case Gtk::RESPONSE_YES: sp_document_ref(doc); - if (sp_file_save_document(doc)) { + if (sp_file_save_document(*this, doc)) { sp_document_unref(doc); } else { // save dialog cancelled or save failed sp_document_unref(doc); -- cgit v1.2.3