[gegl/soc-2012-editor] chant: Call the user provided class_init after the chant class_init



commit 9cfe9188d445808a01a43d99507f066e3e43f3b9
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]