summaryrefslogtreecommitdiffstats
path: root/src/helper/action.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-05-10 01:18:56 +0000
committermental <mental@users.sourceforge.net>2007-05-10 01:18:56 +0000
commit7c506f332492b8a94d81a020ab1b37959ed9f75f (patch)
treecd66ea6bd02687576ac80d1d9760323f05882e36 /src/helper/action.cpp
parentlog inkscape version (diff)
downloadinkscape-7c506f332492b8a94d81a020ab1b37959ed9f75f.tar.gz
inkscape-7c506f332492b8a94d81a020ab1b37959ed9f75f.zip
add document to action events
(bzr r2996)
Diffstat (limited to 'src/helper/action.cpp')
-rw-r--r--src/helper/action.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/action.cpp b/src/helper/action.cpp
index d67bc5fc2..9b8cbfce8 100644
--- a/src/helper/action.cpp
+++ b/src/helper/action.cpp
@@ -17,6 +17,8 @@
#include "debug/timestamp.h"
#include "debug/simple-event.h"
#include "debug/event-tracker.h"
+#include "ui/view/view.h"
+#include "document.h"
#include "helper/action.h"
static void sp_action_class_init (SPActionClass *klass);
@@ -129,6 +131,10 @@ public:
: ActionEventBase(share_static_string("action"))
{
_addProperty(share_static_string("timestamp"), timestamp());
+ SPDocument *document = action->view->doc();
+ if (document) {
+ _addProperty(share_static_string("document"), document->serial());
+ }
_addProperty(share_static_string("verb"), action->id);
}
};