[gimp] app: fix the code that sets the 64bit tile cache size on GeglConfig
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix the code that sets the 64bit tile cache size on GeglConfig
- Date: Tue, 18 Sep 2012 18:08:04 +0000 (UTC)
commit 52af6e3f3f67d37aa72d06a5f60b1a3967d6c297
Author: Michael Natterer <mitch gimp org>
Date: Tue Sep 18 20:07:13 2012 +0200
app: fix the code that sets the 64bit tile cache size on GeglConfig
app/gegl/gimp-gegl.c | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index 027de23..d18c30d 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -55,7 +55,7 @@ gimp_gegl_init (Gimp *gimp)
"tile-cache-size"))
{
g_object_set (gegl_config (),
- "cache-size", (guint64) config->tile_cache_size,
+ "tile-cache-size", (guint64) config->tile_cache_size,
#if 0
"threads", config->num_processors,
#endif
@@ -98,9 +98,19 @@ gimp_gegl_init (Gimp *gimp)
static void
gimp_gegl_notify_tile_cache_size (GimpGeglConfig *config)
{
- g_object_set (gegl_config (),
- "cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
- NULL);
+ if (g_object_class_find_property (G_OBJECT_GET_CLASS (gegl_config ()),
+ "tile-cache-size"))
+ {
+ g_object_set (gegl_config (),
+ "tile-cache-size", (guint64) config->tile_cache_size,
+ NULL);
+ }
+ else
+ {
+ g_object_set (gegl_config (),
+ "cache-size", (gint) MIN (config->tile_cache_size, G_MAXINT),
+ NULL);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]