Code

undo annotations
authorgustav_b <gustav_b@users.sourceforge.net>
Tue, 10 Oct 2006 22:02:27 +0000 (22:02 +0000)
committergustav_b <gustav_b@users.sourceforge.net>
Tue, 10 Oct 2006 22:02:27 +0000 (22:02 +0000)
src/splivarot.cpp
src/ui/widget/page-sizer.cpp

index 6759515f2ea710b9d1610929eddd2f958b25d32b..252a2432df4aec993d7f4aae14e35d64a4ebed74 100644 (file)
@@ -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;
index 2c2f3363bcdc44bcc014d320d128a4c00b773069..ac622ba41a9800117ab965bdab036ec0b86bf165 100644 (file)
@@ -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 );