Commit Graph

32 Commits

Author SHA1 Message Date
Kjartan Maraas e86a94310a Remove duplicate include. Fix some compiler warnings. Cast away a compiler
2006-10-01  Kjartan Maraas  <kmaraas@gnome.org>

	* gui/component/addressbook-component.c: Remove duplicate include.
	* gui/contact-editor/e-contact-editor.c: (extract_simple_field):
	Fix some compiler warnings.
	* gui/contact-editor/e-contact-quick-add.c:
	(build_quick_add_dialog): Cast away a compiler warning.
	* gui/widgets/e-addressbook-view.c: (generate_viewoption_menu):
	#if 0 out an unused array, fix 0 vs NULL initialization in some
	other arrays and remove an unused GSList.
	* gui/widgets/e-minicard.c: (add_email_field): Make a var const.
	* gui/widgets/eab-gui-util.c: (eab_contact_save),
	(eab_contact_list_save): Add some casts to fix compiler warnings
	and #if 0 out an unused function.
	* util/eab-book-util.c: (escape), (eab_contact_list_from_string):
	Some GString fixes. All of this from bug #332101.

svn path=/trunk/; revision=32841
2006-10-01 11:55:39 +00:00
Kjartan Maraas 6a557ef8fd reviewed by: Harish Krishnaswamy <kharish@novell.com>
2006-01-27  Kjartan Maraas  <kmaraas@gnome.org>

	reviewed by: Harish Krishnaswamy <kharish@novell.com>

	* gui/component/addressbook-component.c: (impl_requestCreateItem):
	Remove unused bits.
	* gui/component/addressbook-config.c: (eabc_general_type),
	(eabc_general_offline): Same here.
	* gui/component/addressbook-migrate.c: Remove unused static function.
	* gui/component/addressbook-view.c: (selector_tree_drag_motion):
	Remove unused static function and init uninitialized var.
	* gui/contact-editor/e-contact-editor-address.c:
	(fill_in_countries): Return early if setlocale() fails.
	* gui/contact-editor/e-contact-editor.c: (file_as_get_style),
	(extract_email), (extract_phone), (sensitize_phone_types),
	(extract_im), (sensitize_im_types), (init_simple):
	Mark some arrays static, remove unused variables, fix gcc warnings
	* gui/contact-list-editor/e-contact-list-editor.c: (fill_in_info):
	Remove unused var.
	* gui/merging/eab-contact-compare.c: (eab_contact_compare_name):
	Remove unused static function and unused vars.
	* gui/search/e-addressbook-search-dialog.c:
	(eab_search_dialog_dispose): Remove unused vars.
	* gui/widgets/e-addressbook-model.c: (get_view): Add comment.
	* gui/widgets/e-addressbook-view.c: (eab_view_class_init),
	(eab_view_delete_selection): Remove unused var
	* gui/widgets/e-addressbook-view.h: Remove extra semi-colon.
	* gui/widgets/e-minicard-label.c: (e_minicard_label_unrealize):
	Remove unused var.
	* gui/widgets/e-minicard.c: (e_minicard_unrealize),
	(e_minicard_event), (add_field), (remodel), (e_minicard_reflow):
	Remove unused vars. s/if/ifdef in some places, use passed in parameter
	instead of redeclaring the thing locally.
	* gui/widgets/eab-contact-display.c: (accum_address),
	(eab_contact_display_render_compact): s/if/ifdef.
	* gui/widgets/eab-gui-util.c: (eab_select_source): Comment out unused var.
	* gui/widgets/eab-popup-control.c: (eab_popup_control_cleanup): s/if/ifdef
	* printing/e-contact-print-style-editor.c:
	(e_contact_print_style_editor_class_init),
	(e_contact_print_style_editor_set_arg),
	(e_contact_print_style_editor_get_arg): Remove unused vars.
	* util/eab-book-util.c: s/if/ifdef

