Code

Fix self-snapping when dragging the transformation center of a selection containing...
[inkscape.git] / src / message-stack.cpp
index ae65e3421ed7490bd727b983c9ffbfc89968c861..05aec87fc8a1951c5108f49c228200f32715d700 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * MessageStack - context for posting status messages
+ * MessageStack - manages stack of active status messages
  *
  * Authors:
  *   MenTaLguY <mental@rydia.net>
@@ -9,7 +9,10 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
+#include <string.h>
 #include <glib/gstrfuncs.h>
+#include <cstring>
+#include <string>
 #include "message-stack.h"
 
 namespace Inkscape {
@@ -70,6 +73,9 @@ MessageId MessageStack::flash(MessageType type, gchar const *message) {
     case WARNING_MESSAGE: // a bit less important than error
         return _push(type, 2000 + 40*strlen(message), message);
         break;
+    case IMMEDIATE_MESSAGE: // same length as normal, higher priority
+        return _push(type, 1000 + 20*strlen(message), message);
+        break;
     case NORMAL_MESSAGE: // something ephemeral
     default:
         return _push(type, 1000 + 20*strlen(message), message);