gegl r2734 - in trunk: . bin gegl



Author: ok
Date: Tue Nov 11 21:28:35 2008
New Revision: 2734
URL: http://svn.gnome.org/viewvc/gegl?rev=2734&view=rev

Log:
* gegl/gegl.h.in: include gegl-path.h
* bin/editor.c: Clean up includes,.
* bin/gegl-node-editor.c: ..
* bin/gegl-path-smooth.c: .
* bin/gegl-path-spiro.c: .
* bin/gegl-store.c:  
* bin/gegl-tree-editor-action.c: .


Modified:
   trunk/ChangeLog
   trunk/bin/editor.c
   trunk/bin/gegl-node-editor.c
   trunk/bin/gegl-path-smooth.c
   trunk/bin/gegl-path-spiro.c
   trunk/bin/gegl-store.c
   trunk/bin/gegl-tree-editor-action.c
   trunk/gegl/gegl.h.in

Modified: trunk/bin/editor.c
==============================================================================
--- trunk/bin/editor.c	(original)
+++ trunk/bin/editor.c	Tue Nov 11 21:28:35 2008
@@ -30,10 +30,10 @@
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
+#include <gegl.h>
 
 #include "gegl-bin-gui-types.h"
 
-#include "gegl.h"
 
 #include "editor-optype.h"
 #include "gegl-node-editor.h"
@@ -409,9 +409,19 @@
 
       switch (prev_knot->type)
         {
-          case '*':
+          case 'v':
 foo:
             {
+              GeglPathItem knot = {'v', {{ex, ey}}};
+              gegl_path_insert (vector, -1, &knot);
+              tools.selected_no = tools.drag_no = n;
+              tools.drag_sub = 0;
+              tools.prevx = ex;
+              tools.prevy = ey;
+            }
+            break;
+          case '*':
+            {
               GeglPathItem knot = {'*', {{ex, ey}}};
               gegl_path_insert (vector, -1, &knot);
               tools.selected_no = tools.drag_no = n;
@@ -423,7 +433,7 @@
           case 'o':
           case 'O':
             {
-              GeglPathItem knot = {'o', {{ex, ey}}};
+              GeglPathItem knot = {'O', {{ex, ey}}};
               gegl_path_insert (vector, -1, &knot);
               tools.selected_no = tools.drag_no = n;
               tools.drag_sub = 0;

Modified: trunk/bin/gegl-node-editor.c
==============================================================================
--- trunk/bin/gegl-node-editor.c	(original)
+++ trunk/bin/gegl-node-editor.c	Tue Nov 11 21:28:35 2008
@@ -27,11 +27,10 @@
 
 #include "gegl-bin-gui-types.h"
 
-#include "gegl.h"
+#include <gegl.h>
 
 #include "gegl-node-editor.h"
 #include "gegl-paramspecs.h"
-#include "gegl-path.h"
 
 
 enum

Modified: trunk/bin/gegl-path-smooth.c
==============================================================================
--- trunk/bin/gegl-path-smooth.c	(original)
+++ trunk/bin/gegl-path-smooth.c	Tue Nov 11 21:28:35 2008
@@ -17,7 +17,7 @@
  */
 
 #include "gegl-path-smooth.h"
-#include <gegl/gegl.h>
+#include <gegl.h>
 #include "gegl-path.h"
 #include <math.h>
 

Modified: trunk/bin/gegl-path-spiro.c
==============================================================================
--- trunk/bin/gegl-path-spiro.c	(original)
+++ trunk/bin/gegl-path-spiro.c	Tue Nov 11 21:28:35 2008
@@ -17,8 +17,7 @@
  */
 
 #include "gegl-path-spiro.h"
-#include <gegl/gegl.h>
-#include "gegl-path.h"
+#include <gegl.h>
 #include <math.h>
 
 #include <spiroentrypoints.h>

Modified: trunk/bin/gegl-store.c
==============================================================================
--- trunk/bin/gegl-store.c	(original)
+++ trunk/bin/gegl-store.c	Tue Nov 11 21:28:35 2008
@@ -17,15 +17,12 @@
  */
 
 #include "config.h"
-
 #include <stdio.h>
 #include <string.h>
 #include <gtk/gtk.h>
+#include <gegl.h>
 
 #include "gegl-bin-gui-types.h"
-
-#include "gegl.h"
-
 #include "gegl-store.h"
 
 

Modified: trunk/bin/gegl-tree-editor-action.c
==============================================================================
--- trunk/bin/gegl-tree-editor-action.c	(original)
+++ trunk/bin/gegl-tree-editor-action.c	Tue Nov 11 21:28:35 2008
@@ -20,11 +20,9 @@
 
 #include <gtk/gtk.h>
 #include <string.h>
+#include <gegl.h>
 
 #include "gegl-bin-gui-types.h"
-
-#include "gegl.h"
-
 #include "editor.h"
 #include "gegl-store.h"
 #include "gegl-tree-editor.h"

Modified: trunk/gegl/gegl.h.in
==============================================================================
--- trunk/gegl/gegl.h.in	(original)
+++ trunk/gegl/gegl.h.in	Tue Nov 11 21:28:35 2008
@@ -876,6 +876,7 @@
 #include <gegl-buffer.h>
 #include <gegl-color.h>
 #include <gegl-curve.h>
+#include <gegl-path.h>
 
 G_END_DECLS
 #endif  /* __GEGL_H__ */



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