svn path=/trunk/; revision=31327
2006-01-27 15:41:52 +00:00
Sushma Rai 551e234d49 Unrefing the query.
svn path=/trunk/; revision=29774
2005-07-15 06:47:34 +00:00
Tor Lillqvist 40a550f2bb gui/component/Makefile.am gui/contact-editor/Makefile.am
2005-06-18  Tor Lillqvist  <tml@novell.com>

	* gui/component/Makefile.am
	* gui/contact-editor/Makefile.am
	* gui/contact-list-editor/Makefile.am
	* gui/merging/Makefile.am
	* gui/search/Makefile.am
	* gui/widgets/Makefile.am: Prune unnecessary and nonexistent
	directories from the -I options. Prune pathname macros not used in
	the sources in that directory from the -D options.

	* gui/component/Makefile.am
	* gui/contact-editor/Makefile.am
	* gui/contact-list-editor/Makefile.am
	* util/Makefile.am: Use NO_UNDEFINED. Link with all necessary
	libraries.

	* gui/component/Makefile.am: Use Win32-specific hack to work
	around MSYS feature in the gconftool invocation.

	* gui/contact-editor/Makefile.am
	* gui/contact-list-editor/Makefile.am: Use bootstrap library
	libevolution-addressbook on Win32.

	* gui/contact-editor/Makefile.am
	* gui/contact-list-editor/Makefile.am
	* util/Makefile.am: Use privsolib_LTLIBRARIES instead of
	privlib_LTLIBRARIES (see ../ChangeLog).

svn path=/trunk/; revision=29546
2005-06-18 18:36:55 +00:00
Kaushal Kumar 27a61acf27 Retired GAL from Head. The relevant files have moved inside evolution.
2005-06-17  Kaushal Kumar  <kakumar@novell.com>

        * Retired GAL from Head. The relevant files have moved inside
        evolution. Thanks to JP Rosevear for performing the cvs surgery. The
        files have been moved in the following order.

        evolution/e-util <- gal/gal/util
        evolution/a11y <-  gal/gal/a11y
        evolution/a11y/e-table <- gal/gal/a11y/e-table
        evolution/a11y/e-text <- gal/gal/a11y/e-text
        evolution/widgets/table <- gal/gal/e-table
        evolution/widgets/text <- gal/gal/e-text
        evolution/widgets/misc <- gal/gal/widgets
        evolution/widgets/misc/pixmaps <- gal/gal/widgets/pixmaps
        evolution/widgets/menus <- gal/gal/menus

        Following is the summary of changes done to fix the build:-
        - New files added to cvs repository,
                - a11y/e-table/Makefile.am
                - a11y/e-text/Makefile.am
                - widgets/table/Makefile.am
                - widgets/text/Makefile.am
                - widgets/misc/pixmaps/Makefile.am
                - iconv-detect.h
                - iconv-detect.c
        - Updated configure.in.
        - Updated all the relevant Makefile.am files.
        - Updated the include paths to replace all gal references.
        - Updated the marshal list to suit gal files requirements.

svn path=/trunk/; revision=29522
2005-06-17 15:20:35 +00:00
Hans Petter Jansson 3ee8be8e3d Install shared libraries to privlibdir.
2005-02-09  Hans Petter Jansson  <hpj@novell.com>

        * addressbook/gui/contact-editor/Makefile.am:
        * addressbook/gui/contact-list-editor/Makefile.am:
        * addressbook/util/Makefile.am:
        * filter/Makefile.am:
        * widgets/e-timezone-dialog/Makefile.am:
        * widgets/menus/Makefile.am:
        * widgets/misc/Makefile.am:
        * smime/lib/Makefile.am:
        * smime/gui/Makefile.am: Install shared libraries to privlibdir.

svn path=/trunk/; revision=28762
2005-02-10 05:34:04 +00:00
Sivaiah Nallagatla b9bc87999f case insesitive version of strstr. Used from camel
2005-01-26  Sivaiah Nallagatla <snallagatla@novell.com>

       * util/eab-book-util.c (strstrcase) :
       case insesitive version of strstr. Used
       from camel

       (eab_contact_list_from_string) : do case in sensitive
       search for "BEGIN:VCARD" and "END:VCARD" to
       take care of broken vcards

       Fixes #70339

svn path=/trunk/; revision=28578
2005-01-27 11:30:20 +00:00
Not Zed 0e94180b74 cast length specifier to int.
2005-01-11  Not Zed  <NotZed@Ximian.com>

        * util/eab-book-util.c (eab_name_and_email_query): cast length
        specifier to int.

