aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-12 17:11:12 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-12 17:11:12 +0800
commit1fc94a31fa32251b9371cd1e643422a403ebc52c (patch)
treeca6d9940c897bd1874e466af94a022081eae108a /addressbook/backend
parent9d009258289579da708ec2aa3744471646d5bfa2 (diff)
downloadgsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.tar
gsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.tar.gz
gsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.tar.bz2
gsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.tar.lz
gsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.tar.xz
gsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.tar.zst
gsoc2013-evolution-1fc94a31fa32251b9371cd1e643422a403ebc52c.zip
Ref our book view listener.
2000-08-12 Christopher James Lahey <clahey@helixcode.com> * backend/pas/pas-book-view.c: Ref our book view listener. * gui/component/addressbook.c: Updated to use new minicard view widget. * gui/minicard/Makefile.am: Added e-minicard-view-widget.c and e-minicard-view-widget.h. * gui/minicard/e-minicard-view-widget.c, gui/minicard/e-minicard-view-widget.h: New class that's just a minicard view in an ECanvas. * gui/search/e-addressbook-search-dialog.c: New file for implementing a search dialog. svn path=/trunk/; revision=4771
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-book-view.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/addressbook/backend/pas/pas-book-view.c b/addressbook/backend/pas/pas-book-view.c
index 4e1c8697aa..3bf35f439f 100644
--- a/addressbook/backend/pas/pas-book-view.c
+++ b/addressbook/backend/pas/pas-book-view.c
@@ -167,6 +167,22 @@ pas_book_view_construct (PASBookView *book_view,
return FALSE;
}
+ CORBA_Object_duplicate (listener, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning("Unable to duplicate listener object in pas-book-view.c\n");
+ CORBA_exception_free (&ev);
+
+ return FALSE;
+ }
+
+ Evolution_BookViewListener_ref (listener, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning("Unable to ref listener object in pas-book-view.c\n");
+ CORBA_exception_free (&ev);
+
+ return FALSE;
+ }
+
CORBA_exception_free (&ev);
obj = bonobo_object_activate_servant (BONOBO_OBJECT (book_view), servant);
@@ -208,6 +224,27 @@ static void
pas_book_view_destroy (GtkObject *object)
{
PASBookView *book_view = PAS_BOOK_VIEW (object);
+ CORBA_Environment ev;
+
+ CORBA_exception_init (&ev);
+
+ Evolution_BookViewListener_unref (book_view->priv->listener, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning("Unable to unref listener object in pas-book-view.c\n");
+ CORBA_exception_free (&ev);
+
+ return;
+ }
+
+ CORBA_Object_release (book_view->priv->listener, &ev);
+ if (ev._major != CORBA_NO_EXCEPTION) {
+ g_warning("Unable to release listener object in pas-book-view.c\n");
+ CORBA_exception_free (&ev);
+
+ return;
+ }
+
+ CORBA_exception_free (&ev);
g_free (book_view->priv);