[gegl] Trimmed down ang reindented csugar example
- From: Øyvind Kolås <ok src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gegl] Trimmed down ang reindented csugar example
- Date: Sun, 22 Nov 2009 21:58:45 +0000 (UTC)
commit a1902d2ddecaae905f8244edd40e5da85dc8dda9
Author: �yvind Kolås <pippin gimp org>
Date: Sun Nov 22 21:57:26 2009 +0000
Trimmed down ang reindented csugar example
examples/csugar.c | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/examples/csugar.c b/examples/csugar.c
index a8e403f..7fc6847 100644
--- a/examples/csugar.c
+++ b/examples/csugar.c
@@ -1,10 +1,4 @@
-#include "config.h"
#include <gegl.h>
-#include <gegl-plugin.h>
-#include <glib/gprintf.h>
-#include <gobject/gvaluecollector.h>
-#include <stdarg.h>
-#include <unistd.h>
/* Example file illustrating the syntactic sugar for graph
* construction in C
@@ -43,13 +37,18 @@ main (gint argc,
"x", 50.0,
"y", 50.0,
NULL,
- gegl_node ("gegl:dropshadow", "opacity", 1.0, "radius", 3.0, "x", 3.0, "y", 3.0, NULL,
- gegl_node ("gegl:text",
- "size", 40.0,
- "font", "sans bold",
- "string", argv[2],
- "color", gegl_color_new("green"),
- NULL
+ gegl_node ("gegl:dropshadow",
+ "opacity", 1.0,
+ "radius", 3.0,
+ "x", 3.0,
+ "y", 3.0,
+ NULL,
+ gegl_node ("gegl:text",
+ "size", 40.0,
+ "font", "sans bold",
+ "string", argv[2],
+ "color", gegl_color_new("green"),
+ NULL
))))));
gegl_node_process (sink);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]