~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/message-stack.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * MessageStack - context for posting status messages
 
2
 * MessageStack - manages stack of active status messages
3
3
 *
4
4
 * Authors:
5
5
 *   MenTaLguY <mental@rydia.net>
9
9
 * Released under GNU GPL, read the file 'COPYING' for more information
10
10
 */
11
11
 
 
12
#include <string.h>
12
13
#include <glib/gstrfuncs.h>
 
14
#include <cstring>
 
15
#include <string>
13
16
#include "message-stack.h"
14
17
 
15
18
namespace Inkscape {
70
73
    case WARNING_MESSAGE: // a bit less important than error
71
74
        return _push(type, 2000 + 40*strlen(message), message);
72
75
        break;
 
76
    case IMMEDIATE_MESSAGE: // same length as normal, higher priority
 
77
        return _push(type, 1000 + 20*strlen(message), message);
 
78
        break;
73
79
    case NORMAL_MESSAGE: // something ephemeral
74
80
    default:
75
81
        return _push(type, 1000 + 20*strlen(message), message);