Code

allow nesting under verb events
authormental <mental@users.sourceforge.net>
Sun, 6 May 2007 21:30:41 +0000 (21:30 +0000)
committermental <mental@users.sourceforge.net>
Sun, 6 May 2007 21:30:41 +0000 (21:30 +0000)
src/helper/action.cpp

index 908c636380c1cf453b2c8b86b27de998ca86de20..d67bc5fc2a8e08d25caf0145e056371e8ff09141 100644 (file)
@@ -16,6 +16,7 @@
 #include "debug/logger.h"
 #include "debug/timestamp.h"
 #include "debug/simple-event.h"
+#include "debug/event-tracker.h"
 #include "helper/action.h"
 
 static void sp_action_class_init (SPActionClass *klass);
@@ -156,7 +157,7 @@ sp_action_perform (SPAction *action, void * data)
        nr_return_if_fail (action != NULL);
        nr_return_if_fail (SP_IS_ACTION (action));
 
-        Inkscape::Debug::Logger::write<ActionEvent>(action);
+        Inkscape::Debug::EventTracker<ActionEvent> tracker(action);
 
        aobject = NR_ACTIVE_OBJECT(action);
        if (aobject->callbacks) {