svn path=/trunk/; revision=28370
2005-01-12 08:39:57 +00:00
Hans Petter Jansson 24ebfb0afc addressbook/gui/component/addressbook-migrate.c
2004-12-08  Hans Petter Jansson  <hpj@novell.com>

	* addressbook/gui/component/addressbook-migrate.c
	* addressbook/gui/component/select-names/e-select-names-completion.c
	* addressbook/gui/component/select-names/e-select-names-manager.c
	* addressbook/gui/component/select-names/e-select-names-model.h
	* addressbook/gui/contact-list-editor/e-contact-list-editor.h
	* addressbook/gui/contact-list-editor/e-contact-list-model.h
	* addressbook/gui/widgets/e-minicard.c
	* addressbook/gui/widgets/eab-gui-util.c
	* addressbook/importers/evolution-ldif-importer.c
	* addressbook/importers/evolution-vcard-importer.c: Include
	<libebook/e-destination.h> from evolution-data-server.
	* addressbook/util/Makefile.am: Remove e-destination.[ch] from here.
	* addressbook/util/e-destination.[ch]: Removed.

	* plugins/shared-folder/share-folder-common.c: Include
	<libebook/e-destination.h> from evolution-data-server.

	* calendar/gui/e-meeting-list-view.c
	* calendar/gui/e-select-names-editable.c
	* calendar/gui/dialogs/alarm-dialog.c
	* calendar/gui/dialogs/e-delegate-dialog.c: Include
	<libebook/e-destination.h> from evolution-data-server.

	* composer/e-msg-composer-hdrs.h: Include <libebook/e-destination.h>
	from evolution-data-server.

	* mail/importers/pine-importer.c: Include <libebook/e-destination.h>
	from evolution-data-server.

svn path=/trunk/; revision=28094
2004-12-09 06:12:56 +00:00
Not Zed b94073e8d4 remove camel, add ADDRESSBOOK_LIBS.
2004-11-16  Not Zed  <NotZed@Ximian.com>

        * util/Makefile.am (libeabutil_la_LIBADD): remove camel, add
        ADDRESSBOOK_LIBS.

        * conduit/Makefile.am (libeaddress_conduit_la_LIBADD): remove
        camel.

        * gui/component/Makefile.am (libevolution_addressbook_la_LIBADD):
        remove camel.

2004-11-15  Not Zed  <NotZed@Ximian.com>

        * *.c: Moved various things from e-util to libedataserver, where
        appropriate.

svn path=/trunk/; revision=28048
2004-12-03 03:39:53 +00:00
Sivaiah Nallagatla f2b5ff4623 When name is NULL query against complete email id instead of user name
2004-11-07  Sivaiah Nallagatla <snallagatla@novell.com>

       * util/eab-book-util.c (eab_name_and_email_query) :
       When name is NULL query against complete email id instead of
       user name part to take care of users@foo.org not matching
       against users@bar.org . Also include query based on name always

       Fix for  #67656

svn path=/trunk/; revision=27937
2004-11-17 20:57:34 +00:00
Hans Petter Jansson 3196e27abd Fixes bug #66369.
2004-09-29  Hans Petter Jansson  <hpj@ximian.com>

	Fixes bug #66369.

	* util/eab-book-util.c (eab_contact_list_from_string): Make the
	vcard splitter work with any amount of blank lines between vcards.

svn path=/trunk/; revision=27429
2004-09-29 19:39:39 +00:00
Michael Zucci ef6a3af717 Merged notzed-eplugin-2-branch to head.
svn path=/trunk/; revision=27300
2004-09-20 05:59:55 +00:00
Hans Petter Jansson 86147a23fa Don't accept input that doesn't have at least a "BEGIN:VCARD" in it.
2004-06-24  Hans Petter Jansson  <hpj@ximian.com>

	* util/eab-book-util.c (eab_contact_list_from_string): Don't accept
	input that doesn't have at least a "BEGIN:VCARD" in it.

