Logo Search packages:      
Sourcecode: inkscape version File versions

void Inkscape::MessageStack::cancel ( MessageId  id  ) 

removes a message from the stack, given its id

This method will remove a message from the stack if it has not already been removed. It may be removed from any part of the stack.

Parameters:
id the message id to remove

Definition at line 53 of file message-stack.cpp.

References _discard(), _emitChanged(), and _messages.

Referenced by Inkscape::MessageContext::clear(), Inkscape::MessageContext::flash(), and Inkscape::MessageContext::set().

                                      {
    Message **ref;
    for ( ref = &_messages ; *ref ; ref = &(*ref)->next ) {
        if ( (*ref)->id == id ) {
            *ref = _discard(*ref);
            _emitChanged();
            break;
        }
    }
}


Generated by  Doxygen 1.6.0   Back to index