[gegl] chant: Call the user provided class_init after the chant class_init



commit e3e4a64781411e4b5ff3c64c17c4d6ac9e8bbcca
Author: Jon Nordby <jononor gmail com>
Date:   Sat May 5 23:21:22 2012 +0200

    chant: Call the user provided class_init after the chant class_init
    
    Previously the chanting system would override vfuncs registered
    by the operation itself, making it impossible to have custom
    set/get_property behavior and similar.

 gegl/gegl-chant.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-chant.h b/gegl/gegl-chant.h
index cb8ce7d..8ee92b2 100644
--- a/gegl/gegl-chant.h
+++ b/gegl/gegl-chant.h
@@ -48,8 +48,8 @@ static GType    type_name##_type_id = 0;                                \
 static void     type_name##_class_chant_intern_init (gpointer klass)    \
   {                                                                     \
     gegl_chant_parent_class = g_type_class_peek_parent (klass);         \
-    type_name##_class_init ((TypeName##Class*) klass);                  \
     gegl_chant_class_intern_init (klass);                               \
+    type_name##_class_init ((TypeName##Class*) klass);                  \
   }                                                                     \
 GType                                                                   \
 type_name##_get_type (void)                                             \



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