svn path=/trunk/; revision=26505
2004-06-24 22:49:00 +00:00
Hans Petter Jansson 54a5d78f78 Add an x-source-vcard target entry that includes the source book URI.
2004-06-23  Hans Petter Jansson  <hpj@ximian.com>

	* gui/component/addressbook-view.c: Add an x-source-vcard target entry
	that includes the source book URI.
	(destroy_merge_context): Implement.
	(removed_contact_cb): Implement.
	(merged_contact_cb): Implement.
	(selector_tree_drag_data_received): Get the source and target books,
	and see if we need to remove contacts from source after they're added
	to target. Copy contacts sequentially, not in parallel, with a
	callback.

	* gui/widgets/e-addressbook-view.c: Add an x-source-vcard target entry
	that includes the source book URI.
	(table_drag_data_delete): Remove. This is handled by the drag target.
	(table_drag_data_get): Handle more than one contact. Supply source.
	(create_table_view): Don't connect to the delete signal.

	* gui/widgets/e-minicard-view.c: Add an x-source-vcard target entry
	that includes the source book URI.
	(e_minicard_view_drag_data_delete): Remove. This is handled by the
	drag target.
	(e_minicard_view_drag_data_get): Handle x-source-vcard target.
	(e_minicard_view_drag_begin): Don't connect to the delete signal.
	(e_minicard_view_dispose): Don't disconnect from the delete signal.
	(e_minicard_view_init): Don't init delete_id.

	* gui/widgets/e-minicard-view.h: Remove delete_id from struct.

	* util/eab-book-util.[ch] (eab_contact_list_from_string): Skip the
	source URI if present.
	(eab_book_and_contact_list_from_string): Create the source book from
	the provided URI, if present.
	(eab_book_and_contact_list_to_string): Include the book URI in
	generated string.

svn path=/trunk/; revision=26485
2004-06-23 22:40:24 +00:00
Chris Toshok b7ed99720d EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same.
2004-06-17  Chris Toshok  <toshok@ximian.com>

	* util/eab-book-util.c (eab_name_and_email_query):
	EBookContactsCallback -> EBookListCallback.
	(eab_nickname_query): same.

	* printing/e-contact-print.c: e-book-async.h -> e-book.h

	* gui/widgets/eab-vcard-control.c: e-book-async.h -> e-book.h.

	* gui/widgets/e-addressbook-model.h: e-book-async.h -> e-book.h.

	* gui/widgets/eab-popup-control.h: e-book-async.h -> e-book.h.

	* gui/widgets/eab-popup-control.c: remove e-book-async.h include.

	* gui/merging/eab-contact-merging.h: e-book-async.h -> e-book.h.

	* gui/contact-editor/e-contact-editor.h: e-book-async.h ->
	e-book.h.

	* gui/contact-editor/e-contact-editor.h: same.

	* gui/contact-list-editor/e-contact-list-editor.h: same.

	* gui/contact-list-editor/e-contact-list-model.h: remove include
	of e-book-async.h

	* gui/component/select-names/e-select-names-completion.h: include
	e-book.h, not e-book-async.h

	* gui/component/select-names/e-select-names-model.c: same.

	* gui/component/select-names/e-select-names.c: same.

	* gui/component/addressbook-migrate.c: include e-book.h, not
	e-book-async.h

	* gui/component/addressbook-view.c: same.

	* gui/component/addressbook.h: same.

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

svn path=/trunk/; revision=26402
2004-06-17 22:00:00 +00:00
Chris Toshok ff528b1938 don't use "email" twice for a variable name.. even though they don't
2004-04-30  Chris Toshok  <toshok@ximian.com>

	* util/e-destination.c (e_destination_set_contact): don't use
	"email" twice for a variable name.. even though they don't really
	conflict, it's ugly and confusing.

svn path=/trunk/; revision=25720
2004-04-30 18:23:16 +00:00
Chris Toshok f556de209e remove the e_destination_get_book api, since the function doesn't exist.
2004-04-10  Chris Toshok  <toshok@ximian.com>

	* util/e-destination.h: remove the e_destination_get_book api,
	since the function doesn't exist.

