diff options
| author | MenTaLguY <mental@rydia.net> | 2006-07-21 21:28:48 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-07-21 21:28:48 +0000 |
| commit | 545979bc06b42392e5eb37432d45e904aa0bc68c (patch) | |
| tree | 29219a06fa17b1f44bc92f4919d5d3d7924893a0 /src/object-hierarchy.h | |
| parent | switch to sigc++ signals for "release" (diff) | |
| download | inkscape-545979bc06b42392e5eb37432d45e904aa0bc68c.tar.gz inkscape-545979bc06b42392e5eb37432d45e904aa0bc68c.zip | |
switch to sigc++ signal for "release"
(bzr r1452)
Diffstat (limited to 'src/object-hierarchy.h')
| -rw-r--r-- | src/object-hierarchy.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/object-hierarchy.h b/src/object-hierarchy.h index 92da163ea..e5f44b413 100644 --- a/src/object-hierarchy.h +++ b/src/object-hierarchy.h @@ -68,10 +68,11 @@ public: private: struct Record { - Record(SPObject *o, gulong id) : object(o), handler_id(id) {} + Record(SPObject *o, sigc::connection c) + : object(o), connection(c) {} SPObject *object; - gulong handler_id; + sigc::connection connection; }; ObjectHierarchy(ObjectHierarchy const &); // no copy @@ -92,11 +93,11 @@ private: void _trimBelow(SPObject *limit); Record _attach(SPObject *object); - void _detach(Record const &record); + void _detach(Record &record); void _clear() { _trimBelow(NULL); } - static void _trim_for_release(SPObject *released, ObjectHierarchy *hier); + void _trim_for_release(SPObject *released); std::list<Record> _hierarchy; sigc::signal<void, SPObject *> _added_signal; |
