aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-migrate.c
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace cleanup.Matthew Barnes2009-05-291-1/+1
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-66/+66
|
* Remove trailing whitespace, again.Matthew Barnes2009-05-291-1/+1
|
* Bug 572977 – Use g_strerror() instead of strerror()Matthew Barnes2009-05-031-1/+1
|
* Substitute some deprecated gtk+ functions.Andre Klapper2009-02-121-4/+4
| | | | | | | | | | | | | | | 2009-02-11 Andre Klapper <a9016009@gmx.de> * addressbook/gui/component/addressbook-migrate.c: * calendar/gui/migration.c: * calendar/gui/dialogs/alarm-dialog.c: * mail/em-folder-browser.c: * mail/em-migrate.c: * plugins/audio-inline/audio-inline.c: Substitute some deprecated gtk+ functions. svn path=/trunk/; revision=37249
* License Changes from GPL to LGPLSankarasivasubramanian Pasupathilingam2008-09-131-11/+12
| | | | svn path=/trunk/; revision=36313
* Fix a typo. (#547369)Matthew Barnes2008-08-121-1/+1
| | | | | | | | | | | | | | 2008-08-12 Matthew Barnes <mbarnes@redhat.com> * addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in: Fix a typo. (#547369) * addressbook/gui/component/addressbook-migrate.c: * calendar/gui/migration.c: Fix TeX-style quotes. (#547372) svn path=/trunk/; revision=35967
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* ** Fixes bug #513951Matthew Barnes2008-03-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-11 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #513951 * addressbook/gui/component/addressbook-component.c (ensure_sources): * addressbook/gui/component/addressbook-migrate.c (addressbook_migrate): * calendar/gui/cal-search-bar.c (cal_search_bar_construct): * calendar/gui/migration.c (create_calendar_sources), (create_task_sources), (migrate_calendars), (migrate_tasks), (create_memo_sources): * calendar/gui/e-memos.c (e_memos_setup_view_menus): * calendar/gui/tasks-component.c (ensure_sources): * calendar/gui/gnome-cal.c (gnome_calendar_setup_view_menus): * calendar/gui/calendar-component.c (ensure_sources): * calendar/gui/memos-component.c (ensure_sources): * mail/mail-config.c (gconf_mime_types_changed): Adapt to new meaning of xxx_component_peek_base_directory(). * addressbook/gui/component/addressbook-component.c (addressbook_component_init): * addressbook/gui/component/addressbook-migrate.c (create_groups): * calendar/gui/tasks-component.c (tasks_component_init): * calendar/gui/calendar-component.c (calendar_component_init): * calendar/gui/memos-component.c (memos_component_init): * composer/e-msg-composer.c (autosave_manager_query_load_orphans), (autosave_init_file): * e-util/e-mktemp.c (get_dir): * e-util/e-util.c (get_lock_filename): * mail/mail-component.c: * plugins/face/face.c (org_gnome_composer_face): * smime/lib/e-cert-db.c (initialize_nss): Use e_get_user_data_dir() instead of constructing the full path. * calendar/gui/migration.c (add_gw_esource): * composer/e-msg-composer.c (e_msg-composer_unrealize), (e_msg_composer_set_view_from), (e_msg_composer_set_view_replyto), (e_msg_composer_set_view_to), (e_msg_composer_set_view_postto), (e_msg_composer_set_view_cc), (e_msg_composer_set_view_bcc): * e-util/e-util.c (e_file_update_save_path), (e_file_get_save_path): Emit warnings if saving to GConf fails. * e-util/e-util.c (e_get_user_data_dir): New function returns the base directory for Evolution user data. This should be the /only/ place in the application where this directory is hard-coded. svn path=/trunk/; revision=35175
* ** Part of fix for bug #515744Milan Crha2008-02-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-02-18 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #515744 * addressbook/gui/component/addressbook-migrate.c: (get_source_name): * plugins/groupwise-features/send-options.c: (get_source): * plugins/groupwise-features/share-folder-common.c: (get_container_id): * plugins/groupwise-features/install-shared.c: (install_folder_response): * plugins/external-editor/external-editor.c: (convert_to_camel_internet_address), (org_gnome_external_editor): * plugins/itip-formatter/itip-formatter.c: (idle_open_cb): * mail/em-folder-view.c: (emfv_setup_view_instance): * mail/mail-component.c: (impl_finalize): * mail/message-list.c: (ml_tree_value_at): * composer/e-msg-composer.c: (drop_action): * e-util/e-config.c: (ep_finalise): Use proper member to free. * widgets/misc/e-cursors.c: (e_cursors_init): * widgets/misc/e-calendar-item.c: (e_calendar_item_draw_month): * calendar/gui/dialogs/comp-editor.c: (drop_action): * calendar/gui/calendar-config.c: (calendar_config_get_hide_completed_tasks_sexp): * calendar/gui/comp-editor-factory.c: (edit_existing): * calendar/gui/e-day-view.c: (e_day_view_reshape_long_event), (e_day_view_on_top_canvas_drag_data_received): * calendar/gui/e-day-view-main-item.c: (e_day_view_main_item_draw_events_in_vbars), (e_day_view_main_item_draw_long_events_in_vbars): * calendar/gui/e-day-view-top-item.c: (e_day_view_top_item_draw_long_event): * calendar/gui/e-cal-model.c: (redo_queries): * calendar/gui/e-calendar-table.c: (e_calendar_table_open_task): * calendar/gui/e-memo-table.c: (open_memo): * calendar/gui/print.c: (print_todo_details): * calendar/gui/migration.c: (get_source_name): Memory leak fix. * calendar/gui/e-week-view.c: (e_week_view_reshape_events): Simplifies things. svn path=/trunk/; revision=35044
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-35/+35
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-2/+2
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* 2007-08-06 mcrha Partial fix for bug #313221Milan Crha2007-08-061-6/+16
| | | | svn path=/trunk/; revision=33960
* Fix compiler warnings in addressbook folder. (#440272)Matthew Barnes2007-06-031-8/+8
| | | | svn path=/trunk/; revision=33630
* Don't assume the relative URI is non-NULL (#427232).Matthew Barnes2007-05-261-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | 2007-05-25 Matthew Barnes <mbarnes@redhat.com> * addressbook/gui/component/addressbook-component.c (ensure_sources): * addressbook/gui/component/addressbook-migrate.c (ensure_sources): * calendar/gui/migration.c (create_calendar_sources), (create_task_sources), (create_memo_sources): * calendar/gui/tasks-component.c (ensure_sources): * calendar/gui/calendar-component.c (ensure_sources): * calendar/gui/memos-component.c (ensure_sources): * plugins/hula-account-setup/camel-hula-listener.c (remove_esource), (modify_esource): * plugins/groupwise-account-setup/camel-gw-listener.c (remove_esource), (modify_esource): Don't assume the relative URI is non-NULL (#427232). * plugins/exchange-operations/exchange-config-listener.c (exchange_add_autocompletion_folders): Don't assume the absolute URI is non-NULL (#427232). svn path=/trunk/; revision=33577
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2007-03-20 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #419524 * Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>. * e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list): * mail/em-migrate.c (emm_setup_initial): * shell/e-component-registry.c (query_components): * shell/e-shell-settings-dialog.c (load_pages): * shell/e-shell-window-commands.c (command_quick_reference): * tools/killev.c (main): Use g_get_language_names() instead of gnome_i18n_get_language_list(). * e-util/e-util.c: Remove e_gettext(). * e-util/Makefile.am: Remove e-i18n.h. svn path=/trunk/; revision=33319
* reviewed by: Harish Krishnaswamy <kharish@novell.com>Kjartan Maraas2006-01-271-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Include libedataserver/e-xml-utils.h, too.Tor Lillqvist2005-12-181-10/+9
| | | | | | | | | 2005-12-17 Tor Lillqvist <tml@novell.com> * gui/component/addressbook-migrate.c: Include libedataserver/e-xml-utils.h, too. svn path=/trunk/; revision=30830
* Use gstdio wrappers. Use GDir API instead of dirent. Use GLib API toTor Lillqvist2005-12-171-24/+34
| | | | | | | | | | 2005-12-17 Tor Lillqvist <tml@novell.com> * gui/component/addressbook-migrate.c: Use gstdio wrappers. Use GDir API instead of dirent. Use GLib API to convert file names to URIs and back. Open files in binary mode. svn path=/trunk/; revision=30797
* Unrefing the query.Sushma Rai2005-07-151-2/+3
| | | | svn path=/trunk/; revision=29774
* Enable autocompletion on personal addressbook when creating it (MandrivaFrédéric Crozat2005-07-071-0/+2
| | | | | | | | | * gui/component/addressbook-component.c: (ensure_sources): * gui/component/addressbook-migrate.c: (create_groups): Enable autocompletion on personal addressbook when creating it (Mandriva bug #16427). svn path=/trunk/; revision=29674
* Setting TYPE=OTHER default parameter to email attribute. Fixes #240756.Sushma Rai2005-06-251-0/+8
| | | | svn path=/trunk/; revision=29585
* Retired GAL from Head. The relevant files have moved inside evolution.Kaushal Kumar2005-06-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* addressbook/gui/component/addressbook-migrate.cHans Petter Jansson2004-12-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* include config.h #61395.Not Zed2004-07-221-0/+4
| | | | | | | | | | 2004-07-20 Not Zed <NotZed@Ximian.com> * gui/widgets/eab-contact-display.c: * gui/contact-editor/eab-editor.c: * gui/component/addressbook-migrate.c: include config.h #61395. svn path=/trunk/; revision=26693
* [ fixes #56657 ]Rodney Dawes2004-07-141-16/+6
| | | | | | | | | | | | | | 2004-07-13 Rodney Dawes <dobey@novell.com> [ fixes #56657 ] * gui/component/addressbook-migrate.c (get_source_by_uri): Replace this call with get_source_by_name () (migrate_completion_folders): Fix the non-local folder migration to look up sources for the migrated folders based on name, instead of using the URI svn path=/trunk/; revision=26643
* EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same.Chris Toshok2004-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes #57795.Hans Petter Jansson2004-06-081-0/+25
| | | | | | | | | | | 2004-06-07 Hans Petter Jansson <hpj@ximian.com> Fixes #57795. * gui/component/addressbook-migrate.c (migrate_contacts): Change the "POSTAL" address in 1.4 to "OTHER" in 1.5. svn path=/trunk/; revision=26243
* Add missing negation that caused a crash.Hans Petter Jansson2004-06-031-1/+1
| | | | | | | | | | 2004-06-02 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): Add missing negation that caused a crash. svn path=/trunk/; revision=26162
* remove hidden field migration, and add in a phase to clear theChris Toshok2004-06-031-52/+17
| | | | | | | | | | 2004-06-02 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (addressbook_migrate): remove hidden field migration, and add in a phase to clear the absolute_uri properties on ESources. svn path=/trunk/; revision=26160
* Implement. (migrate_contacts_hidden_fields): Implement.Hans Petter Jansson2004-05-211-0/+78
| | | | | | | | | | | 2004-05-20 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-migrate.c (add_to_notes): Implement. (migrate_contacts_hidden_fields): Implement. (migrate_contacts): Copy fields that are now hidden in the UI, to the notes field. svn path=/trunk/; revision=26024
* use the new e_book_new and e_book_open apis.Chris Toshok2004-05-201-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-19 Chris Toshok <toshok@ximian.com> * importers/evolution-vcard-importer.c (load_file_fn): use the new e_book_new and e_book_open apis. * importers/evolution-ldif-importer.c (load_file_fn): use the new e_book_new and e_book_open apis. * gui/widgets/eab-gui-util.c (eab_transfer_contacts): use the new e_book_new and e_book_async_open apis. * gui/contact-editor/e-contact-editor.c (cancel_load): addressbook_load_source_cancel -> addressbook_load_cancel. (source_selected): use the new e_book_new and addressbook_load. * gui/component/select-names/e-select-names.c (addressbook_model_set_source): use the new e_book_new and addressbook_load. * gui/component/select-names/e-select-names-manager.c (update_completion_books): use the new e_book_new and addressbook_load. * gui/component/addressbook.h: rename addressbook_load_source{_cancel} to addressbook_load{_cancel}, and remove the source arg. * gui/component/addressbook.c (addressbook_load): rename since we aren't passing a source anymore. (addressbook_load_cancel): same. (addressbook_load_default_book): use the new e_book_new_* apis. * gui/component/addressbook-view.c (delete_addressbook_cb): just use e_book_new, not e_book_load_source. (selector_tree_drag_data_received): switch to new e_book_new_*/e_book_open apis. (activate_source): same, and addressbook_load_source -> addressbook_load. * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): switch to new e_book_new_*/e_book_open apis. (migrate_contact_lists_for_local_folders): same. (migrate_company_phone_for_local_folders): same. * conduit/address-conduit.c (pre_sync): switch to new e_book_new_*/e_book_open apis. svn path=/trunk/; revision=25999
* set exception properly on failure.Not Zed2004-05-121-1/+1
| | | | | | | | | | | | 2004-05-11 Not Zed <NotZed@Ximian.com> * gui/component/addressbook-component.c (impl_upgradeFromVersion): set exception properly on failure. * gui/component/addressbook-migrate.c (addressbook_migrate): take a GError error return. Doesn't do anything with it ... but ... svn path=/trunk/; revision=25864
* oops, fixed a missing )Jeffrey Stedfast2004-04-281-2/+2
| | | | svn path=/trunk/; revision=25663
* We need a migration dialog if the revision <= 10. Fixes bug #57770.Jeffrey Stedfast2004-04-281-1/+1
| | | | | | | | | 2004-04-28 Jeffrey Stedfast <fejj@ximian.com> * gui/component/addressbook-migrate.c: We need a migration dialog if the revision <= 10. Fixes bug #57770. svn path=/trunk/; revision=25661
* Migrate pilot data. (migrate_pilot_data): Oops. Apparently the addressbookJeffrey Stedfast2004-04-281-41/+5
| | | | | | | | | | | | 2004-04-27 Jeffrey Stedfast <fejj@ximian.com> * gui/component/addressbook-migrate.c (addressbook_migrate): Migrate pilot data. (migrate_pilot_data): Oops. Apparently the addressbook didn't change the format of the changelog file from db3 to xml, so fix to simply copy the file over. svn path=/trunk/; revision=25639
* Migrate pilot data.Jeffrey Stedfast2004-04-281-1/+134
| | | | | | | | | 2004-04-27 Jeffrey Stedfast <fejj@ximian.com> * gui/component/addressbook-migrate.c (addressbook_migrate): Migrate pilot data. svn path=/trunk/; revision=25636
* store off the label as well as the folder name label, so we can reuse theChris Toshok2004-04-221-32/+177
| | | | | | | | | | | | | | | | | | | | | | 2004-04-21 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (setup_progress_dialog): store off the label as well as the folder name label, so we can reuse the dialog and update the label. Also, no longer take the string to display here. (dialog_set_label): new function. (migrate_contact_lists_for_local_folders): call dialog_set_folder_name here so we can see the folder being migrated. (migrate_company_phone_for_local_folders): new function for updating the way we store company phone numbers. (addressbook_migrate): split out the logic for setting up/tearing down the dialog from the individual migration points so we can reuse the same dialog and not have get destroyed/recreated for each stage. Also add a new migration point ( <= 1.5.8) for migrating the company phone numbers. svn path=/trunk/; revision=25567
* force the info label to update its contents here if the load wasChris Toshok2004-04-151-1/+4
| | | | | | | | | | | | | | | | | 2004-04-14 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-view.c (book_open_cb): force the info label to update its contents here if the load was successful. * gui/component/addressbook-migrate.c (migration_context_new): use e_book_get_addressbooks instead of getting source_list from the component. (migration_context_free): unref the source_list. * gui/component/addressbook-config.c (dialog_to_source): sync the dialog->source_list, since we have it. svn path=/trunk/; revision=25472
* bump version required to 8 for the contact list migration foo.Chris Toshok2004-04-101-1/+1
| | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (addressbook_migrate): bump version required to 8 for the contact list migration foo. svn path=/trunk/; revision=25401
* use the new e_destination_export_to_vcard_attribute call to build up theChris Toshok2004-04-101-21/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* don't init the dialog here (addressbook_migrate): init it hereJP Rosevear2004-02-251-3/+2
| | | | | | | | | | 2004-02-24 JP Rosevear <jpr@ximian.com> * gui/component/addressbook-migrate.c (migration_context_new): don't init the dialog here (addressbook_migrate): init it here svn path=/trunk/; revision=24853
* free up the list returned by e_book_get_contacts.Chris Toshok2004-02-131-0/+3
| | | | | | | | | 2004-02-12 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_contacts): free up the list returned by e_book_get_contacts. svn path=/trunk/; revision=24731
* Initialize the personal_source to NULLRodney Dawes2004-02-091-0/+1
| | | | | | | | | | | 2004-02-08 Rodney Dawes <dobey@ximian.com> * gui/component/addressbook-migrate.c (create_groups): Initialize the personal_source to NULL Fixes #54015 svn path=/trunk/; revision=24674
* don't bother using a function-wide variable to store the personal source.Chris Toshok2004-02-071-7/+5
| | | | | | | | | | | | 2004-02-06 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (create_groups): don't bother using a function-wide variable to store the personal source. also, use g_build_filename properly (because fejj is a whiner.) (migrate_local_folders): same (wrt fejj whining). svn path=/trunk/; revision=24667
* use the MigrationContext struct. (dialog_close): same.Chris Toshok2004-01-301-97/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-01-29 Chris Toshok <toshok@m198-139.dsl.rawbw.com> * gui/component/addressbook-migrate.c (setup_progress_dialog): use the MigrationContext struct. (dialog_close): same. (dialog_set_folder_name): same. (dialog_set_progress): same. (migrate_contacts): same, and pass it along to other functions. (migrate_contact_folder_to_source): same. (migrate_contact_folder): same. also, add the old path/uid to the folder_uid_map. (migrate_local_folders): same. (create_groups): use the MigrationContext struct. (migrate_completion_folders): if it's a file uri, look up the old path in our hash table for a uid to use. otherwise use the old behavior. (migration_context_new): new function, initialize the MigrationContext. (migration_context_free): free up everything. (addressbook_migrate): create the context, pass it to everything, destroy the context, shine toshok's shoes, etc. svn path=/trunk/; revision=24524
* set the relative_uri of a local source to be its uid.Chris Toshok2004-01-281-14/+11
| | | | | | | | | | | | | | | | | | | | | 2004-01-27 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (dialog_to_source): set the relative_uri of a local source to be its uid. * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): remove the dest_group arg, since we don't use it. (migrate_contact_folder): set the relative uri of the source to be its uid. (PERSONAL_RELATIVE_URI): "Personal" -> "system". (create_groups): don't actually make the directory hierarchy for the personal folder here. let e-d-s do that. Also remove OnThisComputer from the base uri. (migrate_local_folders): track change to migrate_contact_folder_to_source. svn path=/trunk/; revision=24478
* [ Should fix #53361 and other migration problems/crashes ] new function,Chris Toshok2004-01-271-29/+46
| | | | | | | | | | | | | | | | | | | | | 2004-01-26 Chris Toshok <toshok@ximian.com> [ Should fix #53361 and other migration problems/crashes ] * gui/component/addressbook-migrate.c (migrate_contact_folder_to_source): new function, takes most of migrate_contact_folder's contents. Fix some of the refcounting problems though, by not unreffing dest_group, and using e_group_add_source instead of e_source_set_group. (migrate_contact_folder): convert to calling migrate_contact_folder_to_source. (create_groups): add an out parameter for *personal_source. (migrate_local_folders): add personal_source as an arg, so we can get the source that create_groups created/found. Call migrate_contact_folder_to_source for the personal_source. (addressbook_migrate): pass personal_source to migrate_local_folders. svn path=/trunk/; revision=24457
* oops. (migrate_contact_folder): fix the unreffing.Chris Toshok2004-01-251-3/+9
| | | | | | | | | | 2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): oops. (migrate_contact_folder): fix the unreffing. svn path=/trunk/; revision=24408
* use _("Personal"), not "Personal".Chris Toshok2004-01-251-1/+1
| | | | | | | | | 2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): use _("Personal"), not "Personal". svn path=/trunk/; revision=24407
* i2004-01-24 Chris Toshok <toshok@ximian.com>Chris Toshok2004-01-251-7/+0
| | | | | | | * gui/component/addressbook-migrate.c (migrate_local_folders): don't create/add the source here. it's done in svn path=/trunk/; revision=24406
* use e_folder_map_local_folders. (find_addressbook_dirs): nuke.Chris Toshok2004-01-251-53/+5
| | | | | | | | | | 2004-01-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (migrate_local_folders): use e_folder_map_local_folders. (find_addressbook_dirs): nuke. svn path=/trunk/; revision=24404
* [ fixes bug #53184 ] handle the fact that the xml 1.4 spits out containsChris Toshok2004-01-231-0/+30
| | | | | | | | | | | 2004-01-22 Chris Toshok <toshok@ximian.com> [ fixes bug #53184 ] * gui/component/addressbook-migrate.c (migrate_contacts): handle the fact that the xml 1.4 spits out contains unescaped ';'s in the EMAIL attributes for mailing lists. svn path=/trunk/; revision=24374
* [ fixes bug #52944 ] do some massaging of contacts as we import them, toChris Toshok2004-01-231-0/+56
| | | | | | | | | | | 2004-01-22 Chris Toshok <toshok@ximian.com> [ fixes bug #52944 ] * gui/component/addressbook-migrate.c (migrate_contacts): do some massaging of contacts as we import them, to fix up the differences between 1.4 and 1.5 vcards. svn path=/trunk/; revision=24369
* new function.Chris Toshok2004-01-221-14/+154
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-21 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (addressbook_component_peek_gconf_client): new function. * gui/component/addressbook-component.h: add prototype for addressbook_component_peek_gconf_client. * gui/component/addressbook-migrate.c (migrate_completion_folders): more gross hacking. migrate the completion settings. (get_source_by_uri): function to search for an ESource given the entire uri. used for migrate_completion_folders. (migrate_ldap_servers): get_string_value -> get_string_child. same with get_integer_child. (get_string_child): rename to make it apparent it's a child, not a property. (get_integer_child): same. (addressbook_migrate): call migrate_completion_folders. svn path=/trunk/; revision=24357
* deal with the groups/sources already being there. Essentially make thisChris Toshok2004-01-211-29/+76
| | | | | | | | | | | | | | | | | | | 2004-01-20 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (create_groups): deal with the groups/sources already being there. Essentially make this function idempotent. (addressbook_migrate): unconditionally call create_groups now. move the version logic here from ipl_upgradeFromVersion, and include more versions in the set of those we upgrade from. * gui/component/addressbook-migrate.h: add major/minor/revision args to addressbook_migrate. * gui/component/addressbook-component.c (impl_upgradeFromVersion): remove the version logic from here. svn path=/trunk/; revision=24338
* remove spew. (migrate_contacts): same. (migrate_contact_folder): same.Chris Toshok2004-01-071-11/+2
| | | | | | | | | | | | 2004-01-06 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-migrate.c (check_for_conflict): remove spew. (migrate_contacts): same. (migrate_contact_folder): same. (migrate_local_folders): same, and plug a leak. svn path=/trunk/; revision=24080
* add addressbook-migrate.[ch].Chris Toshok2004-01-071-0/+559
2004-01-06 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add addressbook-migrate.[ch]. * gui/component/addressbook-component.c (addressbook_component_init): remove the source creation from here, it's in the migration code now. (impl_upgradeFromVersion): new function, call the addressbook-migration stuff. (addressbook_component_class_init): fill in epv->upgradeFromVersion, and call smime_component_init. (addressbook_component_peek_base_directory): new function. (addressbook_component_peek_source_list): same. * gui/component/addressbook-component.h: add prototypes for _peek_base_directory and _peek_source_list. * gui/component/addressbook-migrate.[ch]: add migration code to convert stuff from 1.x over to 1.5/2.0. svn path=/trunk/; revision=24079