aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/e-book.c10
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;
}