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 | |
parent | 2e2fa87f5061f7885c2836790806cfc8b7343062 (diff) | |
download | gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar.gz gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar.bz2 gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar.lz gsoc2013-evolution-70b1993d5e762672eecdb8dd0dfb3a4189189921.tar.xz 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
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-book.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index a04abd914f..fd155aee01 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +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. + 2002-12-06 Ettore Perazzoli <ettore@ximian.com> * gui/component/e-cardlist-model.c: #include <string.h>. 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; } |