[evolution-patches] fix for addressbook bug #43023



oops, sorry I missed this.  We always need to set the EAddressbook::book
property when loading a uri or else the gui won't be hooked up to the
EBook, won't generate queries, and the view will show zero cards.

Chris
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/ChangeLog,v
retrieving revision 1.1407
diff -u -r1.1407 ChangeLog
--- ChangeLog	14 May 2003 22:00:43 -0000	1.1407
+++ ChangeLog	15 May 2003 02:00:03 -0000
@@ -1,5 +1,12 @@
 2003-05-14  Chris Toshok  <toshok ximian com>
 
+	* gui/component/addressbook.c (book_open_cb): backing out a tiny
+	porting of jpr's fix - we need to set the book on the
+	EAddressbookView, or else it won't do queries, and it won't show
+	any cards.  Fixes #43023.
+
+2003-05-14  Chris Toshok  <toshok ximian com>
+
 	* gui/contact-editor/e-contact-editor.c (full_addr_clicked):
 	replace the text_buffer_delete/text_buffer_insert with
 	set_buffer_set_text.  call widget_changed if they clicked OK, so
Index: gui/component/addressbook.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook.c,v
retrieving revision 1.209
diff -u -r1.209 addressbook.c
--- gui/component/addressbook.c	14 May 2003 18:44:27 -0000	1.209
+++ gui/component/addressbook.c	15 May 2003 02:00:03 -0000
@@ -484,6 +484,9 @@
 
 	if (status == E_BOOK_STATUS_SUCCESS) {
 		view->failed_to_load = FALSE;
+		g_object_set(view->view,
+			     "book", book,
+			     NULL);
 		view->book = book;
 	}
 	else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]