Code

display 'Saving document...' visible when saving takes a long time
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 17 Jan 2007 22:54:46 +0000 (22:54 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 17 Jan 2007 22:54:46 +0000 (22:54 +0000)
src/file.cpp

index 568d32572874d523c83b69445f4ed41917d5c7b0..491588f1e69d4b8c25355e73091fcc7750386bc4 100644 (file)
@@ -43,6 +43,7 @@
 #include "style.h"
 #include "print.h"
 #include "file.h"
+#include "message.h"
 #include "message-stack.h"
 #include "ui/dialog/filedialog.h"
 #include "prefs-utils.h"
@@ -693,6 +694,9 @@ sp_file_save(gpointer object, gpointer data)
 {
     if (!SP_ACTIVE_DOCUMENT)
         return false;
+
+    SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::IMMEDIATE_MESSAGE, _("Saving document..."));
+
     sp_namedview_document_from_window(SP_ACTIVE_DESKTOP);
     return sp_file_save_document(SP_ACTIVE_DOCUMENT);
 }