diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-08 14:24:55 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-08 14:24:55 +0800 |
commit | ab44fe3e1d962e7876693929c940121e2954379d (patch) | |
tree | 337a2db277df0506b22a2954370906de3c37127c /addressbook/gui/component/e-cardlist-model.c | |
parent | 98a615797554ceab22a641f21c4b364b4af21e4f (diff) | |
download | gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.gz gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.bz2 gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.lz gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.xz gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.tar.zst gsoc2013-evolution-ab44fe3e1d962e7876693929c940121e2954379d.zip |
add lots of libs back in since they're building now.
2002-11-07 Chris Toshok <toshok@ximian.com>
* 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
Diffstat (limited to 'addressbook/gui/component/e-cardlist-model.c')
-rw-r--r-- | addressbook/gui/component/e-cardlist-model.c | 37 |
1 files changed, 19 insertions, 18 deletions
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); } |