From ab44fe3e1d962e7876693929c940121e2954379d Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 8 Nov 2002 06:24:55 +0000 Subject: add lots of libs back in since they're building now. 2002-11-07 Chris Toshok * gui/component/Makefile.am (evolution_addressbook_LDADD): add lots of libs back in since they're building now. * gui/component/addressbook-config.c: more porting work. * gui/component/addressbook.c: more porting work. * gui/component/e-address-popup.[ch]: more porting work. * gui/component/e-address-widget.[ch]: more porting work. * gui/component/e-cardlist-model.[ch]: more porting work. svn path=/trunk/; revision=18658 --- addressbook/gui/component/e-cardlist-model.c | 37 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'addressbook/gui/component/e-cardlist-model.c') diff --git a/addressbook/gui/component/e-cardlist-model.c b/addressbook/gui/component/e-cardlist-model.c index 2066d058bf..9e522e79f1 100644 --- a/addressbook/gui/component/e-cardlist-model.c +++ b/addressbook/gui/component/e-cardlist-model.c @@ -16,7 +16,7 @@ #define PARENT_TYPE e_table_model_get_type() static void -e_cardlist_model_destroy(GtkObject *object) +e_cardlist_model_dispose(GObject *object) { ECardlistModel *model = E_CARDLIST_MODEL(object); int i; @@ -154,11 +154,11 @@ e_cardlist_model_remove(ECardlistModel *model, } static void -e_cardlist_model_class_init (GtkObjectClass *object_class) +e_cardlist_model_class_init (GObjectClass *object_class) { ETableModelClass *model_class = (ETableModelClass *) object_class; - object_class->destroy = e_cardlist_model_destroy; + object_class->dispose = e_cardlist_model_dispose; model_class->column_count = e_cardlist_model_col_count; model_class->row_count = e_cardlist_model_row_count; @@ -173,7 +173,7 @@ e_cardlist_model_class_init (GtkObjectClass *object_class) } static void -e_cardlist_model_init (GtkObject *object) +e_cardlist_model_init (GObject *object) { ECardlistModel *model = E_CARDLIST_MODEL(object); model->data = NULL; @@ -195,27 +195,28 @@ e_cardlist_model_get(ECardlistModel *model, return NULL; } -GtkType +GType e_cardlist_model_get_type (void) { - static GtkType type = 0; + static GType aw_type = 0; - if (!type){ - GtkTypeInfo info = { - "ECardlistModel", - sizeof (ECardlistModel), + if (!aw_type) { + static const GTypeInfo aw_info = { sizeof (ECardlistModelClass), - (GtkClassInitFunc) e_cardlist_model_class_init, - (GtkObjectInitFunc) e_cardlist_model_init, - NULL, /* reserved 1 */ - NULL, /* reserved 2 */ - (GtkClassInitFunc) NULL + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) e_cardlist_model_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (ECardlistModel), + 0, /* n_preallocs */ + (GInstanceInitFunc) e_cardlist_model_init, }; - type = gtk_type_unique (PARENT_TYPE, &info); + aw_type = g_type_register_static (PARENT_TYPE, "ECardlistModel", &aw_info, 0); } - return type; + return aw_type; } ETableModel * @@ -223,7 +224,7 @@ e_cardlist_model_new (void) { ECardlistModel *et; - et = gtk_type_new (e_cardlist_model_get_type ()); + et = g_object_new (E_TYPE_CARDLIST_MODEL, NULL); return E_TABLE_MODEL(et); } -- cgit v1.2.3