summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2775904)
raw | patch | inline | side by side (parent: 2775904)
author | mental <mental@users.sourceforge.net> | |
Sun, 6 May 2007 21:42:59 +0000 (21:42 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Sun, 6 May 2007 21:42:59 +0000 (21:42 +0000) |
element
src/document-undo.cpp | patch | blob | history |
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index 911258ee050e70e39b49c0c332d122a9ed2653e2..8f1dd90ce08af65128990a06dafd8cd4975dee6a 100644 (file)
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
class CommitEvent : public InteractionEvent {
public:
- CommitEvent(SPDocument *doc, const gchar *key, const unsigned int type,
- Glib::ustring const &description)
+ CommitEvent(SPDocument *doc, const gchar *key, const unsigned int type)
: InteractionEvent(share_static_string("commit"))
{
_addProperty(share_static_string("timestamp"), timestamp());
Verb *verb = Verb::get(type);
if (verb) {
- _addProperty(share_static_string("verb"), verb->get_id());
+ _addProperty(share_static_string("context"), verb->get_id());
}
if (key) {
_addProperty(share_static_string("merge-key"), key);
}
- _addProperty(share_static_string("description"), description.c_str());
}
};
@@ -169,7 +167,7 @@ sp_document_maybe_done (SPDocument *doc, const gchar *key, const unsigned int ev
g_assert (doc->priv != NULL);
g_assert (doc->priv->sensitive);
- Inkscape::Debug::Logger::write<CommitEvent>(doc, key, event_type, event_description);
+ Inkscape::Debug::EventTracker<CommitEvent> tracker(doc, key, event_type);
doc->collectOrphans();