From 682ae39ab7434227af0cde055b1d8242969ec0bf Mon Sep 17 00:00:00 2001 From: gustav_b Date: Tue, 10 Oct 2006 22:02:27 +0000 Subject: [PATCH] undo annotations --- src/splivarot.cpp | 19 +++++++++++++------ src/ui/widget/page-sizer.cpp | 3 +-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/splivarot.cpp b/src/splivarot.cpp index 6759515f2..252a2432d 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -1048,8 +1048,11 @@ sp_selected_path_create_offset_object(int expand, bool updating) { // pas vraiment de points sur le resultat // donc il ne reste rien - sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE, - _("Create offset object")); + sp_document_done(sp_desktop_document(desktop), + (updating ? SP_VERB_SELECTION_LINKED_OFFSET + : SP_VERB_SELECTION_DYNAMIC_OFFSET), + (updating ? _("Create linked offset") + : _("Create dynamic offset"))); selection->clear(); delete res; @@ -1113,8 +1116,11 @@ sp_selected_path_create_offset_object(int expand, bool updating) selection->set(nitem); } - sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE, - _("Create offset object")); + sp_document_done(sp_desktop_document(desktop), + (updating ? SP_VERB_SELECTION_LINKED_OFFSET + : SP_VERB_SELECTION_DYNAMIC_OFFSET), + (updating ? _("Create linked offset") + : _("Create dynamic offset"))); delete res; delete orig; @@ -1356,8 +1362,9 @@ sp_selected_path_do_offset(bool expand, double prefOffset) } if (did) { - sp_document_done(sp_desktop_document(desktop), SP_VERB_NONE, - _("Inset/outset path")); + sp_document_done(sp_desktop_document(desktop), + (expand ? SP_VERB_SELECTION_OFFSET : SP_VERB_SELECTION_INSET), + (expand ? _("Outset path") : _("Inset path"))); } else { desktop->messageStack()->flash(Inkscape::ERROR_MESSAGE, _("No paths to inset/outset in the selection.")); return; diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index 2c2f3363b..ac622ba41 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -349,8 +349,7 @@ PageSizer::setDim (double w, double h, bool changeList) SPDocument *doc = sp_desktop_document(SP_ACTIVE_DESKTOP); sp_document_set_width (doc, w, &_px_unit); sp_document_set_height (doc, h, &_px_unit); - sp_document_done (doc, SP_VERB_NONE, - /* TODO: annotate */ "page-sizer.cpp:301"); + sp_document_done (doc, SP_VERB_NONE, _("Set page size")); } _landscape = ( w > h ); -- 2.30.2