From 2c6c65b78f49af3bf0e84372d2c9f065ff037c8c Mon Sep 17 00:00:00 2001 From: kidproto Date: Tue, 22 Aug 2006 08:42:52 +0000 Subject: [PATCH] I added a key configuration for this command, changed a variable name and added the patch's author to the AUTHORS file.... --- AUTHORS | 1 + share/keys/default.xml | 3 +++ share/keys/inkscape.xml | 3 +++ src/file.cpp | 6 +++--- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/AUTHORS b/AUTHORS index d65e9dd2a..ea794f845 100644 --- a/AUTHORS +++ b/AUTHORS @@ -84,3 +84,4 @@ David Yip Masatake Yamato Jos Hirth Alan Horkan +Johan Engelen diff --git a/share/keys/default.xml b/share/keys/default.xml index ba5c85562..0ab7c934f 100644 --- a/share/keys/default.xml +++ b/share/keys/default.xml @@ -55,6 +55,9 @@ override) the bindings in the main default.xml. + + + diff --git a/share/keys/inkscape.xml b/share/keys/inkscape.xml index ba5c85562..0ab7c934f 100644 --- a/share/keys/inkscape.xml +++ b/share/keys/inkscape.xml @@ -55,6 +55,9 @@ override) the bindings in the main default.xml. + + + diff --git a/src/file.cpp b/src/file.cpp index b350ce97b..4bb5763b6 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -535,7 +535,7 @@ static Inkscape::UI::Dialog::FileSaveDialog *saveDialogInstance = NULL; * \param ascopy (optional) wether to set the documents->uri to the new filename or not */ bool -sp_file_save_dialog(SPDocument *doc, bool bAsCopy) +sp_file_save_dialog(SPDocument *doc, bool is_copy) { Inkscape::XML::Node *repr = sp_document_repr_root(doc); @@ -605,7 +605,7 @@ sp_file_save_dialog(SPDocument *doc, bool bAsCopy) Inkscape::UI::Dialog::FileSaveDialog::create( save_loc, Inkscape::UI::Dialog::SVG_TYPES, - bAsCopy ? (char const *) _("Select file to save copy to") : (char const *) _("Select file to save to"), + is_copy ? (char const *) _("Select file to save copy to") : (char const *) _("Select file to save to"), default_extension ); @@ -627,7 +627,7 @@ sp_file_save_dialog(SPDocument *doc, bool bAsCopy) else g_warning( "Error converting save filename to UTF-8." ); - success = file_save(doc, fileName, selectionType, TRUE, !bAsCopy); + success = file_save(doc, fileName, selectionType, TRUE, !is_copy); if (success) prefs_set_recent_file(SP_DOCUMENT_URI(doc), SP_DOCUMENT_NAME(doc)); -- 2.30.2