svn path=/trunk/; revision=25408
2004-04-10 16:30:59 +00:00
Chris Toshok e68394b0d0 use the new e_destination_export_to_vcard_attribute call to build up the
2004-04-09  Chris Toshok  <toshok@ximian.com>

	* importers/evolution-ldif-importer.c (resolve_list_card): use the
	new e_destination_export_to_vcard_attribute call to build up the
	attributes.

	* importers/evolution-vcard-importer.c (process_item_fn): if we're
	importing a vcard that we wrote out previously containing xml in
	the EMAIL attributes, DTRT and strip it out and use
	e_destination_export_to_vcard_attribute to build up the proper
	attribute.

	* util/Makefile.am (libeabutil_la_SOURCES): remove
	eab-destination.[ch] and add e-destination.[ch].

	* printing/e-contact-print.c (e_contact_print_contact): we don't
	have to worry about the "<?xml..."  EMAIL fields anymore.

	* gui/widgets/eab-gui-util.c (eab_send_contact_list): just use the
	value as the address (since that's what it is) in the list case.

	* gui/widgets/eab-contact-display.c (render_contact_list): remove
	the EABDestination stuff from here.
	(eab_contact_display_render_compact): same.

	* gui/widgets/e-minicard.c (activiate_editor): fix warnings - use
	EAB_EDITOR instead of G_OBJECT.
	(add_field): we don't have to worry about the "<?xml..."  EMAIL
	fields anymore.
	(remodel): same.

	* gui/widgets/e-addressbook-treeview-adapter.c
	(adapter_get_value): we don't have to worry about the "<?xml..."
	EMAIL fields anymore.

	* gui/widgets/e-addressbook-table-adapter.c
	(addressbook_value_at): we don't have to worry about the
	"<?xml..." EMAIL fields anymore.

	* gui/contact-list-editor/e-contact-list-model.c
	(contact_list_value_at): eab->e.
	(contact_list_model_dispose): we're not a GtkObject, we're a
	GObject.  rename _destroy to _dispose, and chain up to the parent
	class's ::dispose.
	(e_contact_list_model_class_init): GtkObject -> GObject, and
	destroy -> dispose.
	(e_contact_list_model_init): GtkObject -> GObject, and EAB -> E.
	(e_contact_list_model_add_destination): EAB -> E.
	(e_contact_list_model_add_email): same.
	(e_contact_list_model_add_contact): same.
	(e_contact_list_model_get_destination): same.

	* gui/contact-list-editor/e-contact-list-editor.c
	(table_drag_data_received_cb): add email num arg to
	e_contact_list_model_add_contact.
	(extract_info): fill in the vcard attributes instead of just
	generating xml.
	(fill_in_info): extract the values from the vcard attributes.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_insert_length): eab->e, and don't
	sometimes copy, sometimes ::new.  always ::new.
	(e_select_names_text_model_delete): same.
	(e_select_names_text_model_obj_count): same.
	(nth_obj_index): same.

	* gui/component/select-names/e-select-names-table-model.c
	(fill_in_info): eab -> e.

	* gui/component/select-names/e-select-names-popup.c
	(make_contact_editor_cb): eab -> e.
	(change_email_num_cb): same.
	(toggle_html_mail_cb): same.
	(populate_popup_contact): same, and remove code that checks for
	<?xml, then imports the EDestination.
	(quick_add_cb): eab -> e.
	(populate_popup_nocontact): same.
	(e_select_names_populate_popup): same.

	* gui/component/select-names/e-select-names-model.h: eab -> e, and
	remove prototypes for nuked functions.

	* gui/component/select-names/e-select-names-model.c
	(destination_changed_proxy, send_changed, connect_destination,
	disconnect_destination): nuke.
	(e_select_names_model_duplicate): EAB -> E.
	(e_select_names_model_get_textification): same.
	(e_select_names_model_get_address_text): same.
	(e_select_names_model_get_destination): same.
	(e_select_names_model_export_destinationv): same.
	(send_changed): same.
	(e_select_names_model_import_destinationv): same.
	(e_select_names_model_get_contact): same.
	(e_select_names_model_contains): same.
	(e_select_names_model_insert): same, and remove call to
	connect_destination.
	(e_select_names_model_append): same.
	(e_select_names_model_replace): same, and remove call to
	disconnect/connect_destination.
	(e_select_names_model_delete): same.
	(delete_all_iter): nuke.
	(e_select_names_model_delete_all): use g_object_unref for the
	foreach call.
	(e_select_names_model_merge): EAB -> E.
	(e_select_names_model_name_pos): same.
	(e_select_names_model_name_pos): same.
	(e_select_names_model_load_all_contacts): nuke.
	(e_select_names_model_cancel_all_contact_load): nuke.

	* gui/component/select-names/e-select-names-manager.c
	(clean_cb, focus_in_cb, focus_out_cb, completion_popup_cb): nuke.
	(completion_handler): EAB -> E, and the signals are gone.

	* gui/component/select-names/e-select-names-completion.c: in
	general, s/eab_dest/e_dest and s/EABDest/EDest.
	(e_select_names_completion_got_book_view_cb): move the
	e_book_view_start to below the assignment of
	sequence_complete_received, just to put my mind at ease.
	(e_select_names_completion_stop_query): un-#if notyet the call to
	e_book_cancel.
	(e_select_names_completion_start_query): free the waiting_query
	before assigning to it.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_set_property_fn): remove calls to
	e_select_names_model_load_all_contacts, since that function is
	dead.

	* gui/component/addressbook-migrate.c (setup_progress_dialog):
	take the label to display to the user as an arg.
	(migrate_contact_lists_for_local_folders): loop over all contacts
	in all local addressbooks looking for ones that have <?xml in
	their EMAIL attributes.  for the ones we find, call
	e_destination_export_to_vcard_attribute to build up the proper
	attribute.
	(addressbook_migrate): add in a clause for all versions under
	1.5.7 to convert contact lists.  also, move the unrefs of the
	sources/groups to outside the if, as they're created outside it.

	* gui/component/Makefile.am (INCLUDES): remove the
	addressbook/backend/ dirs, since libebook isn't there anymore
	(nothing is, actually).  Add addressbook/util/.

