diff options
| author | MenTaLguY <mental@rydia.net> | 2007-05-06 21:42:59 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-05-06 21:42:59 +0000 |
| commit | c200ccb9e45ff5ffeabdf36532254528b764727d (patch) | |
| tree | f08933b068a9012d830065255df6b0b5fe6fc6e5 /src/document-undo.cpp | |
| parent | allow nesting under verb events (diff) | |
| download | inkscape-c200ccb9e45ff5ffeabdf36532254528b764727d.tar.gz inkscape-c200ccb9e45ff5ffeabdf36532254528b764727d.zip | |
remove description for privacy reasons, and allow nesting under commit
element
(bzr r2981)
Diffstat (limited to 'src/document-undo.cpp')
| -rw-r--r-- | src/document-undo.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/document-undo.cpp b/src/document-undo.cpp index 911258ee0..8f1dd90ce 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -143,19 +143,17 @@ typedef SimpleEvent<Event::INTERACTION> InteractionEvent; 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(); |
