[gegl/soc-2012-editor] gegl-config: proper formatting and include cleanup
- From: Isaac Wagner <isaacbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-editor] gegl-config: proper formatting and include cleanup
- Date: Tue, 5 Jun 2012 00:13:24 +0000 (UTC)
commit 2ffa5c8e76181925a7c721f9d2d005607fe921c9
Author: Michael Natterer <mitch gimp org>
Date: Sat May 12 17:47:02 2012 +0200
gegl-config: proper formatting and include cleanup
gegl/gegl-config.c | 43 +++++++++++++++++++++++++++----------------
1 files changed, 27 insertions(+), 16 deletions(-)
---
diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c
index 1a17cf7..22ebe51 100644
--- a/gegl/gegl-config.c
+++ b/gegl/gegl-config.c
@@ -15,11 +15,13 @@
*
* Copyright 2006, 2007 Ãyvind KolÃs <pippin gimp org>
*/
-#include <glib.h>
-#include <glib-object.h>
-#include <string.h>
-#include <glib/gprintf.h>
+
#include "config.h"
+
+#include <string.h>
+
+#include <glib-object.h>
+
#include "gegl.h"
#include "gegl-types-internal.h"
#include "gegl-config.h"
@@ -199,64 +201,73 @@ gegl_config_class_init (GeglConfigClass *klass)
"Tile width",
"default tile width for created buffers.",
0, G_MAXINT, 64,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_TILE_HEIGHT,
g_param_spec_int ("tile-height",
"Tile height",
"default tile height for created buffers.",
0, G_MAXINT, 64,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_CACHE_SIZE,
g_param_spec_int ("cache-size",
"Cache size",
"size of cache in bytes",
- 0, G_MAXINT, 512*1024*1024,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ 0, G_MAXINT, 512 * 1024 * 1024,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_CHUNK_SIZE,
g_param_spec_int ("chunk-size",
"Chunk size",
"the number of pixels processed simultaneously by GEGL.",
- 1, G_MAXINT, 256*300,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ 1, G_MAXINT, 256 * 300,
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_QUALITY,
g_param_spec_double ("quality",
"Quality",
- "quality/speed trade off 1.0 = full quality, 0.0=full speed",
+ "quality/speed trade off 1.0 = full quality, 0.0 = full speed",
0.0, 1.0, 1.0,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_BABL_TOLERANCE,
g_param_spec_double ("babl-tolerance",
"babl error",
"the error tolerance babl operates with",
0.0, 0.2, 0.0002,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_SWAP,
g_param_spec_string ("swap",
"Swap",
"where gegl stores it's swap files",
NULL,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_THREADS,
g_param_spec_int ("threads",
"Number of concurrent evaluation threads",
"default tile height for created buffers.",
0, 16, 1,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
g_object_class_install_property (gobject_class, PROP_USE_OPENCL,
g_param_spec_boolean ("use-opencl",
"Use OpenCL",
"Try to use OpenCL",
TRUE,
- G_PARAM_READWRITE|G_PARAM_CONSTRUCT));
+ G_PARAM_READWRITE |
+ G_PARAM_CONSTRUCT));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]