From ef0a7b603c667abc8599c3abf88c4408acb05228 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Thu, 29 Jun 2006 20:15:48 +0000 Subject: patch from Gustav Broberg: undo annotations and history dialog (bzr r1315) --- src/path-chemistry.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/path-chemistry.cpp') diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp index ba181476f..61e61bee3 100644 --- a/src/path-chemistry.cpp +++ b/src/path-chemistry.cpp @@ -135,7 +135,8 @@ sp_selected_path_combine(void) // move to the position of the topmost, reduced by the number of deleted items repr->setPosition(topmost > 0 ? topmost + 1 : 0); - sp_document_done(sp_desktop_document(desktop)); + sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_COMBINE, + /* TODO: annotate */ "path-chemistry.cpp:139"); selection->set(repr); @@ -228,7 +229,8 @@ sp_selected_path_break_apart(void) } if (did) { - sp_document_done(sp_desktop_document(desktop)); + sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_BREAK_APART, + /* TODO: annotate */ "path-chemistry.cpp:233"); } else { sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No path(s) to break apart in the selection.")); return; @@ -294,7 +296,8 @@ sp_selected_path_to_curves0(gboolean interactive, guint32 text_grouping_policy) if (interactive) { if (did) { - sp_document_done(sp_desktop_document(desktop)); + sp_document_done(sp_desktop_document(desktop), SP_VERB_OBJECT_TO_CURVE, + /* TODO: annotate */ "path-chemistry.cpp:300"); } else { sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No objects to convert to path in the selection.")); return; @@ -371,7 +374,8 @@ sp_selected_path_reverse() } if (did) { - sp_document_done(sp_desktop_document(desktop)); + sp_document_done(sp_desktop_document(desktop), SP_VERB_SELECTION_REVERSE, + /* TODO: annotate */ "path-chemistry.cpp:378"); } else { sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No paths to reverse in the selection.")); } -- cgit v1.2.3