diff options
Diffstat (limited to 'widgets/misc/e-reflow-model.c')
-rw-r--r-- | widgets/misc/e-reflow-model.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/widgets/misc/e-reflow-model.c b/widgets/misc/e-reflow-model.c index a96b17fc68..09630133e1 100644 --- a/widgets/misc/e-reflow-model.c +++ b/widgets/misc/e-reflow-model.c @@ -29,15 +29,13 @@ #include "e-reflow-model.h" -#define PARENT_TYPE G_TYPE_OBJECT +G_DEFINE_TYPE (EReflowModel, e_reflow_model, G_TYPE_OBJECT) #define d(x) d(static gint depth = 0;) -static GObjectClass *e_reflow_model_parent_class; - enum { MODEL_CHANGED, COMPARISON_CHANGED, @@ -153,10 +151,9 @@ e_reflow_model_reincarnate (EReflowModel *e_reflow_model, int n, GnomeCanvasItem } static void -e_reflow_model_class_init (GObjectClass *object_class) +e_reflow_model_class_init (EReflowModelClass *klass) { - EReflowModelClass *klass = E_REFLOW_MODEL_CLASS(object_class); - e_reflow_model_parent_class = g_type_class_ref (PARENT_TYPE); + GObjectClass *object_class = G_OBJECT_CLASS (klass); e_reflow_model_signals [MODEL_CHANGED] = g_signal_new ("model_changed", @@ -217,13 +214,10 @@ e_reflow_model_class_init (GObjectClass *object_class) } static void -e_reflow_model_init (GObject *object) +e_reflow_model_init (EReflowModel *e_reflow_model) { } -E_MAKE_TYPE(e_reflow_model, "EReflowModel", EReflowModel, - e_reflow_model_class_init, e_reflow_model_init, PARENT_TYPE) - #if d(!)0 static void print_tabs (void) |