~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/composite-undo-stack-observer.cpp

  • Committer: gustav_b
  • Date: 2007-03-29 23:02:20 UTC
  • Revision ID: gustav_b@users.sourceforge.net-20070329230220-wwyngijd7ha00x8h
Notify UndoStackObservers on commited incomplete transactions and sp_document_{undo,redo}_clear, 
see #1684042.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        this->_unlock();
80
80
}
81
81
 
 
82
void
 
83
CompositeUndoStackObserver::notifyClearUndoEvent()
 
84
{
 
85
        this->_lock();
 
86
        for(UndoObserverRecordList::iterator i = this->_active.begin(); i != _active.end(); ++i) {
 
87
                if (!i->to_remove) {
 
88
                        i->issueClearUndo();
 
89
                }
 
90
        }
 
91
        this->_unlock();
 
92
}
 
93
 
 
94
void
 
95
CompositeUndoStackObserver::notifyClearRedoEvent()
 
96
{
 
97
        this->_lock();
 
98
        for(UndoObserverRecordList::iterator i = this->_active.begin(); i != _active.end(); ++i) {
 
99
                if (!i->to_remove) {
 
100
                        i->issueClearRedo();
 
101
                }
 
102
        }
 
103
        this->_unlock();
 
104
}
 
105
 
82
106
bool
83
107
CompositeUndoStackObserver::_remove_one(UndoObserverRecordList& list, UndoStackObserver& o)
84
108
{