gegl r2654 - in trunk: . bin gegl/property-types



Author: ok
Date: Mon Oct 20 22:59:57 2008
New Revision: 2654
URL: http://svn.gnome.org/viewvc/gegl?rev=2654&view=rev

Log:
* gegl/property-types/gegl-path.[ch]: (gegl_path_replace): renamed from
gegl_path_replace_knot.
* bin/editor.c: (path_editor_keybinding), (motion_notify_event):


Modified:
   trunk/ChangeLog
   trunk/bin/editor.c
   trunk/gegl/property-types/gegl-path.c
   trunk/gegl/property-types/gegl-path.h

Modified: trunk/bin/editor.c
==============================================================================
--- trunk/bin/editor.c	(original)
+++ trunk/bin/editor.c	Mon Oct 20 22:59:57 2008
@@ -221,7 +221,7 @@
                 break;
             }
           g_print ("setting %c\n", knot.type);
-          gegl_path_replace_knot (da_vector, selected_no, &knot);
+          gegl_path_replace (da_vector, selected_no, &knot);
         }
         return TRUE;
       default:
@@ -436,17 +436,17 @@
               new_knot.point[1].y -= ry;
               new_knot.point[2].x -= rx;
               new_knot.point[2].y -= ry;
-              gegl_path_replace_knot (vector, drag_no, &new_knot);
+              gegl_path_replace (vector, drag_no, &new_knot);
               new_knot = *gegl_path_get (vector, drag_no + 1);
               new_knot.point[0].x -= rx;
               new_knot.point[0].y -= ry;
-              gegl_path_replace_knot (vector, drag_no + 1, &new_knot);
+              gegl_path_replace (vector, drag_no + 1, &new_knot);
             }
           else
             {
               new_knot.point[0].x -= rx;
               new_knot.point[0].y -= ry;
-              gegl_path_replace_knot (vector, drag_no, &new_knot);
+              gegl_path_replace (vector, drag_no, &new_knot);
             }
           gtk_widget_queue_draw (widget);
         }
@@ -455,7 +455,7 @@
           new_knot = *gegl_path_get (vector, drag_no);
           new_knot.point[1].x -= rx;
           new_knot.point[1].y -= ry;
-          gegl_path_replace_knot (vector, drag_no, &new_knot);
+          gegl_path_replace (vector, drag_no, &new_knot);
           gtk_widget_queue_draw (widget);
         }
       else if (drag_sub == -1)
@@ -463,7 +463,7 @@
           new_knot = *gegl_path_get (vector, drag_no + 1);
           new_knot.point[0].x -= rx;
           new_knot.point[0].y -= ry;
-          gegl_path_replace_knot (vector, drag_no + 1, &new_knot);
+          gegl_path_replace (vector, drag_no + 1, &new_knot);
           gtk_widget_queue_draw (widget);
         }
 

Modified: trunk/gegl/property-types/gegl-path.c
==============================================================================
--- trunk/gegl/property-types/gegl-path.c	(original)
+++ trunk/gegl/property-types/gegl-path.c	Mon Oct 20 22:59:57 2008
@@ -1139,9 +1139,9 @@
   gegl_path_emit_changed (vector, NULL);
 }
 
-void  gegl_path_replace_knot (GeglPath           *vector,
-                                gint                  pos,
-                                const GeglPathItem *knot)
+void  gegl_path_replace (GeglPath           *vector,
+                         gint                pos,
+                         const GeglPathItem *knot)
 {
   GeglPathPrivate *priv = GEGL_PATH_GET_PRIVATE (vector);
   GeglPathList *iter;

Modified: trunk/gegl/property-types/gegl-path.h
==============================================================================
--- trunk/gegl/property-types/gegl-path.h	(original)
+++ trunk/gegl/property-types/gegl-path.h	Mon Oct 20 22:59:57 2008
@@ -74,7 +74,7 @@
                                                const GeglPathItem *knot);
 const GeglPathItem * gegl_path_get            (GeglPath    *path,
                                                gint         pos);
-void                 gegl_path_replace_knot   (GeglPath    *path,
+void                 gegl_path_replace        (GeglPath    *path,
                                                gint         pos,
                                                const GeglPathItem *knot);
 void                 gegl_path_remove         (GeglPath    *path,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]