gegl r2229 - in trunk: . gegl/buffer
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2229 - in trunk: . gegl/buffer
- Date: Thu, 24 Apr 2008 21:26:01 +0100 (BST)
Author: ok
Date: Thu Apr 24 20:26:00 2008
New Revision: 2229
URL: http://svn.gnome.org/viewvc/gegl?rev=2229&view=rev
Log:
* gegl/buffer/gegl-buffer.c: (gegl_buffer_new_from_format): treat the
swap locations RAM and ram specially (this means that GEGL cannot use
a file in the current directory named RAM or ram as it's swap file.
Modified:
trunk/ChangeLog
trunk/gegl/buffer/gegl-buffer.c
Modified: trunk/gegl/buffer/gegl-buffer.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer.c (original)
+++ trunk/gegl/buffer/gegl-buffer.c Thu Apr 24 20:26:00 2008
@@ -914,19 +914,24 @@
path = g_build_filename (gegl_config()->swap, filename, NULL);
g_free (filename);
- if (gegl_config()->swap)
+ if (!gegl_config()->swap ||
+ g_str_equal (gegl_config()->swap, "RAM") ||
+ g_str_equal (gegl_config()->swap, "ram")
+ )
{
tile_storage = g_object_new (GEGL_TYPE_TILE_STORAGE,
"format", babl_format,
- "path", path,
NULL);
}
else
{
+ g_warning ("swap is: %s", gegl_config()->swap);
tile_storage = g_object_new (GEGL_TYPE_TILE_STORAGE,
"format", babl_format,
+ "path", path,
NULL);
}
+
buffer = g_object_new (GEGL_TYPE_BUFFER,
"source", tile_storage,
"x", x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]