gegl r2418 - in trunk: . gegl/buffer



Author: ok
Date: Wed Jun 11 23:48:45 2008
New Revision: 2418
URL: http://svn.gnome.org/viewvc/gegl?rev=2418&view=rev

Log:
Made GeglBuffer be the object setting it's default tile-width and
tile-height properties according to gegl_config() instead of
gegl-tile-storage.
* gegl/buffer/gegl-buffer.c: (gegl_buffer_class_init):
* gegl/buffer/gegl-tile-storage.c: (gegl_tile_storage_class_init):


Modified:
   trunk/ChangeLog
   trunk/gegl/buffer/gegl-buffer.c
   trunk/gegl/buffer/gegl-tile-storage.c

Modified: trunk/gegl/buffer/gegl-buffer.c
==============================================================================
--- trunk/gegl/buffer/gegl-buffer.c	(original)
+++ trunk/gegl/buffer/gegl-buffer.c	Wed Jun 11 23:48:45 2008
@@ -775,13 +775,13 @@
 
   g_object_class_install_property (gobject_class, PROP_TILE_HEIGHT,
                                    g_param_spec_int ("tile-height", "tile-height", "height of a tile",
-                                                     -1, G_MAXINT, 64,
+                                                     -1, G_MAXINT, gegl_config()->tile_height,
                                                      G_PARAM_READWRITE |
                                                      G_PARAM_CONSTRUCT_ONLY));
 
   g_object_class_install_property (gobject_class, PROP_TILE_WIDTH,
                                    g_param_spec_int ("tile-width", "tile-width", "width of a tile",
-                                                     -1, G_MAXINT, 128,
+                                                     -1, G_MAXINT, gegl_config()->tile_width,
                                                      G_PARAM_READWRITE |
                                                      G_PARAM_CONSTRUCT_ONLY));
 

Modified: trunk/gegl/buffer/gegl-tile-storage.c
==============================================================================
--- trunk/gegl/buffer/gegl-tile-storage.c	(original)
+++ trunk/gegl/buffer/gegl-tile-storage.c	Wed Jun 11 23:48:45 2008
@@ -302,12 +302,12 @@
 
   g_object_class_install_property (gobject_class, PROP_TILE_WIDTH,
                                    g_param_spec_int ("tile-width", "tile-width", "width of a tile in pixels",
-                                                     0, G_MAXINT, gegl_config()->tile_width,
+                                                     0, G_MAXINT, 128,
                                                      G_PARAM_READWRITE |
                                                      G_PARAM_CONSTRUCT_ONLY));
   g_object_class_install_property (gobject_class, PROP_TILE_HEIGHT,
                                    g_param_spec_int ("tile-height", "tile-height", "height of a tile in pixels",
-                                                     0, G_MAXINT, gegl_config()->tile_height,
+                                                     0, G_MAXINT, 64,
                                                      G_PARAM_READWRITE |
                                                      G_PARAM_CONSTRUCT_ONLY));
   g_object_class_install_property (gobject_class, PROP_TILE_SIZE,



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