Code

* src/connector-context.cpp, src/widgets/toolbox.cpp:
authormjwybrow <mjwybrow@users.sourceforge.net>
Fri, 30 Jun 2006 01:07:38 +0000 (01:07 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Fri, 30 Jun 2006 01:07:38 +0000 (01:07 +0000)
      Add undo event descriptions for the connector context.

ChangeLog
src/connector-context.cpp
src/widgets/toolbox.cpp

index 6e7a5cecdc973773122cc759a8441fcd7ecf21a2..3911fc5ccb7c805350177d3bfc00c4786e1e46e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-30  Michael Wybrow  <mjwybrow@users.sourceforge.net>
+
+       * src/connector-context.cpp, src/widgets/toolbox.cpp:
+         Add undo event descriptions for the connector context.
+
 2006-06-27  Michael Wybrow  <mjwybrow@users.sourceforge.net>
 
        * packaging/macosx/ScriptExec/main.c:
 2006-05-21  Marco Scholten  <mscholtn@xs4all.nl>
 
        * src/ui/dialog/inkscape-preferences.cpp, 
-      src/ui/dialog/inkscape-preferences.h: 
+         src/ui/dialog/inkscape-preferences.h: 
          Added 'Show close button on dialogs' option.
 
 2006-05-21  MenTaLguY  <mental@rydia.net>
index 417734fd57d49c5be45f8693073d7133ebb35e2f..e68c8f52187a550f73c8c9bc4364bde09f39eeaf 100644 (file)
@@ -714,7 +714,7 @@ connector_handle_button_release(SPConnectorContext *const cc, GdkEventButton con
                 sp_conn_adjust_path(SP_PATH(cc->clickeditem));
                 cc->clickeditem->updateRepr();
                 sp_document_done(doc, SP_VERB_CONTEXT_CONNECTOR, 
-                                 /* TODO: annotate */ "connector-context.cpp:717");
+                                 _("Reroute connector"));
                 cc_set_active_conn(cc, cc->clickeditem);
                 sp_document_ensure_up_to_date(doc);
                 cc->state = SP_CONNECTOR_CONTEXT_IDLE;
@@ -921,8 +921,7 @@ spcc_flush_white(SPConnectorContext *cc, SPCurve *gc)
     sp_curve_unref(c);
 
     /* Flush pending updates */
-    sp_document_done(doc, SP_VERB_CONTEXT_CONNECTOR, 
-                     /* TODO: annotate */ "connector-context.cpp:925");
+    sp_document_done(doc, SP_VERB_CONTEXT_CONNECTOR, _("Create connector"));
     sp_document_ensure_up_to_date(doc);
 }
 
@@ -1276,8 +1275,10 @@ void cc_selection_set_avoid(bool const set_avoid)
         return;
     }
 
-    sp_document_done(document, SP_VERB_CONTEXT_CONNECTOR,
-                     /* TODO: annotate */ "connector-context.cpp:1280");
+    char *event_desc = (set_avoid) ?
+            _("Make connectors avoid selected objects") :
+            _("Make connectors ignore selected objects");
+    sp_document_done(document, SP_VERB_CONTEXT_CONNECTOR, event_desc);
 }
 
 
index 7ff4f115e2e00d4ef5732fdb84f0442d1d822c7f..495c620ac8b00a01635b31f7124105a60335f5ef 100644 (file)
@@ -3848,7 +3848,7 @@ static void connector_spacing_changed(GtkAdjustment *adj, GtkWidget *tbl)
     }
     
     sp_document_done(doc, SP_VERB_CONTEXT_CONNECTOR, 
-                     /* TODO: annotate */ "toolbox.cpp:3851");
+            _("Change connector spacing distance"));
 
     g_object_set_data(G_OBJECT(tbl), "freeze", GINT_TO_POINTER(FALSE));