Commit Graph

589 Commits

Author SHA1 Message Date
9ba2e2d461 new function, just return the local uri. (set_default_book_uri_local): use
2003-03-31  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-book-util.c (get_local_book_uri): new function,
	just return the local uri.
	(set_default_book_uri_local): use get_local_book_uri.
	(e_book_default_book_open): only try and reload the default book
	if it's not already the local book.

svn path=/trunk/; revision=20610
2003-04-01 06:58:27 +00:00
80842c9583 constify return value
* backend/ebook/e-book-util.c (e_book_get_default_book_uri):
	constify return value

svn path=/trunk/; revision=20596
2003-03-31 15:43:20 +00:00
466a9db478 add vcard tests
svn path=/trunk/; revision=20590
2003-03-31 07:20:44 +00:00
06ea0b6cb3 braindead, and *extremely* forgiving vcard parser. not for public
2003-03-30  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-vcard.[ch]: braindead, and *extremely* forgiving
	vcard parser.  not for public consumption yet.

svn path=/trunk/; revision=20589
2003-03-31 05:18:28 +00:00
006600fdf4 add vcard docs
svn path=/trunk/; revision=20587
2003-03-31 05:14:50 +00:00
b759bc8bc4 [ fixes bug #40403 ] revert the fix for 28945, as was done on the 1.2
2003-03-28  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #40403 ]
	* backend/ebook/e-card.c (e_card_get_vobject): revert the fix for
	28945, as was done on the 1.2 branch.  this is because the "fix"
	actually breaks internal use of contact lists.  We need to make
	the exporting of contacts DTRT, instead of fixing it here.

svn path=/trunk/; revision=20568
2003-03-28 22:46:50 +00:00
1ebc39be4e [ fix the contact editor so that the only time the address is parsed is
2003-03-28  Chris Toshok  <toshok@ximian.com>

	[ fix the contact editor so that the only time the address is
	parsed is when the user types in the address GtkTextView. ]
	* gui/contact-editor/e-contact-editor.c (address_mailing_changed):
	make this use delivery addresses instead of labels.
	(full_addr_clicked): same.
	(find_address_mailing): same.

	* backend/ebook/e-card-simple.c
	(e_card_simple_set_delivery_address): make this operate similar to
	e_card_simple_set_address: it sets both the delivery address and
	the label for the address.

svn path=/trunk/; revision=20567
2003-03-28 22:22:40 +00:00
cd51875a54 [ fixes bug #19178 ] use e_book_load_address_book_by_uri on the passed in
2003-03-26  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #19178 ]
	* backend/ebook/evolution-ldif-importer.c (ebook_open): use
	e_book_load_address_book_by_uri on the passed in uri.
	(load_file_fn): pass the uri.

	* backend/ebook/evolution-vcard-importer.c (ebook_open): use
	e_book_load_address_book_by_uri on the passed in uri.
	(load_file_fn): pass the uri.

svn path=/trunk/; revision=20543
2003-03-27 05:21:18 +00:00
85dd699911 [ fixes bug #39170 ] remove 'return'. (pas_backend_remove_cards): same.
2003-03-26  Philip Zhao  <philip.zhao@sun.com>

	[ fixes bug #39170 ]
	* backend/pas/pas-backend.c (pas_backend_create_card): remove
	'return'.
	(pas_backend_remove_cards): same.
	(pas_backend_modify_card): same.
	(pas_backend_check_connection): same.
	(pas_backend_get_vcard): same.
	(pas_backend_get_cursor): same.
	(pas_backend_get_book_view): same.
	(pas_backend_get_completion_view): same.
	(pas_backend_get_changes): same.
	(pas_backend_authenticate_user): same.
	(pas_backend_get_supported_fields): same.
	(pas_backend_get_supported_auth_methods): same.

svn path=/trunk/; revision=20532
2003-03-26 23:51:32 +00:00
a66943ec82 [ fixes bug #32113 ] add include_email arg to e_destination_get_textrep.
2003-03-23  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #32113 ]
	* backend/ebook/e-destination.h: add include_email arg to
	e_destination_get_textrep.

	* backend/ebook/e-destination.c (e_destination_get_textrep): add
	include_email arg.  if it's TRUE, and if there's an email address to
	add

	* gui/contact-list-editor/e-contact-list-model.c
	(contact_list_value_at): use e_destination_get_textrep so we don't
	display QP text, and pass TRUE for include_email.

	* gui/widgets/e-minicard.c (add_field): same.
	(remodel): same.

	* gui/widgets/e-addressbook-treeview-adapter.c (adapter_get_value): same.

	* gui/widgets/e-addressbook-table-adapter.c (addressbook_value_at): same.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_insert_length): pass FALSE for
	include_email.

	* gui/component/select-names/e-select-names-model.c
	(e_select_names_model_get_textification): pass FALSE for
	include_email.
	(e_select_names_model_get_string): same.
	(e_select_names_model_replace): same.
	(e_select_names_model_name_pos): same.
	(e_select_names_model_text_pos): same.

svn path=/trunk/; revision=20467
2003-03-23 09:18:04 +00:00
e1e4ea6524 Replace "evolution:menu-name" prop with "evolution:menu_name". [#39692]
* backend/ebook/GNOME_Evolution_Addressbook_VCard_Importer.server.in.in:
Replace "evolution:menu-name" prop with "evolution:menu_name".  [#39692]
* backend/ebook/GNOME_Evolution_Addressbook_LDIF_Importer.server.in.in: Likewise.

svn path=/trunk/; revision=20366
2003-03-19 20:28:19 +00:00
25044acc86 Updated phone number. Bug #37204.
2003-03-11  Not Zed  <NotZed@Ximian.com>

        * backend/pas/pas-backend-file.c (INITIAL_VCARD): Updated phone
        number.  Bug #37204.

svn path=/trunk/; revision=20247
2003-03-11 01:10:44 +00:00
4311a1916c Likewise. Likewise. Likewise. Likewise. Likewise. (ebook_create):
* backend/ebook/load-pine-addressbook.c (ebook_create): Likewise.
* backend/ebook/load-gnomecard-addressbook.c (ebook_create): Likewise.
* backend/ebook/evolution-vcard-importer.c (ebook_create): Likewise.
* backend/ebook/evolution-ldif-importer.c (ebook_create): Likewise.
* backend/ebook/test-client.c (get_cursor_cb): Likewise.
(ebook_create): Likewise.
* gui/widgets/e-minicard.c (e_minicard_set_property): Likewise.
(card_modified_cb): Likewise.
(e_minicard_event): Likewise.
* gui/widgets/gal-view-minicard.c (column_width_changed): Likewise.
* gui/widgets/test-minicard-view.c (ebook_create): Likewise.
* gui/widgets/gal-view-treeview.c (column_width_changed): Likewise.

svn path=/trunk/; revision=20203
2003-03-06 17:30:54 +00:00
c1e2563e39 reflect prior column addition
2003-03-04  JP Rosevear  <jpr@ximian.com>

 	* gui/component/select-names/e-select-names.etspec: reflect prior
column addition

 	* gui/component/select-names/e-select-names-bonobo.c
 	(entry_get_property_fn): set the arg properly

 	*
gui/component/select-names/Evolution-Addressbook-SelectNames.idl:
 	add Icscalendar to field list

 	* backend/pas/pas-backend-ldap.c: add icscalendar to prop list

 	* backend/ebook/e-card.h: add icscalendar data member

 	* backend/ebook/e-card.c: add icscalendar to list and its parse
 	routine
 	(e_card_get_vobject): add icscalendar prop value
 	(parse_icscalendar): parse routine
 	(e_card_class_init): add icscalendar arg
 	(e_card_destroy): destroy icscalendar member
 	(e_card_set_arg): set icscalendar
 	(e_card_init): init icscalendar
 	(e_card_get_arg): return icscalendar

 	* backend/ebook/e-card-simple.c (field_data): add icscalendar

 	* backend/ebook/e-card-simple.h: ditto

svn path=/trunk/; revision=20153
2003-03-04 22:00:57 +00:00
5597bf794e Remove these from here; talking to the mailer doesn't really belong at the
* backend/ebook/e-card.c (e_card_list_send, e_card_send): Remove
	these from here; talking to the mailer doesn't really belong at
	the libebook level anyway.

	* backend/ebook/Makefile.am: Remove Evolution-Composer CORBA
	stuff, which fixes some linking problems on OS X.

	* gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list,
	e_addressbook_send_card): Move from e-card.c and rename.

	* gui/widgets/Makefile.am: move Evolution-Composer CORBA stuff
	here

	* gui/widgets/e-addressbook-view.c (send_as, send_to,
	e_addressbook_view_send, e_addressbook_view_send_to): Update for
	new function names.

	* gui/contact-list-editor/e-contact-list-editor.c (file_send_as_cb,
	file_send_to_cb): Likewise

	* gui/contact-editor/e-contact-editor.c (file_send_as_cb,
	file_send_to_cb): Likewise

svn path=/trunk/; revision=20103
2003-02-28 18:02:35 +00:00
c7db899624 Fix for server files from Antonio Xu
2003-02-27  Rodney Dawes  <dobey@ximian.com>

	* backend/ebook/Makefile.am: Fix for server files from Antonio Xu

svn path=/trunk/; revision=20087
2003-02-27 19:56:03 +00:00
77e9bd8497 if we fail to activate factories for a given protocol, return.
2003-02-26  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-book.c (e_book_load_uri): if we fail to activate
	factories for a given protocol, return.

	* gui/component/ldap-config.glade: remove the two unused custom
	widgets to cut down on gtk warning spam.

svn path=/trunk/; revision=20080
2003-02-26 22:39:27 +00:00
d40f089a70 Make libversit a shared library, update stuff for that, and clean up
some LDADDs in the process

svn path=/trunk/; revision=19994
2003-02-21 21:24:34 +00:00
ae0e77043f add .server.in files
svn path=/trunk/; revision=19944
2003-02-19 16:41:57 +00:00
d239d2b112 move the bulk of the non-summary searching stuff here. we aggregate up to
2003-02-16  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-file.c
	(pas_backend_file_search_timeout): move the bulk of the
	non-summary searching stuff here.  we aggregate up to our
	threshold, then send them to the front end and register a timeout
	to do another batch.  This keeps us from totally spamming the UI,
	making things a bit more responsive.
	(pas_backend_file_search): set up the closure and call the timeout
	in an idle func.

svn path=/trunk/; revision=19920
2003-02-17 03:22:16 +00:00
24112a2779 Install load-pine-addressbook and load-gnomecard-addressbook into
* backend/ebook/Makefile.am: Install load-pine-addressbook and
load-gnomecard-addressbook into ${privdatadir}/tools.  Install
evolution-vcard-importer and evolution-ldif-importer into
${privlibexecdir}.

* backend/ebook/GNOME_Evolution_Addressbook_VCard_Importer.server.in:
Removed.

* backend/ebook/GNOME_Evolution_Addressbook_LDIF_Importer.server.in:
Removed.

* backend/ebook/GNOME_Evolution_Addressbook_VCard_Importer.server.in.in:
New.  Specify an absolute path for the executable, using
@LIBEXECDIR@.
* backend/ebook/GNOME_Evolution_Addressbook_LDIF_Importer.server.in.in:
Likewise.

svn path=/trunk/; revision=19870
2003-02-10 16:53:06 +00:00
29d288066b gone. (match_initials): gone. (book_query_sexp): remove the primary
2003-02-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(sexp_initials): gone.
	(match_initials): gone.
	(book_query_sexp): remove the primary handling.
	(book_query_score): same.

	* backend/ebook/e-card.c (e_card_set_property):
	g_value_get_pointer => g_value_get_object for "category_list".

	* backend/ebook/e-book.c (struct _EBookPrivate): add a comment.

	* backend/pas/pas-backend-ldap.c (func_beginswith): performance at
	the cost of a tiny bit of correctness.  If the ldap server doesn't
	support evolutionPerson don't query on fileAs, use sn (since
	that's effectively what gets used in the display when fileAs isn't
	supported.)

svn path=/trunk/; revision=19863
2003-02-10 06:21:12 +00:00
0db95c91b2 [ huge change, all for 1 little performance problem :) fixes #18207 ] use
2003-02-08  Chris Toshok  <toshok@ximian.com>

	[ huge change, all for 1 little performance problem :) fixes #18207 ]
	* gui/widgets/e-addressbook-model.c (get_view): use
	e_book_check_static_capability here to make things a little
	prettier.
	(remove_card): complain about my life, and add code to use one
	"model_changed" signal if we get back a list of cards instead of
	multiple "card_removed" signals.

	* gui/widgets/e-addressbook-model.h: little clean up.

	* gui/widgets/e-addressbook-view.c (delete): write a bulk-remove
	case for this.  if the backend supports it, send all the ids at
	once.  otherwise loop over the ids.
	(e_addressbook_view_delete_selection): fake a CardAndBook
	structure and call delete, instead of duplicating the code in 2
	places.

	* gui/component/addressbook.c (delete_contact_cb): don't call
	e_contact_editor_confirm_delete here, it's handled by the
	EAddressbookView.

	* backend/pas/pas-card-cursor.c (pas_card_cursor_construct): fix a
	compiler warning about a stupid crash.

	* backend/pas/pas-book.h (PASOperation): RemoveCard ->
	RemoveCards.
	(PASRemoveCardsReques): char *id -> GList *ids.
	(PASRequest): PASRemoveCardRequest -> PASRemoveCardsRequest.

	* backend/pas/pas-book.c (pas_book_queue_remove_cards): build up a
	GList from the id sequence.
	(pas_book_respond_remove): notifyCardRemoved ->
	notifyCardsRemoved.
	(impl_GNOME_Evolution_Addressbook_Book_removeCards): rename.
	(pas_book_free_request): free the idlist for RemoveCards.
	(pas_book_class_init): removeCard -> removeCards.

	* backend/pas/pas-book-view.h: change prototype for
	pas_book_view_notify_remove, and add prototype for
	pas_book_view_notify_remove_1.

	* backend/pas/pas-book-view.c (pas_book_view_notify_remove_1):
	build up a list and call pas_book_view_notify_remove.
	(pas_book_view_notify_remove): build up the corba id sequence and
	call BookViewListener::notifyCardsRemoved.

	* backend/pas/pas-backend.h: remove_card -> remove_cards.

	* backend/pas/pas-backend.c (pas_backend_remove_cards): rename
	from _remove_card.
	(process_client_requests): RemoveCard -> RemoveCards and
	_remove_card -> _remove_cards.

	* backend/pas/pas-backend-ldap.c (check_schema_support):
	g_strcasecmp -> g_ascii_strcasecmp.
	(remove_card_handler): _remove => _remove_1.
	(modify_card_modify_handler): same.
	(pas_backend_ldap_process_remove_cards): rename from _remove_card.
	(pas_backend_ldap_class_init): _remove_card -> _remove_cards.

	* backend/pas/pas-backend-file.c (pas_backend_file_class_init):
	remove_card -> remove_cards.
	(pas_backend_file_get_static_capabilities): add "bulk-removes".
	(pas_backend_file_process_remove_cards): rewrite this function
	largely, so that it handles lists of ids.  first we loop through
	and for every successful deletion we build a list of deleted
	ECards.  Then for each view we build a list (a subset of the
	deleted ECard list) and pass back that list to the view.
	(pas_backend_file_process_modify_card): use _remove_1 instead of
	_remove.
	(ecard_matches_search): new function.

	* backend/pas/pas-backend-card-sexp.c
	(pas_backend_card_sexp_match_vcard): rewrite in terms of
	_match_ecard.
	(pas_backend_card_sexp_match_ecard): new function, the guts from
	_match_vcard.

	* backend/pas/pas-backend-card-sexp.h: add prototype for
	pas_backend_card_sexp_match_ecard.

	* backend/idl/addressbook.idl: the card removal stuff now takes
	CardIdList.

	* backend/ebook/e-book.c (e_book_get_static_capabilities): cache
	successful capability queries (since they're static).
	(e_book_check_static_capability): new, convenience function to
	check if a particular capability is supported.
	(e_book_remove_card_by_id): build a single element GList and call
	e_book_remove_cards.
	(e_book_remove_cards): build up a CORBA sequence from the GList
	and call Book::removeCards.
	(e_book_dispose): free the cached capabilities string.

	* backend/ebook/e-book.h: add new prototypes for
	e_book_check_static_capability and e_book_remove_cards.

	* backend/ebook/e-book-view.h (struct _EBookViewClass): rename
	"card_removed" signal to "cards_removed".

	* backend/ebook/e-book-view.c (e_book_view_do_removed_event): id
	-> ids, and free the id list.
	(e_book_view_check_listener_queue): CardRemovedEvent ->
	CardsRemovedEvent.

	* backend/ebook/e-book-view-listener.c
	(e_book_view_listener_queue_response): free the id list.
	(e_book_view_listener_queue_idlist_event): new function, used for
	cards_removed.
	(e_book_view_listener_queue_status_event): id -> ids.
	(e_book_view_listener_queue_sequence_event): same.
	(e_book_view_listener_queue_message_event): same.
	(impl_BookViewListener_notify_cards_removed): call
	queue_idlist_event.
	(e_book_view_listener_dispose): free the id list.
	(e_book_view_listener_class_init): track change to idl call.

	* backend/ebook/e-book-view-listener.h
	(EBookViewListenerOperation): CardRemovedEvent ->
	CardsRemovedEvent.
	(EBookViewListenerResponse): char *id -> GList *ids.

	* backend/ebook/e-book-listener.c
	(impl_BookListener_respond_r

svn path=/trunk/; revision=19854
2003-02-08 09:06:46 +00:00
aaa6c778e8 [ huge change, all for 1 little performance problem :) fixes #18207 ] use
2003-02-08  Chris Toshok  <toshok@ximian.com>

	[ huge change, all for 1 little performance problem :) fixes #18207 ]
	* gui/widgets/e-addressbook-model.c (get_view): use
	e_book_check_static_capability here to make things a little
	prettier.
	(remove_card): complain about my life, and add code to use one
	"model_changed" signal if we get back a list of cards instead of
	multiple "card_removed" signals.

	* gui/widgets/e-addressbook-model.h: little clean up.

	* gui/widgets/e-addressbook-view.c (delete): write a bulk-remove
	case for this.  if the backend supports it, send all the ids at
	once.  otherwise loop over the ids.
	(e_addressbook_view_delete_selection): fake a CardAndBook
	structure and call delete, instead of duplicating the code in 2
	places.

	* gui/component/addressbook.c (delete_contact_cb): don't call
	e_contact_editor_confirm_delete here, it's handled by the
	EAddressbookView.

	* backend/pas/pas-card-cursor.c (pas_card_cursor_construct): fix a
	compiler warning about a stupid crash.

	* backend/pas/pas-book.h (PASOperation): RemoveCard ->
	RemoveCards.
	(PASRemoveCardsReques): char *id -> GList *ids.
	(PASRequest): PASRemoveCardRequest -> PASRemoveCardsRequest.

	* backend/pas/pas-book.c (pas_book_queue_remove_cards): build up a
	GList from the id sequence.
	(pas_book_respond_remove): notifyCardRemoved ->
	notifyCardsRemoved.
	(impl_GNOME_Evolution_Addressbook_Book_removeCards): rename.
	(pas_book_free_request): free the idlist for RemoveCards.
	(pas_book_class_init): removeCard -> removeCards.

	* backend/pas/pas-book-view.h: change prototype for
	pas_book_view_notify_remove, and add prototype for
	pas_book_view_notify_remove_1.

	* backend/pas/pas-book-view.c (pas_book_view_notify_remove_1):
	build up a list and call pas_book_view_notify_remove.
	(pas_book_view_notify_remove): build up the corba id sequence and
	call BookViewListener::notifyCardsRemoved.

	* backend/pas/pas-backend.h: remove_card -> remove_cards.

	* backend/pas/pas-backend.c (pas_backend_remove_cards): rename
	from _remove_card.
	(process_client_requests): RemoveCard -> RemoveCards and
	_remove_card -> _remove_cards.

	* backend/pas/pas-backend-ldap.c (check_schema_support):
	g_strcasecmp -> g_ascii_strcasecmp.
	(remove_card_handler): _remove => _remove_1.
	(modify_card_modify_handler): same.
	(pas_backend_ldap_process_remove_cards): rename from _remove_card.
	(pas_backend_ldap_class_init): _remove_card -> _remove_cards.

	* backend/pas/pas-backend-file.c (pas_backend_file_class_init):
	remove_card -> remove_cards.
	(pas_backend_file_get_static_capabilities): add "bulk-removes".
	(pas_backend_file_process_remove_cards): rewrite this function
	largely, so that it handles lists of ids.  first we loop through
	and for every successful deletion we build a list of deleted
	ECards.  Then for each view we build a list (a subset of the
	deleted ECard list) and pass back that list to the view.
	(pas_backend_file_process_modify_card): use _remove_1 instead of
	_remove.
	(ecard_matches_search): new function.

	* backend/pas/pas-backend-card-sexp.c
	(pas_backend_card_sexp_match_vcard): rewrite in terms of
	_match_ecard.
	(pas_backend_card_sexp_match_ecard): new function, the guts from
	_match_vcard.

	* backend/pas/pas-backend-card-sexp.h: add prototype for
	pas_backend_card_sexp_match_ecard.

	* backend/idl/addressbook.idl: the card removal stuff now takes
	CardIdList.

	* backend/ebook/e-book.c (e_book_get_static_capabilities): cache
	successful capability queries (since they're static).
	(e_book_check_static_capability): new, convenience function to
	check if a particular capability is supported.
	(e_book_remove_card_by_id): build a single element GList and call
	e_book_remove_cards.
	(e_book_remove_cards): build up a CORBA sequence from the GList
	and call Book::removeCards.
	(e_book_dispose): free the cached capabilities string.

	* backend/ebook/e-book.h: add new prototypes for
	e_book_check_static_capability and e_book_remove_cards.

	* backend/ebook/e-book-view.h (struct _EBookViewClass): rename
	"card_removed" signal to "cards_removed".

	* backend/ebook/e-book-view.c (e_book_view_do_removed_event): id
	-> ids, and free the id list.
	(e_book_view_check_listener_queue): CardRemovedEvent ->
	CardsRemovedEvent.

	* backend/ebook/e-book-view-listener.c
	(e_book_view_listener_queue_response): free the id list.
	(e_book_view_listener_queue_idlist_event): new function, used for
	cards_removed.
	(e_book_view_listener_queue_status_event): id -> ids.
	(e_book_view_listener_queue_sequence_event): same.
	(e_book_view_listener_queue_message_event): same.
	(impl_BookViewListener_notify_cards_removed): call
	queue_idlist_event.
	(e_book_view_listener_dispose): free the id list.
	(e_book_view_listener_class_init): track change to idl call.

	* backend/ebook/e-book-view-listener.h
	(EBookViewListenerOperation): CardRemovedEvent ->
	CardsRemovedEvent.
	(EBookViewListenerResponse): char *id -> GList *ids.

	* backend/ebook/e-book-listener.c
	(impl_BookListener_respond_remove_cards): rename from remove_card.

svn path=/trunk/; revision=19853
2003-02-08 09:05:42 +00:00
aeec7106f7 check the status, not the book, and unref the book here.
2003-02-06  Chris Toshok  <toshok@ximian.com>

	* gui/component/e-address-popup.c (email_table_save_card_cb):
	check the status, not the book, and unref the book here.
	(contact_editor_cb): same.
	(start_query): unref the book in the failure case.
	(add_card_idle_cb): addressbook_load_default_book returns void
	now.
	(edit_contact_info_cb): same.
	(e_address_popup_query): same.

	* gui/component/addressbook.c (control_activate_cb): track change
	to addressbook_load_uri return type.
	(set_prop): same.
	(addressbook_load_uri): return type is void now.
	(addressbook_load_default_book): same.

	* gui/component/addressbook.h:
	addressbook_load_uri/addressbook_load_default_book return void
	now.

	* conduit/address-conduit.c (start_addressbook_server):
	e_book_load_default_book returns void now.

	* backend/ebook/e-book-util.h: track changes to return types.

	* backend/ebook/e-book-util.c (e_book_load_address_book_by_uri):
	fallout from change to e_book_load_uri.  return type for this
	function is void now too.
	(e_book_use_address_book_by_uri): same.
	(e_book_use_default_book): same.
	(e_book_load_default_book): same.
	(got_uri_book_cb): if unsuccessful and book is non-NULL, unref it
	here.
	(got_default_book_cb): same.

	* backend/ebook/e-book.c (e_book_load_uri): no longer return a
	gboolean.  any error is communicated to the callback.

	* backend/ebook/e-book.h: e_book_load_uri no longer returns a
	gboolean (it's void.)

	* backend/ebook/evolution-ldif-importer.c (ebook_create): track
	change to the e_book_load_uri family of functions.

	* backend/ebook/test-client-list.c (ebook_create): same.

	* backend/ebook/test-client.c (ebook_create): same.

	* backend/ebook/load-pine-addressbook.c (ebook_create): same.

	* backend/ebook/evolution-vcard-importer.c (ebook_create): same.

svn path=/trunk/; revision=19839
2003-02-07 07:14:34 +00:00
292e7184f6 Use different tmp file names so these rules can be executed in parallel
* backend/ebook/Makefile.am (e-book-marshal.c, e-book-marshal.h):
Use different tmp file names so these rules can be executed in
parallel without interfering with each otehr.

* backend/pas/Makefile.am: Make the ORBit compilation work
properly with parallel makes (i.e. make sure it does not spawn
multiple orbit-idl processes on the same IDL file at the same
time).
* gui/component/select-names/Makefile.am: Likewise.
* backend/ebook/Makefile.am: Likewise.

svn path=/trunk/; revision=19834
2003-02-06 23:24:45 +00:00
d8eca23e10 Remove cruft (ldapschemadir): Use privdatadir (pasincludedir): Use
* backend/pas/Makefile.am (INCLUDES): Remove cruft
	(ldapschemadir): Use privdatadir
	(pasincludedir): Use privincludedir.

	* backend/pas/pas-book-factory.c (pas_book_factory_activate):
	Remove unused variable.
	* backend/pas/pas-book-view.c (pas_book_view_new): Likewise

svn path=/trunk/; revision=19779
2003-02-05 23:47:01 +00:00
4958846621 Remove cruft. (libebookincludedir): Use privincludedir.
* backend/ebook/Makefile.am (INCLUDES): Remove cruft.
	(libebookincludedir): Use privincludedir.

	* backend/ebook/e-book-util.c: #include <string.h>
	* backend/ebook/e-card-compare.c: Likewise
	* backend/ebook/load-pine-addressbook.c: Likewise
	* backend/ebook/test-client.c: Likewise

	* backend/ebook/evolution-vcard-importer.c: #include
	<e-book-util.h>
	(factory_fn): Fix this to actually return the importer.

	* backend/ebook/evolution-ldif-importer.c (parseLine): #include
	<e-book-util.h> and <bonobo/bonobo-main.h>. Use g_ascii_strcmp.

	* backend/ebook/e-card.c (e_card_email_match_single_string):
	(e_card_email_find_number): s/g_str/g_ascii_str/
	* backend/ebook/e-destination.c (e_destination_equal): Likewise.
	Also, add an "else return FALSE;"

svn path=/trunk/; revision=19778
2003-02-05 23:46:49 +00:00
1b44ee08d8 [ fixes bug #36375 ] use PHONE_OTHER_FAX instead of PHONE_OTHER for
2003-01-23  Sean Gao  <Sean.Gao@Sun.COM>

	[ fixes bug #36375 ]
	* backend/pas/pas-backend-ldap.c: use PHONE_OTHER_FAX instead of
	PHONE_OTHER for "other_fax".

svn path=/trunk/; revision=19602
2003-01-23 21:26:31 +00:00
dc1ed8e7b6 [ fixes bug #31014, roll this in from the 1.2 branch ] use "categories"
2003-01-23  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #31014, roll this in from the 1.2 branch ]
	* backend/pas/pas-backend-ldap.c: use "categories" instead of
	"category" for the ECard field so the UI/get_supported_fields stuff
	actually thinks its usable in the contact editor..

svn path=/trunk/; revision=19599
2003-01-23 21:19:51 +00:00
1fbf467018 fix for bug 34883 broke ssl transactions (at least those where we were
2003-01-23  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): fix
	for bug 34883 broke ssl transactions (at least those where we were
	connecting to port 636).  Move it to after the SSL stanza.

svn path=/trunk/; revision=19598
2003-01-23 21:15:33 +00:00
e8c9adced8 Version using $(BASE_VERSION). (etspecdir): Likewise. (iconsdir):
* gui/component/select-names/Makefile.am (gladedir): Version using
$(BASE_VERSION).
(etspecdir): Likewise.
(iconsdir): Likewise.

* gui/contact-list-editor/Makefile.am (iconsdir): Version using
$(BASE_VERSION).
(gladedir): Likewise.

* gui/merging/Makefile.am (gladedir): Version using $(BASE_VERSION).

* gui/search/Makefile.am (ruledir): Version using $(BASE_VERSION).

* gui/component/Makefile.am (INCLUDES): Update EVOLUTION_IMAGESDIR
to be versioned through $(BASE_VERSION).

* gui/widgets/e-addressbook-view.c (init_collection): Use
EVOLUTION_GALVIEWSDIR.

* gui/widgets/Makefile.am (INCLUDES): Define EVOLUTION_GALVIEWSDIR
and update EVOLUTION_IMAGESDIR.

svn path=/trunk/; revision=19551
2003-01-22 20:06:06 +00:00
01b8e38016 reenable all the importers/loaders.
2003-01-15  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/Makefile.am (bin_PROGRAMS): reenable all the
	importers/loaders.

	* backend/ebook/evolution-ldif-importer.c,
	backend/ebook/evolution-vcard-importer.c: Finish gnome2 port
	issues, and get these to compile.

	* backend/ebook/load-gnomecard-addressbook.c,
	backend/ebook/load-pine-addressbook.c: same.

svn path=/trunk/; revision=19485
2003-01-15 20:52:44 +00:00
ebd4a9fa7f try to load the uri again if it failed previously. (book_open_cb): set
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c (control_activate_cb): try to load
	the uri again if it failed previously.
	(book_open_cb): set failed_to_load based on the response.
	(set_prop): initialize failed_to_load to FALSE before we kick off
	the first load.

	* backend/pas/pas-book-factory.c
	(pas_book_factory_process_request): if the load_uri fails, remove
	it from the hashtable and free it, so we'll try to load it again
	from scratch the next time it's requested instead of serving up a
	backend that doesn't function.

	* backend/pas/pas-backend.c (pas_backend_get_uri): we need to be
	able to get the uri from backends that aren't loaded (so we can
	remove them from the hashtable.)

svn path=/trunk/; revision=19392
2003-01-10 04:02:25 +00:00
7a00f56def doh, fix build error.
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (query_ldap_root_dse): doh, fix
	build error.

svn path=/trunk/; revision=19388
2003-01-10 02:02:57 +00:00
2a174936f4 build up the list of supported auth_methods.
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (query_ldap_root_dse): build up
	the list of supported auth_methods.
	(pas_backend_ldap_process_get_supported_auth_methods): respond
	with the list of auth methods we've built up.
	(pas_backend_ldap_dispose): unref the auth_method list.
	(pas_backend_ldap_class_init): hook up
	pas_backend_ldap_process_get_supported_auth_methods.

	* backend/pas/pas-backend.c
	(pas_backend_get_supported_auth_methods): new function.
	(process_client_requests): add clause for GetSupportedAuthMethods.

	* backend/pas/pas-backend.h: add prototype for
	pas_backend_get_supported_auth_methods, and add it to the class
	vtable.

	* backend/pas/pas-book.h: add GetSupportedAuthMethods enum member
	and PASGetSupportedAuthMethodsRequest. and add prototype for
	pas_book_respond_get_supported_auth_methods.

	* backend/pas/pas-book.c
	(pas_book_queue_get_supported_auth_methods): new function.
	(impl_GNOME_Evolution_Addressbook_Book_getSupportedAuthMethods):
	new function.
	(pas_book_respond_get_supported_auth_methods): new function.
	(pas_book_free_request): add clause for GetSupportedAuthMethods.
	(pas_book_class_init): hook up getSupportedAuthMethods.

	* backend/ebook/e-book-listener.c
	(e_book_listener_queue_get_supported_fields_response): fields ->
	list.
	(e_book_listener_queue_get_supported_auth_methods_response): new
	function.
	(impl_BookListener_response_get_supported_auth_methods): new
	function.
	(e_book_listener_class_init): hook up
	epv->notifySupportedAuthMethods.

	* backend/ebook/e-book-listener.h: add
	GetSupportedAuthMethodsResponse enum member, and change the field
	name from "fields" to list (and use it for both GetSupportedFields
	and GetSupportedAuthMethods)

	* backend/ebook/e-book.c (e_book_get_supported_auth_methods): new
	function.
	(e_book_do_response_get_supported_auth_methods): new function.

	* backend/ebook/e-book.h: add prototype for
	e_book_get_supported_auth_methods.

	* backend/idl/addressbook.idl: add getSupportedAuthMethods IDL
	call.

svn path=/trunk/; revision=19386
2003-01-10 01:55:27 +00:00
50a352b367 deal with backends that might not have loaded successfully (they'll have a
2003-01-09  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-book-factory.c (backend_last_client_gone_cb):
	deal with backends that might not have loaded successfully
	(they'll have a NULL uri).

svn path=/trunk/; revision=19385
2003-01-10 01:38:32 +00:00
4698808a25 Fix to build.
2003-01-08  Jeffrey Stedfast  <fejj@ximian.com>

	* backend/pas/pas-backend-ldap.c
	(pas_backend_ldap_process_authenticate_user): Fix to build.

svn path=/trunk/; revision=19302
2003-01-09 02:54:52 +00:00
c3f5e5f241 make it build
svn path=/trunk/; revision=19297
2003-01-08 23:19:49 +00:00
ac80365c86 Move PASBook request handling into PASBackend itself since all
existing backends do it exactly the same way. (Part of 32866).

	* backend/pas/pas-backend.h (PASBackendClass): add new methods for
	the various pas book requests.

	* backend/pas/pas-backend.c: Add a clients list to
	PASBackendPrivate.
	(pas_backend_create_card, etc): Add these to invoke the new
	methods.
	(process_client_requests, book_destroy_cb): Moved here and
	slightly rewritten from pas-backend-file.
	(last_client_gone): Now static.
	(add_client, remove_client): Default implementations, based on
	pas-backend-file, that add the client to/remove it from the
	backend's clients list and connect to its requests_queued signal.
	(pas_backend_init, pas_backend_dispose): Deal with the clients
	list.

	* backend/pas/pas-backend-file.c (struct _PASBackendFilePrivate):
	Remove GList *clients.
	(pas_backend_file_process_client_requests,
	pas_backend_file_book_destroy_db, pas_backend_file_add_client,
	pas_backend_file_remove_client): Gone.
	(pas_backend_file_class_init): Remove add_client/remove_client
	method initializations, add initializations for processing the
	various book requests.

	* backend/pas/pas-backend-ldap.c (struct _PASBackendLDAPPrivate):
	Remove GList *clients.
	(pas_backend_ldap_process_create_card, etc): Make these take the
	specific PAS*Request types rather than a generic PASRequest.
	(pas_backend_ldap_process_client_requests,
	pas_backend_ldap_book_destroy_db, pas_backend_ldap_add_client,
	pas_backend_ldap_remove_client): Gone.
	(pas_backend_ldap_class_init): Remove add_client/remove_client
	method initializations, add initializations for processing the
	various book requests.

svn path=/trunk/; revision=19287
2003-01-08 20:34:51 +00:00
a1bdd2e526 fix the SYNTAX for the telephone attributes, and make the fax attributes
2003-01-07  Chris Toshok  <toshok@ximian.com>

	* backend/pas/evolutionperson.schema: fix the SYNTAX for the
	telephone attributes, and make the fax attributes more closely
	mirror those from core.schema.  Fixes the schema for openldap-2.1.

svn path=/trunk/; revision=19268
2003-01-08 00:41:31 +00:00
b4c4834eaa remove idldir definition. (It's defined in configure.in now)
* Makefile.am: remove idldir definition. (It's defined in
	configure.in now)

svn path=/trunk/; revision=19242
2003-01-06 14:19:06 +00:00
ace402d917 drop use of "font" arg. (get_left_width): use pango to calculate this
2002-12-18  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard.c (e_minicard_realize): drop use of
	"font" arg.
	(get_left_width): use pango to calculate this instead of a GdkFont.

	* gui/widgets/e-minicard-view.c: drop include of e-unicode.h.

	* gui/widgets/e-minicard-label.c (e_minicard_label_construct):
	don't need to create the font anymore.

	* gui/search/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.

	* gui/search/e-addressbook-search-dialog.c
	(e_addressbook_search_dialog_new): use g_object_new instead of
	gtk_type_new.

	* gui/merging/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED.

	* gui/contact-list-editor/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/contact-list-editor/e-contact-list-editor.c (is_named):
	strdup (or not, if we don't need to save the value) instead of
	using the e_utf8 functions.
	(fill_in_info): same.

	* gui/contact-editor/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/contact-editor/e-contact-save-as.c (e_contact_save_as):
	strdup (or not, if we don't need to save the value) instead of
	using the e_utf8 functions.
	(e_contact_list_save_as): same.

	* gui/contact-editor/e-contact-quick-add.c (clicked_cb): strdup
	(or not, if we don't need to save the value) instead of using the
	e_utf8 functions.
	(build_quick_add_dialog): same.

	* gui/contact-editor/e-contact-editor.c (phone_entry_changed):
	strdup (or not, if we don't need to save the value) instead of
	using the e_utf8 functions.
	(file_as_set_style): same.
	(name_entry_changed): same.
	(full_name_clicked): same.
	(categories_clicked): same.
	(set_field): same.
	(fill_in_field): same.
	(fill_in_single_field): same.
	(extract_field): same.
	(extract_single_field): same.

	* gui/contact-editor/e-contact-editor-fullname.c (extract_field):
	just strdup, it's already utf8.

	* gui/contact-editor/e-contact-editor-address.c (extract_field):
	they're all entries, use GTK_ENTRY foo here.

	* gui/component/select-names/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/component/select-names/e-select-names.c
	(e_select_names_add_section): remove the extra
	utf8_from_locale_string stuff.

	* gui/component/select-names/e-select-names-popup.c
	(set_uiinfo_label): gtk_container_children ->
	gtk_container_get_children, and remove the extra utf8 stuff.

	* gui/component/Makefile.am (INCLUDES): add
	-D*_DISABLE_DEPRECATED.

	* gui/component/addressbook-storage.c
	(addressbook_storage_init_source_uri): g_string_sprintfa ->
	g_string_append_printf.

	* gui/component/addressbook-config.c (focus_help):
	gtk_notebook_set_page -> gtk_notebook_set_current_page.
	(addressbook_source_dialog_set_source): same.
	(auth_optionmenu_activated): gtk_container_children ->
	gtk_container_get_children.
	(ssl_optionmenu_activated): same.
	(ssl_optionmenu_selected): same, and gtk_notebook_set_page ->
	gtk_notebook_set_current_page.
	(scope_optionmenu_activated): same.
	(set_advanced_button_state): same.
	(addressbook_ldap_init): hook "response" to gtk_widget_destroy to
	make the dialog go away when clicked.
	(addressbook_ldap_auth): same.
	(addressbook_root_dse_query): same.
	(do_ldap_root_dse_query): same.
	(addressbook_config_control_new): fix return type and cast.
	(main): remove call to gtk_widget_push_visual.

	* gui/component/addressbook-config.h:
	addressbook_config_control_new returns a BonoboObject, not a
	BonoboControl.

	* gui/component/addressbook.c: remove e-unicode.h include.

	* backend/pas/Makefile.am (INCLUDES): Add
	-DLIBGNOME_DISABLE_DEPRECATED.

	* backend/ebook/Makefile.am (INCLUDES): Add
	-DLIBGNOME_DISABLE_DEPRECATED.

	* backend/ebook/e-card.c (e_card_get_property): remove misleading
	comment.

svn path=/trunk/; revision=19160
2002-12-18 22:11:28 +00:00
1b8d99dcfd g_strcasecmp -> g_ascii_strcasecmp. (FIND_INSERT): same.
2002-12-17  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (build_card_from_entry):
	g_strcasecmp -> g_ascii_strcasecmp.
	(FIND_INSERT): same.

	* backend/pas/pas-backend-file.c (pas_backend_file_load_uri):
	g_dirname -> g_path_get_dirname.

	* backend/pas/Makefile.am (INCLUDES):  add
	-DG_DISABLE_DEPRECATED.

	* backend/ebook/Makefile.am (INCLUDES): add
	-DG_DISABLE_DEPRECATED.

svn path=/trunk/; revision=19156
2002-12-17 22:17:57 +00:00
917e520bbe [ Fixes bug #35135 ] don't free the default_book_uri here, it's done in
2002-12-17  Chris Toshok  <toshok@ximian.com>

	[ Fixes bug #35135 ]
	* backend/ebook/e-book-util.c (set_default_book_uri_local): don't
	free the default_book_uri here, it's done in set_default_book_uri.
	(set_default_book_uri): break some stuff out from
	set_default_book_uri_from_bonobo_conf to here so it can be used
	both from that function and the bonobo listener.
	(default_folder_listener): set the new default book uri.
	(set_default_book_uri_from_bonobo_conf): install the bonobo conf
	listener so we'll get updates.

svn path=/trunk/; revision=19148
2002-12-17 18:26:52 +00:00
70b1993d5e 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
2002-12-07 05:17:39 +00:00
cf2028a1ae only enable the LDAPv3 stuff if TLS is being used. Also, deal with naming
2002-11-30  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (pas_backend_ldap_connect): only
	enable the LDAPv3 stuff if TLS is being used.  Also, deal with
	naming errors returned from query_ldap_root_dse, as some servers
	(older openldap servers among others i'm sure) don't have a root
	dse at all.

svn path=/trunk/; revision=18989
2002-12-02 21:41:27 +00:00
7a600dbc41 [ roll forward from 1.2 branch ] never pass NULL as the vcard to the corba
2002-11-26  Chris Toshok  <toshok@ximian.com>

	[ roll forward from 1.2 branch ]
	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_vcard): never pass NULL as the vcard
	to the corba call, it causes a crash.  This particular bug bit us
	when we opened a card that contained an unresolvable related
	contact.

svn path=/trunk/; revision=18944
2002-11-27 03:08:59 +00:00
07bd8e460c [ roll forward from 1.2 branch, Fixes addressbook bug #28945 ] if the
2002-11-26  Chris Toshok  <toshok@ximian.com>

	[ roll forward from 1.2 branch, Fixes addressbook bug #28945 ]
	* backend/ebook/e-card.c (e_card_get_vobject): if the email
	property is xml, get the real address from the e-destination.
	Fixes saving contact lists.

svn path=/trunk/; revision=18942
2002-11-27 02:56:16 +00:00
442ed02adb [ roll forward from the 1.2 branch. fixes #25540, part of #29630, as well
2002-11-23  Chris Toshok  <toshok@ximian.com>

	[ roll forward from the 1.2 branch.  fixes #25540, part of #29630,
	as well as other selection issues in the contact editor and ACL
	issues in the ldap backend ]
	* backend/pas/pas-backend-ldap.c (check_schema_support): reset the
	schema check state to FALSE if the read returned nothing (and the
	user had not authenticated).  we'll requery if/when they auth.
	(query_ldap_root_dse): free the schema dn before assigning over
	it.
	(pas_backend_ldap_connect): added a diagnostic warning about the
	root dse query failing in anonymous mode (if it in fact did fail.)
	(pas_backend_ldap_process_authenticate_user): if we successfully
	authed, requery the root dse to pick up any attributes that might
	be protected, and retry the schema query if that failed before.

	* gui/contact-editor/e-contact-editor.c (full_name_clicked): set
	the dialog's editable state based on the new field
	"fullname_editable", and only do the Ok button handling if this
	flag is TRUE.
	(full_addr_clicked): set the dialog's editable state based on the
	editable state for the particular address (from
	editor->address_editable[]).  also, only do the Ok button handling
	if this flag is TRUE.
	(_address_arrow_pressed): use the address_editable array to
	determine whether the address text and the mailing address
	checkbutton are sensitive.
	(enable_writable_fields): figure out if fullname_editable is
	TRUE/FALSE, also, init the address_editable flags based on the
	field list, and handle the address checkbutton.

	* gui/contact-editor/fulladdr.glade: change the label names to
	label-<name> to match {entry,combo}-<name>.

	* gui/contact-editor/fullname.glade: same.

	* gui/contact-editor/e-contact-editor-fullname.c
	(e_contact_editor_fullname_class_init): rename ARG_IS_READ_ONLY to
	ARG_EDITABLE, to reflect the correct sense of the flag.
	(e_contact_editor_fullname_set_arg): same, and make the labels
	sensitive/insensitive depending on the editable state of the
	dialog.

	* gui/contact-editor/e-contact-editor-address.c
	(e_contact_editor_address_class_init): rename ARG_IS_READ_ONLY to
	ARG_EDITABLE, to reflect the correct sense of the flag.
	(e_contact_editor_address_set_arg): same, and make the labels
	sensitive/insensitive depending on the editable state of the
	dialog.

svn path=/trunk/; revision=18910
2002-11-25 04:04:20 +00:00