summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e4f49c4)
raw | patch | inline | side by side (parent: e4f49c4)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 17 Jan 2007 22:53:02 +0000 (22:53 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 17 Jan 2007 22:53:02 +0000 (22:53 +0000) |
src/message-stack.cpp | patch | blob | history | |
src/message.h | patch | blob | history | |
src/widgets/desktop-widget.cpp | patch | blob | history |
diff --git a/src/message-stack.cpp b/src/message-stack.cpp
index ae65e3421ed7490bd727b983c9ffbfc89968c861..877d8edeb0e331aef1b657e993924ec07b75c617 100644 (file)
--- a/src/message-stack.cpp
+++ b/src/message-stack.cpp
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);
diff --git a/src/message.h b/src/message.h
index 24a61fea7e74e5e51eb74b90e097dfcbb07b7c48..b9b38b61380641ae6d1231564be017d0db28947d 100644 (file)
--- a/src/message.h
+++ b/src/message.h
*/
enum MessageType {
NORMAL_MESSAGE,
+ IMMEDIATE_MESSAGE,
WARNING_MESSAGE,
ERROR_MESSAGE,
INFORMATION_MESSAGE
index f91fc3b81b47e71ea98068bd5b21fd2178b1923e..d7e5891c61cb7bb5e6cf7214c9545c8ce485faa4 100644 (file)
{
GtkLabel *sb=GTK_LABEL(this->select_status);
gtk_label_set_markup (sb, message ? message : "");
+
+ // make sure the important messages are displayed immediately!
+ if (type == Inkscape::IMMEDIATE_MESSAGE && GTK_WIDGET_DRAWABLE (GTK_WIDGET(sb))) {
+ gtk_widget_queue_draw(GTK_WIDGET(sb));
+ gdk_window_process_updates(GTK_WIDGET(sb)->window, TRUE);
+ }
+
// FIXME: TODO: remove <b></b> before displaying as tooltip
gtk_tooltips_set_tip (this->tt, this->select_status_eventbox, message ? message : "", NULL);
}