aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/util/eab-book-util.c
Commit message (Collapse)AuthorAgeFilesLines
* [ fixes bug #52571 ] ugh. name fields that have \" around the name breakChris Toshok2004-01-241-19/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-23 Chris Toshok <toshok@ximian.com> [ fixes bug #52571 ] * util/eab-book-util.c (escape): ugh. name fields that have \" around the name break our queries, because it turns it into (for instance): (contains "full_name" ""Toshok""). so we need to turn that into: (contains "full_name" "\"Toshok\""). (eab_name_and_email_query): escape both the name and email, and use an EBookQuery instead of passing the string to e_book_async_get_contacts. Looks like ross missed a couple of spots. (eab_nickname_query): same. * gui/component/addressbook.c (free_load_source_data): new function, free up the data and unref the source if there is one. (load_source_auth_cb): call free_load_source_data instead of just g_free'ing the struct. (load_source_cb): same. (default_book_cb): new function, we need this so we can fill in the source for the default book. get the source, then call load_source_cb to continue processing as normal. (addressbook_load_default_book): use default_book_cb instead of load_source_cb. svn path=/trunk/; revision=24383
* [ fixes bug #52955 ] handle the case properly where there are no queryChris Toshok2004-01-211-1/+1
| | | | | | | | | | | | | | | 2004-01-20 Chris Toshok <toshok@ximian.com> [ fixes bug #52955 ] * gui/merging/eab-contact-compare.c (use_common_book_cb): handle the case properly where there are no query parts (p == 0). Instead of passing "" to e_book_query_from_string, just set the query to NULL. * util/eab-book-util.c (eab_contact_list_to_string): we need to put a blank line here, so \r\n\r\n, not just \r\n. svn path=/trunk/; revision=24340
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-0/+293
svn path=/trunk/; revision=22965