Author: ok
Date: Sun Feb 10 21:45:14 2008
New Revision: 1994
URL: http://svn.gnome.org/viewvc/gegl?rev=1994&view=rev

Log:
* gegl/gegl-chant.h: renamed dummy_filler to chant_data, this means
that operations implemented with the chanting framework has access
to a location to store a reference to data in the form of a user
struct that is created on demand and properly cleaned up in finalize.
The pointer should be accesed like the chanted properties like:
o->chant_data.


Modified:
   trunk/ChangeLog
   trunk/gegl/gegl-chant.h

Modified: trunk/gegl/gegl-chant.h
==============================================================================
--- trunk/gegl/gegl-chant.h     (original)
+++ trunk/gegl/gegl-chant.h     Sun Feb 10 21:45:14 2008
@@ -271,8 +271,11 @@
 
 struct _GeglChantO
 {
-  gpointer dummy_filler; /* to avoid empty struct, can be done a bit more 
cleverly to
-                            avoid adding it when there is actual properties*/
+  gpointer chant_data; /* Unused by the chanting framework can be used by 
operations
+                        * for storage of a private struct, (remember to clean 
up
+                        * in finalize). Also serves as a filler making sure 
that we
+                        * do not create an empty struct if there are no 
chanted properties.
+                        */
 #define gegl_chant_int(name, nick, min, max, def, blurb)     gint        name;
 #define gegl_chant_double(name, nick, min, max, def, blurb)  gdouble     name;
 #define gegl_chant_boolean(name, nick, def, blurb)           gboolean    name;
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to