aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names-model.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-08 14:20:11 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-08 14:20:11 +0800
commit98a615797554ceab22a641f21c4b364b4af21e4f (patch)
tree12e56fcfd855b1dadbc83e5d9cf2a949d9721dd3 /addressbook/gui/component/select-names/e-select-names-model.c
parent237e7d2436b9e28f6609b089653068aefea435d7 (diff)
downloadgsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.tar
gsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.tar.gz
gsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.tar.bz2
gsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.tar.lz
gsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.tar.xz
gsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.tar.zst
gsoc2013-evolution-98a615797554ceab22a641f21c4b364b4af21e4f.zip
more porting work.
2002-11-07 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-bonobo.[ch]: more porting work. * gui/component/select-names/e-select-names-completion.[ch]: more porting work. * gui/component/select-names/e-select-names-manager.[ch]: more porting work. * gui/component/select-names/e-select-names-model.[ch]: more porting work. * gui/component/select-names/e-select-names-popup.c: more porting work. * gui/component/select-names/e-select-names-table-model.[ch]: more porting work. * gui/component/select-names/e-select-names-text-model.[ch]: more porting work. * gui/component/select-names/e-select-names.[ch]: more porting work. svn path=/trunk/; revision=18657
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-model.c')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-model.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-model.c b/addressbook/gui/component/select-names/e-select-names-model.c
index 253245d4d3..6c31e1baf7 100644
--- a/addressbook/gui/component/select-names/e-select-names-model.c
+++ b/addressbook/gui/component/select-names/e-select-names-model.c
@@ -65,37 +65,38 @@ struct _ESelectNamesModelPrivate {
static void e_select_names_model_init (ESelectNamesModel *model);
static void e_select_names_model_class_init (ESelectNamesModelClass *klass);
-static void e_select_names_model_destroy (GtkObject *object);
+static void e_select_names_model_dispose (GObject *object);
-GtkType
+GType
e_select_names_model_get_type (void)
{
- static GtkType model_type = 0;
+ static GType type = 0;
- if (!model_type) {
- GtkTypeInfo model_info = {
- "ESelectNamesModel",
- sizeof (ESelectNamesModel),
+ if (!type) {
+ static const GTypeInfo info = {
sizeof (ESelectNamesModelClass),
- (GtkClassInitFunc) e_select_names_model_class_init,
- (GtkObjectInitFunc) e_select_names_model_init,
- NULL, /* reserved_1 */
- NULL, /* reserved_2 */
- (GtkClassInitFunc) NULL
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ (GClassInitFunc) e_select_names_model_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (ESelectNamesModel),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) e_select_names_model_init,
};
- model_type = gtk_type_unique (gtk_object_get_type (), &model_info);
+ type = g_type_register_static (G_TYPE_OBJECT, "ESelectNamesModel", &info, 0);
}
- return model_type;
+ return type;
}
static void
e_select_names_model_class_init (ESelectNamesModelClass *klass)
{
- GtkObjectClass *object_class;
+ GObjectClass *object_class;
- object_class = GTK_OBJECT_CLASS(klass);
+ object_class = G_OBJECT_CLASS(klass);
e_select_names_model_signals[E_SELECT_NAMES_MODEL_CHANGED] =
g_signal_new ("changed",
@@ -120,7 +121,7 @@ e_select_names_model_class_init (ESelectNamesModelClass *klass)
klass->changed = NULL;
- object_class->destroy = e_select_names_model_destroy;
+ object_class->dispose = e_select_names_model_dispose;
}
/**
@@ -135,7 +136,7 @@ e_select_names_model_init (ESelectNamesModel *model)
}
static void
-e_select_names_model_destroy (GtkObject *object)
+e_select_names_model_dispose (GObject *object)
{
ESelectNamesModel *model = E_SELECT_NAMES_MODEL (object);