svn path=/trunk/; revision=25390
2004-04-09 17:29:51 +00:00
Chris Toshok 97634e4d34 use the new e_destination_export_to_vcard_attribute call to build up the
2004-04-09  Chris Toshok  <toshok@ximian.com>

	* importers/evolution-ldif-importer.c (resolve_list_card): use the
	new e_destination_export_to_vcard_attribute call to build up the
	attributes.

	* importers/evolution-vcard-importer.c (process_item_fn): if we're
	importing a vcard that we wrote out previously containing xml in
	the EMAIL attributes, DTRT and strip it out and use
	e_destination_export_to_vcard_attribute to build up the proper
	attribute.

	* util/Makefile.am (libeabutil_la_SOURCES): remove
	eab-destination.[ch] and add e-destination.[ch].

	* printing/e-contact-print.c (e_contact_print_contact): we don't
	have to worry about the "<?xml..."  EMAIL fields anymore.

	* gui/widgets/eab-gui-util.c (eab_send_contact_list): just use the
	value as the address (since that's what it is) in the list case.

	* gui/widgets/eab-contact-display.c (render_contact_list): remove
	the EABDestination stuff from here.
	(eab_contact_display_render_compact): same.

	* gui/widgets/e-minicard.c (activiate_editor): fix warnings - use
	EAB_EDITOR instead of G_OBJECT.
	(add_field): we don't have to worry about the "<?xml..."  EMAIL
	fields anymore.
	(remodel): same.

	* gui/widgets/e-addressbook-treeview-adapter.c
	(adapter_get_value): we don't have to worry about the "<?xml..."
	EMAIL fields anymore.

	* gui/widgets/e-addressbook-table-adapter.c
	(addressbook_value_at): we don't have to worry about the
	"<?xml..." EMAIL fields anymore.

	* gui/contact-list-editor/e-contact-list-model.c
	(contact_list_value_at): eab->e.
	(contact_list_model_dispose): we're not a GtkObject, we're a
	GObject.  rename _destroy to _dispose, and chain up to the parent
	class's ::dispose.
	(e_contact_list_model_class_init): GtkObject -> GObject, and
	destroy -> dispose.
	(e_contact_list_model_init): GtkObject -> GObject, and EAB -> E.
	(e_contact_list_model_add_destination): EAB -> E.
	(e_contact_list_model_add_email): same.
	(e_contact_list_model_add_contact): same.
	(e_contact_list_model_get_destination): same.

	* gui/contact-list-editor/e-contact-list-editor.c
	(table_drag_data_received_cb): add email num arg to
	e_contact_list_model_add_contact.
	(extract_info): fill in the vcard attributes instead of just
	generating xml.
	(fill_in_info): extract the values from the vcard attributes.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_insert_length): eab->e, and don't
	sometimes copy, sometimes ::new.  always ::new.
	(e_select_names_text_model_delete): same.
	(e_select_names_text_model_obj_count): same.
	(nth_obj_index): same.

	* gui/component/select-names/e-select-names-table-model.c
	(fill_in_info): eab -> e.

	* gui/component/select-names/e-select-names-popup.c
	(make_contact_editor_cb): eab -> e.
	(change_email_num_cb): same.
	(toggle_html_mail_cb): same.
	(populate_popup_contact): same, and remove code that checks for
	<?xml, then imports the EDestination.
	(quick_add_cb): eab -> e.
	(populate_popup_nocontact): same.
	(e_select_names_populate_popup): same.

	* gui/component/select-names/e-select-names-model.h: eab -> e, and
	remove prototypes for nuked functions.

	* gui/component/select-names/e-select-names-model.c
	(destination_changed_proxy, send_changed, connect_destination,
	disconnect_destination): nuke.
	(e_select_names_model_duplicate): EAB -> E.
	(e_select_names_model_get_textification): same.
	(e_select_names_model_get_address_text): same.
	(e_select_names_model_get_destination): same.
	(e_select_names_model_export_destinationv): same.
	(send_changed): same.
	(e_select_names_model_import_destinationv): same.
	(e_select_names_model_get_contact): same.
	(e_select_names_model_contains): same.
	(e_select_names_model_insert): same, and remove call to
	connect_destination.
	(e_select_names_model_append): same.
	(e_select_names_model_replace): same, and remove call to
	disconnect/connect_destination.
	(e_select_names_model_delete): same.
	(delete_all_iter): nuke.
	(e_select_names_model_delete_all): use g_object_unref for the
	foreach call.
	(e_select_names_model_merge): EAB -> E.
	(e_select_names_model_name_pos): same.
	(e_select_names_model_name_pos): same.
	(e_select_names_model_load_all_contacts): nuke.
	(e_select_names_model_cancel_all_contact_load): nuke.

	* gui/component/select-names/e-select-names-manager.c
	(clean_cb, focus_in_cb, focus_out_cb, completion_popup_cb): nuke.
	(completion_handler): EAB -> E, and the signals are gone.

	* gui/component/select-names/e-select-names-completion.c: in
	general, s/eab_dest/e_dest and s/EABDest/EDest.
	(e_select_names_completion_got_book_view_cb): move the
	e_book_view_start to below the assignment of
	sequence_complete_received, just to put my mind at ease.
	(e_select_names_completion_stop_query): un-#if notyet the call to
	e_book_cancel.
	(e_select_names_completion_start_query): free the waiting_query
	before assigning to it.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_set_property_fn): remove calls to
	e_select_names_model_load_all_contacts, since that function is
	dead.

	* gui/component/addressbook-migrate.c (setup_progress_dialog):
	take the label to display to the user as an arg.
	(migrate_contact_lists_for_local_folders): loop over all contacts
	in all local addressbooks looking for ones that have <?xml in
	their EMAIL attributes.  for the ones we find, call
	e_destination_export_to_vcard_attribute to build up the proper
	attribute.
	(addressbook_migrate): add in a clause for all versions under
	1.5.7 to convert contact lists.  also, move the unrefs of the
	sources/groups to outside the if, as they're created outside it.

	* gui/component/Makefile.am (INCLUDES): remove the
	addressbook/backend/ dirs, since libebook isn't there anymore
	(nothing is, actually).  Add addressbook/util/.

