X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fmessage-stack.cpp;h=d2101009e0d90a8b537523c7f4876f1c8bac4eee;hb=42382dfb4164b919ffcdf03766da9f8be4e43b42;hp=ae65e3421ed7490bd727b983c9ffbfc89968c861;hpb=f903f7d86c33cbf4d57cb4052158d3452289b579;p=inkscape.git diff --git a/src/message-stack.cpp b/src/message-stack.cpp index ae65e3421..d2101009e 100644 --- a/src/message-stack.cpp +++ b/src/message-stack.cpp @@ -1,5 +1,5 @@ /* - * MessageStack - context for posting status messages + * MessageStack - manages stack of active status messages * * Authors: * MenTaLguY @@ -9,7 +9,10 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#include #include +#include +#include #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); @@ -157,4 +163,4 @@ gboolean MessageStack::_timeout(gpointer data) { fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :