summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2006-10-10 22:02:27 +0000
committergustav_b <gustav_b@users.sourceforge.net>2006-10-10 22:02:27 +0000
commitb4a6023743287d3e39e0df6f16335ef770c8c4b5 (patch)
tree391bb4a4f8cb81789494b6964a96b17b7d90907e
parentFiltering now works with text and image objects (diff)
downloadinkscape-b4a6023743287d3e39e0df6f16335ef770c8c4b5.tar.gz
inkscape-b4a6023743287d3e39e0df6f16335ef770c8c4b5.zip
undo annotations
(bzr r1795)
-rw-r--r--src/splivarot.cpp19
-rw-r--r--src/ui/widget/page-sizer.cpp3
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, _("<b>No paths</b> 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 );