aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-book-view-listener.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-05 19:03:01 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-05 19:03:01 +0800
commit02e66b1085341d95377d3f2173a1900102f20b9b (patch)
tree52b0116ecd1e2850a1e2c1bd4c773015880f7ad3 /addressbook/backend/ebook/e-book-view-listener.c
parentc8b587d9c58dbb69085af3f05250f867be1c3631 (diff)
downloadgsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.tar
gsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.tar.gz
gsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.tar.bz2
gsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.tar.lz
gsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.tar.xz
gsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.tar.zst
gsoc2013-evolution-02e66b1085341d95377d3f2173a1900102f20b9b.zip
don't call bonobo_activation_init directly.
2002-11-05 Chris Toshok <toshok@ximian.com> * backend/ebook/test-client-list.c (main): don't call bonobo_activation_init directly. * backend/ebook/test-client.c (get_card_cb): don't unref the card here since we never reffed it. (main): no need to call bonobo_activation_init, as gnome_program_init did it for us. * backend/ebook/e-card-simple.c (e_card_simple_get_property): s/g_value_{set,get}_pointer/g_value_{set,get}_object * backend/ebook/e-book-util.c (set_default_book_uri_local): make sure to terminate args with NULL for g_build_filename. * backend/ebook/e-book-listener.c: nuke e_book_listener_get_type and use the BONOBO_TYPE_FUNC_FULL macro. * backend/ebook/e-book-listener.h: add the epv to EBookListenerClass so BONOBO_TYPE_FUNC_FULL works. * backend/ebook/e-book-view-listener.c: nuke e_book_view_listener_get_type and use the BONOBO_TYPE_FUNC_FULL macro. * backend/ebook/e-book-view-listener.h: add the epv to EBookViewListenerClass so BONOBO_TYPE_FUNC_FULL works. svn path=/trunk/; revision=18543
Diffstat (limited to 'addressbook/backend/ebook/e-book-view-listener.c')
-rw-r--r--addressbook/backend/ebook/e-book-view-listener.c37
1 files changed, 8 insertions, 29 deletions
diff --git a/addressbook/backend/ebook/e-book-view-listener.c b/addressbook/backend/ebook/e-book-view-listener.c
index 5e8c9300ae..fb1d0b3383 100644
--- a/addressbook/backend/ebook/e-book-view-listener.c
+++ b/addressbook/backend/ebook/e-book-view-listener.c
@@ -477,7 +477,7 @@ e_book_view_listener_dispose (GObject *object)
}
static void
-corba_class_init (void)
+corba_class_init (EBookViewListenerClass *klass)
{
POA_GNOME_Evolution_Addressbook_BookViewListener__vepv *vepv;
POA_GNOME_Evolution_Addressbook_BookViewListener__epv *epv;
@@ -489,7 +489,7 @@ corba_class_init (void)
base_epv->default_POA = NULL;
- epv = g_new0 (POA_GNOME_Evolution_Addressbook_BookViewListener__epv, 1);
+ epv = &klass->epv;
epv->notifyCardChanged = impl_BookViewListener_notify_card_changed;
epv->notifyCardRemoved = impl_BookViewListener_notify_card_removed;
epv->notifyCardAdded = impl_BookViewListener_notify_card_added;
@@ -519,32 +519,11 @@ e_book_view_listener_class_init (EBookViewListenerClass *klass)
object_class->dispose = e_book_view_listener_dispose;
- corba_class_init ();
+ corba_class_init (klass);
}
-/**
- * e_book_view_listener_get_type:
- */
-GType
-e_book_view_listener_get_type (void)
-{
- static GType type = 0;
-
- if (! type) {
- GTypeInfo info = {
- sizeof (EBookViewListenerClass),
- NULL, /* base_class_init */
- NULL, /* base_class_finalize */
- (GClassInitFunc) e_book_view_listener_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (EBookViewListener),
- 0, /* n_preallocs */
- (GInstanceInitFunc) e_book_view_listener_init
- };
-
- type = g_type_register_static (G_TYPE_OBJECT, "EBookViewListener", &info, 0);
- }
-
- return type;
-}
+BONOBO_TYPE_FUNC_FULL (
+ EBookViewListener,
+ GNOME_Evolution_Addressbook_BookViewListener,
+ BONOBO_TYPE_OBJECT,
+ e_book_view_listener);