Index: gimp/tools/pdbgen/pdb/vectors.pdb
===================================================================
RCS file: /cvs/gnome/gimp/tools/pdbgen/pdb/vectors.pdb,v
retrieving revision 1.19
diff -u -p -r1.19 vectors.pdb
--- gimp/tools/pdbgen/pdb/vectors.pdb	28 Jul 2006 17:34:50 -0000	1.19
+++ gimp/tools/pdbgen/pdb/vectors.pdb	23 Aug 2006 15:46:31 -0000
@@ -418,7 +418,11 @@ HELP
   GimpStroke *stroke = gimp_vectors_stroke_get_by_ID (vectors, stroke_id);
   
   if (stroke)
-    gimp_vectors_stroke_remove (vectors, stroke);
+    {   
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "remove stroke", vectors);
+      gimp_vectors_stroke_remove (vectors, stroke);
+    }
   else
     success = FALSE;
 }
@@ -448,7 +452,11 @@ HELP
   GimpStroke *stroke = gimp_vectors_stroke_get_by_ID (vectors, stroke_id);
   
   if (stroke)
-    gimp_stroke_close (stroke);
+    {
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "close stroke", vectors);
+      gimp_stroke_close (stroke);
+    }
   else
     success = FALSE;
 }
@@ -483,7 +491,11 @@ HELP
   GimpStroke *stroke = gimp_vectors_stroke_get_by_ID (vectors, stroke_id);
   
   if (stroke)
-    gimp_stroke_translate (stroke, off_x, off_y);
+    {
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "translate stroke", vectors);
+      gimp_stroke_translate (stroke, off_x, off_y);
+    }
   else
     success = FALSE;
 }
@@ -517,7 +529,11 @@ HELP
   GimpStroke *stroke = gimp_vectors_stroke_get_by_ID (vectors, stroke_id);
   
   if (stroke)
-    gimp_stroke_scale (stroke, scale_x, scale_y);
+    {
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "scale stroke", vectors);
+      gimp_stroke_scale (stroke, scale_x, scale_y);
+    }
   else
     success = FALSE;
 }
@@ -562,6 +578,9 @@ HELP
       GArray *coords_array;
       gint    i;
 
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "interpolate stroke", vectors);
+
       coords_array = gimp_stroke_interpolate (stroke, prescision, &closed);
 
       if (coords_array)
@@ -620,6 +639,9 @@ HELP
   coord0.x = x0;
   coord0.y = y0;
 
+  gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                    "add stroke", vectors);
+
   stroke = gimp_bezier_stroke_new_moveto (&coord0);
   gimp_vectors_stroke_add (vectors, stroke);
   stroke_id = gimp_stroke_get_ID (stroke);
@@ -660,6 +682,8 @@ HELP
       coord0.x = x0;
       coord0.y = y0;
 
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "extend stroke", vectors);
       gimp_bezier_stroke_lineto (stroke, &coord0);
     }
   else
@@ -711,6 +735,8 @@ HELP
       coord1.x = x1;
       coord1.y = y1;
 
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "extend stroke", vectors);
       gimp_bezier_stroke_conicto (stroke, &coord0, &coord1);
     }
   else
@@ -768,6 +794,8 @@ HELP
       coord2.x = x2;
       coord2.y = y2;
 
+      gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                        "extend stroke", vectors);
       gimp_bezier_stroke_cubicto (stroke, &coord0, &coord1, &coord2);
     }
   else
@@ -816,6 +844,8 @@ HELP
   coord0.x = x0;
   coord0.y = y0;
 
+  gimp_image_undo_push_vectors_mod (GIMP_ITEM (vectors)->image,
+                                    "add stroke", vectors);
   stroke = gimp_bezier_stroke_new_ellipse (&coord0, radius_x, radius_y, angle);
   gimp_vectors_stroke_add (vectors, stroke);
   stroke_id = gimp_stroke_get_ID (stroke);
@@ -874,6 +904,7 @@ CODE
 }
 
 @headers = qw(<string.h> "core/gimp.h" "core/gimplist.h" "core/gimpimage.h"
+              "core/gimpimage-undo-push.h"
               "core/gimpchannel-select.h" "vectors/gimpanchor.h" "vectors/gimpbezierstroke.h"
               "vectors/gimpvectors.h"
               "gimp-intl.h");
