gegl r2766 - in trunk: . gegl/buffer



Author: ok
Date: Sun Nov 16 17:55:43 2008
New Revision: 2766
URL: http://svn.gnome.org/viewvc/gegl?rev=2766&view=rev

Log:
* gegl/buffer/gegl-tile-storage.c: (gegl_tile_storage_constructor):
avoid using g_object_set.


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

Modified: trunk/gegl/buffer/gegl-tile-storage.c
==============================================================================
--- trunk/gegl/buffer/gegl-tile-storage.c	(original)
+++ trunk/gegl/buffer/gegl-tile-storage.c	Sun Nov 16 17:55:43 2008
@@ -198,34 +198,31 @@
   if (tile_storage->path != NULL)
     {
 #if 1
-      g_object_set (tile_storage,
-                    "source", g_object_new (GEGL_TYPE_TILE_BACKEND_FILE,
+      gegl_tile_handler_set_source (handler,
+                              g_object_new (GEGL_TYPE_TILE_BACKEND_FILE,
                                             "tile-width", tile_storage->tile_width,
                                             "tile-height", tile_storage->tile_height,
                                             "format", tile_storage->format,
                                             "path", tile_storage->path,
-                                            NULL),
-                    NULL);
+                                            NULL));
 #else
-      g_object_set (tile_storage,
-                    "source", g_object_new (GEGL_TYPE_TILE_BACKEND_TILEDIR,
+      gegl_tile_handler_set_source (handler,
+                    g_object_new (GEGL_TYPE_TILE_BACKEND_TILEDIR,
                                             "tile-width", tile_storage->tile_width,
                                             "tile-height", tile_storage->tile_height,
                                             "format", tile_storage->format,
                                             "path", tile_storage->path,
-                                            NULL),
-                    NULL);
+                                            NULL));
 #endif
     }
   else
     {
-      g_object_set (tile_storage,
-                    "source", g_object_new (GEGL_TYPE_TILE_BACKEND_RAM,
+      gegl_tile_handler_set_source (handler,
+                              g_object_new (GEGL_TYPE_TILE_BACKEND_RAM,
                                             "tile-width", tile_storage->tile_width,
                                             "tile-height", tile_storage->tile_height,
                                             "format", tile_storage->format,
-                                            NULL),
-                    NULL);
+                                            NULL));
     }
 
   g_object_get (handler->source,



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