diff options
author | Chris Toshok <toshok@ximian.com> | 2002-12-07 13:17:39 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-12-07 13:17:39 +0800 |
commit | 70b1993d5e762672eecdb8dd0dfb3a4189189921 (patch) | |
tree | 406c8ceb4d13a3a79fa5b7b3905c6c12ee7b563f /addressbook/backend | |
parent | 2e2fa87f5061f7885c2836790806cfc8b7343062 (diff) | |
download | gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar.gz gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar.zst gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.zip |
use e_card_set_book instead of basically duplicating its code here.
2002-12-06 Chris Toshok <toshok@ximian.com>
* backend/ebook/e-book.c (e_book_commit_card): use e_card_set_book
instead of basically duplicating its code here.
(e_book_add_card): same.
svn path=/trunk/; revision=19052
Diffstat (limited to 'addressbook/backend')
-rw-r--r-- | addressbook/backend/ebook/e-book.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c index e236bc04ea..2ec99c1a37 100644 --- a/addressbook/backend/ebook/e-book.c +++ b/addressbook/backend/ebook/e-book.c @@ -1086,10 +1086,7 @@ e_book_add_card (EBook *book, g_free (vcard); - if (card->book && card->book != book) - g_object_unref (card->book); - card->book = book; - g_object_ref (card->book); + e_card_set_book (card, book); return retval; } @@ -1169,10 +1166,7 @@ e_book_commit_card (EBook *book, g_free (vcard); - if (card->book && card->book != book) - g_object_unref (card->book); - card->book = book; - g_object_ref (card->book); + e_card_set_book (card, book); return retval; } |