From a611e132e9ddb796d37c63479acb7b5d300c69e8 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 1 Nov 2002 21:47:34 +0000 Subject: gobjectify ETableExtras is now a GObject (e_tree_class_init): remove 2002-11-01 Mike Kestner * e-table-extras : gobjectify * e-tree.c (et_real_construct): ETableExtras is now a GObject (e_tree_class_init): remove duplicated signals svn path=/trunk/; revision=18490 --- widgets/table/e-table-extras.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'widgets/table/e-table-extras.c') diff --git a/widgets/table/e-table-extras.c b/widgets/table/e-table-extras.c index b3c0efa27c..4429db98a3 100644 --- a/widgets/table/e-table-extras.c +++ b/widgets/table/e-table-extras.c @@ -35,9 +35,7 @@ #include "e-table-extras.h" #include -#define PARENT_TYPE (gtk_object_get_type()) - -static GtkObjectClass *ete_parent_class; +static GObjectClass *ete_parent_class; static void cell_hash_free(gchar *key, @@ -60,7 +58,7 @@ pixbuf_hash_free(gchar *key, } static void -ete_destroy (GtkObject *object) +ete_finalize (GObject *object) { ETableExtras *ete = E_TABLE_EXTRAS (object); @@ -89,15 +87,15 @@ ete_destroy (GtkObject *object) ete->searches = NULL; ete->pixbufs = NULL; - GTK_OBJECT_CLASS (ete_parent_class)->destroy (object); + ete_parent_class->finalize (object); } static void -ete_class_init (GtkObjectClass *klass) +ete_class_init (GObjectClass *klass) { - ete_parent_class = gtk_type_class (PARENT_TYPE); + ete_parent_class = g_type_class_peek_parent (klass); - klass->destroy = ete_destroy; + klass->finalize = ete_finalize; } static gint @@ -180,12 +178,12 @@ ete_init (ETableExtras *extras) e_table_extras_add_cell(extras, "tree-string", e_cell_tree_new (NULL, NULL, TRUE, e_cell_text_new (NULL, GTK_JUSTIFY_LEFT))); } -E_MAKE_TYPE(e_table_extras, "ETableExtras", ETableExtras, ete_class_init, ete_init, PARENT_TYPE) +E_MAKE_TYPE(e_table_extras, "ETableExtras", ETableExtras, ete_class_init, ete_init, G_TYPE_OBJECT) ETableExtras * e_table_extras_new (void) { - ETableExtras *ete = gtk_type_new (E_TABLE_EXTRAS_TYPE); + ETableExtras *ete = g_object_new (E_TABLE_EXTRAS_TYPE, NULL); return (ETableExtras *) ete; } -- cgit