~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * Released under GNU GPL, read the file 'COPYING' for more information
12
12
 */
13
13
 
 
14
#include <algorithm>
14
15
 
15
16
#include "composite-undo-stack-observer.h"
16
17
#include "xml/event.h"
78
79
        this->_unlock();
79
80
}
80
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
 
81
106
bool
82
107
CompositeUndoStackObserver::_remove_one(UndoObserverRecordList& list, UndoStackObserver& o)
83
108
{