svn path=/trunk/; revision=25389
2004-04-09 17:29:26 +00:00
Chris Toshok e21dfa011d we don't have an EBook* anymore. (e_destination_clear): same.
2004-04-07  Chris Toshok  <toshok@ximian.com>

	* util/e-destination.c (e_destination_copy): we don't have an
	EBook* anymore.
	(e_destination_clear): same.
	(e_destination_set_contact): same.
	(e_destination_set_book): same, just cache the source_uid.
	(e_destination_set_book_uri): nuke.
	(e_destination_set_contact_uid): we don't have an EBook*.
	(e_destination_xml_decode): same.
	(e_destination_export_to_vcard_attribute): new function, fill in
	an EVCardAttribute with EDestination values.

	* util/e-destination.h: add prototype for
	e_destination_export_to_vcard_attribute.

svn path=/trunk/; revision=25358
2004-04-07 19:29:34 +00:00
Chris Toshok 314f16aa89 old name, new trimmed down implementation. This will be replacing
2004-04-06  Chris Toshok  <toshok@ximian.com>

	* util/e-destination.[ch]: old name, new trimmed down
	implementation.  This will be replacing eab-destination.[ch].

svn path=/trunk/; revision=25336
2004-04-06 14:40:31 +00:00
Chris Toshok f647532142 wrap this with the correct #ifdef.
2004-04-05  Chris Toshok  <toshok@ximian.com>

	* util/eab-destination.h: wrap this with the correct #ifdef.

