summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-08-09 16:43:57 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-08-09 16:43:57 +0000
commit13fc2f2a9f44e43e79e698612993d4d8e63ccb94 (patch)
treef62aa5fc435a198fd02e3b517de217d3890fa58b /src/file.cpp
parentPut #ifdefs around all code related to the so-called "new" ExportDialog (what... (diff)
downloadinkscape-13fc2f2a9f44e43e79e698612993d4d8e63ccb94.tar.gz
inkscape-13fc2f2a9f44e43e79e698612993d4d8e63ccb94.zip
Fix compile when NEW_EXPORT_DIALOG is defined (however, the dialog crashes when trying to export files, dunno why)
(bzr r8457)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 420eaec63..fd1438eb6 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -1130,7 +1130,7 @@ sp_file_import(Gtk::Window &parentWindow)
* Display an Export dialog, export as the selected type if OK pressed
*/
bool
-sp_file_export_dialog(void *widget)
+sp_file_export_dialog(Gtk::Window &parentWindow)
{
//# temp hack for 'doc' until we can switch to this dialog
SPDocument *doc = SP_ACTIVE_DOCUMENT;
@@ -1192,6 +1192,7 @@ sp_file_export_dialog(void *widget)
//# Show the Export dialog
Inkscape::UI::Dialog::FileExportDialog *exportDialogInstance =
Inkscape::UI::Dialog::FileExportDialog::create(
+ parentWindow,
export_path,
Inkscape::UI::Dialog::EXPORT_TYPES,
(char const *) _("Select file to export to"),
@@ -1220,7 +1221,7 @@ sp_file_export_dialog(void *widget)
else
g_warning( "Error converting save filename to UTF-8." );
- success = file_save(doc, fileName, selectionType, TRUE, FALSE);
+ success = file_save(parentWindow, doc, fileName, selectionType, TRUE, FALSE, Inkscape::Extension::FILE_SAVE_METHOD_EXPORT);
if (success) {
Glib::RefPtr<Gtk::RecentManager> recent = Gtk::RecentManager::get_default();
@@ -1243,7 +1244,7 @@ sp_file_export_dialog(void *widget)
*
*/
bool
-sp_file_export_dialog(void */*widget*/)
+sp_file_export_dialog(Gtk::Window &/*parentWindow*/)
{
sp_export_dialog();
return true;