From 2bee9d34cc8e1372663d26dc4f1ac3e1b7b77fe2 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Sun, 6 Jan 2008 02:27:07 +0000 Subject: Adds 'Save as SVG' button / dialog to clarify when saving file, that it will be saved as SVG. Patch from Gringer. (Closes LP: #169995) (bzr r4401) --- src/ui/view/edit-widget.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 7bf4fc752..ff8b288fd 100644 --- a/src/ui/view/edit-widget.cpp +++ b/src/ui/view/edit-widget.cpp @@ -1256,7 +1256,7 @@ EditWidget::shutdown() /// name contains markup characters markup = g_strdup_printf( _("The file \"%s\" was saved with a format (%s) that may cause data loss!\n\n" - "Do you want to save this file in another format?"), + "Do you want to save this file as an Inkscape SVG?"), SP_DOCUMENT_NAME(doc), Inkscape::Extension::db.get(sp_document_repr_root(doc)->attribute("inkscape:output_extension"))->get_name()); @@ -1270,8 +1270,10 @@ EditWidget::shutdown() Gtk::Button close_button (_("Close _without saving"), true); dlg.add_action_widget (close_button, Gtk::RESPONSE_NO); close_button.show(); + Gtk::Button save_button (_("_Save as SVG"), true); dlg.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); - dlg.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_YES); + dlg.add_action_widget (save_button, Gtk::RESPONSE_YES); + save_button.show(); dlg.set_default_response (Gtk::RESPONSE_YES); int response = dlg.run(); -- cgit v1.2.3