From 65269c688256d025bbd5da06af484dcc536c178d Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 4 Nov 2002 16:18:45 +0000 Subject: use GObject api for ETableHeader use GObject api on ETableHeader 2002-11-04 Mike Kestner * e-table-group.c : use GObject api for ETableHeader * e-table-header-item.c : use GObject api on ETableHeader * e-table-header.[ch] : GObjectify * e-table-item.c : use GObject api on ETableHeader * e-table-search.[ch] : GObjectify * e-table-sorted.c : use GObject api for ETableHeader * e-table-sorter.c : use GObject api for ETableHeader * e-table-specification.[ch] : GObjectify * e-table-utils.c : use GObject api for ETableHeader * e-tree-sorted.c : use GObject api for ETableHeader * e-tree.c : use GObject api on Header, Spec, and Search svn path=/trunk/; revision=18531 --- widgets/table/e-table-specification.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'widgets/table/e-table-specification.c') diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c index 6d8653b6d6..6c1b4d7b04 100644 --- a/widgets/table/e-table-specification.c +++ b/widgets/table/e-table-specification.c @@ -30,18 +30,15 @@ #include #include -#include #include #include #include "gal/util/e-util.h" #include "gal/util/e-xml-utils.h" -#define PARENT_TYPE (gtk_object_get_type ()) - -static GtkObjectClass *etsp_parent_class; +static GObjectClass *etsp_parent_class; static void -etsp_destroy (GtkObject *object) +etsp_finalize (GObject *object) { ETableSpecification *etsp = E_TABLE_SPECIFICATION (object); int i; @@ -64,15 +61,15 @@ etsp_destroy (GtkObject *object) g_free (etsp->domain); etsp->domain = NULL; - GTK_OBJECT_CLASS (etsp_parent_class)->destroy (object); + etsp_parent_class->finalize (object); } static void -etsp_class_init (GtkObjectClass *klass) +etsp_class_init (GObjectClass *klass) { - etsp_parent_class = gtk_type_class (PARENT_TYPE); + etsp_parent_class = g_type_class_peek_parent (klass); - klass->destroy = etsp_destroy; + klass->finalize = etsp_finalize; } static void @@ -99,7 +96,7 @@ etsp_init (ETableSpecification *etsp) etsp->domain = NULL; } -E_MAKE_TYPE (e_table_specification, "ETableSpecification", ETableSpecification, etsp_class_init, etsp_init, PARENT_TYPE) +E_MAKE_TYPE (e_table_specification, "ETableSpecification", ETableSpecification, etsp_class_init, etsp_init, G_TYPE_OBJECT) /** * e_table_specification_new: @@ -112,7 +109,7 @@ E_MAKE_TYPE (e_table_specification, "ETableSpecification", ETableSpecification, ETableSpecification * e_table_specification_new (void) { - ETableSpecification *etsp = gtk_type_new (E_TABLE_SPECIFICATION_TYPE); + ETableSpecification *etsp = g_object_new (E_TABLE_SPECIFICATION_TYPE, NULL); return (ETableSpecification *) etsp; } -- cgit v1.2.3