diff options
Diffstat (limited to 'widgets/table/e-table-field-chooser.c')
-rw-r--r-- | widgets/table/e-table-field-chooser.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/widgets/table/e-table-field-chooser.c b/widgets/table/e-table-field-chooser.c index 294d90e212..bb3388431b 100644 --- a/widgets/table/e-table-field-chooser.c +++ b/widgets/table/e-table-field-chooser.c @@ -39,9 +39,6 @@ static void e_table_field_chooser_set_property (GObject *object, guint prop_id, static void e_table_field_chooser_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); static void e_table_field_chooser_dispose (GObject *object); -#define PARENT_TYPE GTK_TYPE_VBOX -static GtkVBoxClass *parent_class = NULL; - /* The arguments we take */ enum { PROP_0, @@ -50,12 +47,7 @@ enum { PROP_DND_CODE }; -E_MAKE_TYPE (e_table_field_chooser, - "ETableFieldChooser", - ETableFieldChooser, - e_table_field_chooser_class_init, - e_table_field_chooser_init, - PARENT_TYPE) +G_DEFINE_TYPE (ETableFieldChooser, e_table_field_chooser, GTK_TYPE_VBOX) static void e_table_field_chooser_class_init (ETableFieldChooserClass *klass) @@ -66,8 +58,6 @@ e_table_field_chooser_class_init (ETableFieldChooserClass *klass) glade_init(); - parent_class = g_type_class_ref (GTK_TYPE_VBOX); - object_class->set_property = e_table_field_chooser_set_property; object_class->get_property = e_table_field_chooser_get_property; object_class->dispose = e_table_field_chooser_dispose; @@ -225,8 +215,8 @@ e_table_field_chooser_dispose (GObject *object) g_object_unref (etfc->gui); etfc->gui = NULL; - if (G_OBJECT_CLASS (parent_class)->dispose) - (* G_OBJECT_CLASS (parent_class)->dispose) (object); + if (G_OBJECT_CLASS (e_table_field_chooser_parent_class)->dispose) + (* G_OBJECT_CLASS (e_table_field_chooser_parent_class)->dispose) (object); } GtkWidget* |