[evolution-patches] [Addressbook] Fix for bug 66574
- From: Hans Petter Jansson <hpj ximian com>
- To: evolution-patches ximian com
- Cc: toshok ximian com
- Subject: [evolution-patches] [Addressbook] Fix for bug 66574
- Date: Thu, 23 Sep 2004 17:07:00 -0500
This patch, by Diego Gonzalez, fixes bug 66574 (make e_book_get_self ()
work). I fixed up some whitespace and removed leftover debug output.
--
Hans Petter
Index: libebook/e-book.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/libebook/e-book.c,v
retrieving revision 1.39.2.2
diff -u -p -r1.39.2.2 e-book.c
--- libebook/e-book.c 22 Sep 2004 22:26:27 -0000 1.39.2.2
+++ libebook/e-book.c 23 Sep 2004 22:03:29 -0000
@@ -3060,11 +3060,19 @@ e_book_get_self (EContact **contact, EBo
{
GError *e = NULL;
GConfClient *gconf;
+ gboolean status;
char *uid;
*book = e_book_new_system_addressbook (&e);
if (!*book) {
+ if (error)
+ g_propagate_error (error, e);
+ return FALSE;
+ }
+
+ status = e_book_open (*book, FALSE, &e);
+ if (status == FALSE) {
if (error)
g_propagate_error (error, e);
return FALSE;
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-data-server/addressbook/ChangeLog,v
retrieving revision 1.196.2.5
diff -u -p -r1.196.2.5 ChangeLog
--- ChangeLog 22 Sep 2004 22:26:27 -0000 1.196.2.5
+++ ChangeLog 23 Sep 2004 22:03:31 -0000
@@ -1,3 +1,10 @@
+2004-09-22 Diego Gonzalez <diego pemas net>
+
+ Fixes #66574.
+
+ * libebook/e-book.c (e_book_get_self): open the book before
+ getting the contact.
+
2004-09-22 William Jon McCann <mccann jhu edu>
* libebook/e-book.c (emit_async_open_response)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]