diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-09-03 00:45:30 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-09-03 00:45:30 +0000 |
| commit | 084d7a6ef635846b124644a47fb73df75b62e292 (patch) | |
| tree | 6cc54f39d5da0ba44b6672299a070a0d96fa2652 /src | |
| parent | Fix for 406044 : Esc with no selection, activates selection tool (diff) | |
| download | inkscape-084d7a6ef635846b124644a47fb73df75b62e292.tar.gz inkscape-084d7a6ef635846b124644a47fb73df75b62e292.zip | |
Fix for 422644 : Show filename in statusbar on saving
(bzr r11648)
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp index 3b24876c4..dcdae1700 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -669,7 +669,8 @@ file_save(Gtk::Window &parentWindow, SPDocument *doc, const Glib::ustring &uri, } SP_ACTIVE_DESKTOP->event_log->rememberFileSave(); - SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::NORMAL_MESSAGE, _("Document saved.")); + Glib::ustring msg = Glib::ustring::format(_("Document saved."), " ", doc->getURI()); + SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::NORMAL_MESSAGE, msg.c_str()); return true; } @@ -945,7 +946,8 @@ sp_file_save_document(Gtk::Window &parentWindow, SPDocument *doc) } } } else { - SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("No changes need to be saved.")); + Glib::ustring msg = Glib::ustring::format(_("No changes need to be saved."), " ", doc->getURI()); + SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::WARNING_MESSAGE, msg.c_str()); success = TRUE; } |