svn path=/trunk/; revision=25328
2004-04-06 01:10:37 +00:00
Hans Petter Jansson 9a4ee04a76 Move unused variable declaration inside notyet conditional.
2004-02-26  Hans Petter Jansson  <hpj@ximian.com>

	* util/eab-destination.c (name_and_email_cb): Move unused variable
	declaration inside notyet conditional.

	* printing/e-contact-print.c: Include gal/util/e-util.h

	* gui/merging/eab-contact-compare.c (eab_contact_locate_match): Cast
	callback to an EBookCallback.
	(eab_contact_locate_match_full): Ditto.

	* gui/contact-editor/e-contact-quick-add.c (quick_add_set_name):
	Remove unused variable and cast 3rd arg to e_contact_set () (perhaps
	this should take a gconstpointer?).

	* gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu):
	Remove unused variable.

	* gui/component/select-names/e-select-names.c (e_select_names_init):
	Cast the vbox to a GtkBox.

	* gui/component/addressbook-config.c (dialog_to_source): Correctly cast
	the spin button to a GtkSpinButton, not a GtkEntry.

	* gui/component/addressbook-component.c (load_primary_selection):
	Remove unused variable.

svn path=/trunk/; revision=24898
2004-02-26 21:01:41 +00:00
Chris Toshok 06ae1bac42 [ fixes #53238 ] make this accept NULL's (and return FALSE for them).
2004-01-26  Chris Toshok  <toshok@ximian.com>

	[ fixes #53238 ]
	* util/eab-destination.c (nonempty): make this accept NULL's (and
	return FALSE for them).
	(eab_destination_is_empty): shorten some of the tests since
	nonempty takes NULL now.
	(eab_destination_get_address): only call
	camel_internet_address_add if both name and email are non-empty.
	otherwise call camel_address_decode and let camel try to deal with
	it.
	(eab_destination_xml_encode): call xmlEncodeEntitiesReentrant on
	the strings before adding them to the xml, so people that enter
	[<>&] won't end up with broken EABDestinations.

svn path=/trunk/; revision=24439
2004-01-26 17:03:22 +00:00
Chris Toshok a5157a42da [ fixes bug #52571 ] ugh. name fields that have \" around the name break
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
2004-01-23 19:35:02 +00:00
Chris Toshok b476b5573e [ fixes bug #52955 ] handle the case properly where there are no query
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
2004-01-21 02:19:19 +00:00
JP Rosevear f6b7ede5b1 Remove hard coded disable deprecated flags
2003-12-06  JP Rosevear <jpr@ximian.com>

	* */Makefile.am: Remove hard coded disable deprecated flags

svn path=/trunk/; revision=23658
2003-12-06 18:08:00 +00:00
Dan Winship 7712cdb51e Remove some includes of directories that don't exist any more
* util/Makefile.am (INCLUDES): Remove some includes of directories
	that don't exist any more

svn path=/trunk/; revision=23231
2003-11-07 21:25:23 +00:00
JP Rosevear a4b2658454 dist the marshal list
2003-11-07  JP Rosevear <jpr@ximian.com>

	* util/Makefile.am: dist the marshal list

svn path=/trunk/; revision=23210
2003-11-07 07:08:45 +00:00
JP Rosevear 200606f928 Various changes to merge in evolution-data-server reliance.
svn path=/trunk/; revision=23206
2003-11-07 05:52:24 +00:00
Ettore Perazzoli 653cfffc0e Merge new-ui-branch to the trunk.
svn path=/trunk/; revision=22965
2003-10-21 18:49:34 +00:00