aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
Commit message (Collapse)AuthorAgeFilesLines
* Set the source option menu sensitivity here.Hans Petter Jansson2004-07-032-0/+7
| | | | | | | | | 2004-07-02 Hans Petter Jansson <hpj@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (command_state_changed): Set the source option menu sensitivity here. svn path=/trunk/; revision=26569
* disconnect source/target_editable signal ids.Chris Toshok2004-06-303-3/+53
| | | | | | | | | | | | | | | | | | 2004-06-30 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_dispose): disconnect source/target_editable signal ids. (e_contact_editor_set_property): disconnect/connect editable signals. (writable_changed): new function - we need this since writable status is generally communicated asynchronously with the async interface. * gui/contact-editor/e-contact-editor.h (struct _EContactEditor): add source/target_editable_id slots. svn path=/trunk/; revision=26554
* Change to privlibexec_PROGRAMSRodney Dawes2004-06-302-1/+7
| | | | | | | | | | 2004-06-29 Rodney Dawes <dobey@novell.com> * tools/Makefile.am (bin_PROGRAMS): Change to privlibexec_PROGRAMS Fixes #60832 svn path=/trunk/; revision=26549
* fix shortcuts. #56746Not Zed2004-06-282-2/+7
| | | | | | | | | 2004-06-28 Not Zed <NotZed@Ximian.com> * gui/component/addressbook-component.c (impl__get_userCreatableItems): fix shortcuts. #56746 svn path=/trunk/; revision=26539
* Implement. (eab_contact_compare_name): Don't leak if only one of theHans Petter Jansson2004-06-263-2/+52
| | | | | | | | | | | | 2004-06-25 Hans Petter Jansson <hpj@ximian.com> * gui/meging/eab-contact-compare.[ch] (eab_contact_compare_file_as): Implement. (eab_contact_compare_name): Don't leak if only one of the strings is NULL. (use_common_book_cb): Include file_as in query. svn path=/trunk/; revision=26527
* Add a newline between street line and rest of extended address.Hans Petter Jansson2004-06-262-1/+10
| | | | | | | | | | 2004-06-25 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (fill_in_address_textview): Add a newline between street line and rest of extended address. (extract_address_textview): Omit the newline trailing the street line. svn path=/trunk/; revision=26526
* Add table. (append_to_address_label): Implement. (set_address_label):Hans Petter Jansson2004-06-252-2/+55
| | | | | | | | | | | 2004-06-24 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (address_labels): Add table. (append_to_address_label): Implement. (set_address_label): Implement. (extract_address_record): Set the address label fields. svn path=/trunk/; revision=26506
* Don't accept input that doesn't have at least a "BEGIN:VCARD" in it.Hans Petter Jansson2004-06-252-0/+12
| | | | | | | | | 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
* do not limit the text len to 2047 charactersRadek Doulik2004-06-242-9/+8
| | | | | | | | | | | | 2004-06-24 Radek Doulik <rodo@ximian.com> * gui/component/select-names/e-select-names-model.c (e_select_names_model_get_textification): do not limit the text len to 2047 characters See bug #60366 svn path=/trunk/; revision=26497
* Set window to be invisible initially.Hans Petter Jansson2004-06-243-1/+12
| | | | | | | | | | | | 2004-06-23 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Set window to be invisible initially. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set the type hint to "normal", and show the window after init. svn path=/trunk/; revision=26487
* use memcpy not strcpy to copy to memory buffer. Fixes a UMW. See #60532.Not Zed2004-06-242-1/+7
| | | | | | | | | | 2004-06-23 Not Zed <NotZed@Ximian.com> * gui/widgets/eab-gui-util.c (eab_send_contact_list_as_attachment): use memcpy not strcpy to copy to memory buffer. Fixes a UMW. See #60532. svn path=/trunk/; revision=26486
* Add an x-source-vcard target entry that includes the source book URI.Hans Petter Jansson2004-06-247-99/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move the search bar to the top and add a label _Search so that the entryRodney Dawes2004-06-232-47/+93
| | | | | | | | | | | | 2004-06-23 Rodney Dawes <dobey@novell.com> * gui/component/select-names/select-names.glade: Move the search bar to the top and add a label _Search so that the entry has a mnemonic for keyboard accessibility Fixes #52914 and #58448 svn path=/trunk/; revision=26476
* Name the labels.Hans Petter Jansson2004-06-233-51/+87
| | | | | | | | | | | | | | | | | 2004-06-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Name the labels. * gui/contact-editor/e-contact-editor.c (sensitize_email_record) (sensitize_phone_record) (sensitize_im_record) (sensitize_address_textview) (sensitize_address_field) (simple_field_map) (sensitize_simple_field): Make entries uneditable and labels insensitive, if field is disabled or read-only. svn path=/trunk/; revision=26464
* Fixes #59622.Hans Petter Jansson2004-06-233-0/+62
| | | | | | | | | | | | | | | | | | 2004-06-22 Hans Petter Jansson <hpj@ximian.com> Fixes #59622. * gui/widgets/e-minicard-view.c (e_minicard_view_init): Clear drag_list and canvas_drag_data_delete_id. (e_minicard_view_dispose): Clear drag_list. Disconnect drag_data_delete signal if connected. (e_minicard_view_drag_begin): Set up drag_data_delete signal if necessary. Clear old data before drag starts. (clear_drag_data): Implement. (e_minicard_view_drag_data_delete): Implement. (e_minicard_view_drag_data_get): Don't clear drag_list here. svn path=/trunk/; revision=26459
* [ should fix #60495, #58635 ] don't free the list of contacts - libebookChris Toshok2004-06-232-5/+7
| | | | | | | | | | | 2004-06-22 Chris Toshok <toshok@ximian.com> [ should fix #60495, #58635 ] * gui/widgets/eab-popup-control.c (name_only_query_cb): don't free the list of contacts - libebook still owns it. (query_cb): same. svn path=/trunk/; revision=26453
* don't set the changed flag unless we actually add something.Larry Ewing2004-06-232-3/+8
| | | | | | | | | 2004-06-22 Larry Ewing <lewing@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (add_email_cb): don't set the changed flag unless we actually add something. svn path=/trunk/; revision=26451
* revert this change.Chris Toshok2004-06-222-20/+1
| | | | svn path=/trunk/; revision=26450
* make completion respect your download limit for a given source. speeds upChris Toshok2004-06-222-1/+20
| | | | | | | | | | | | 2004-06-21 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): make completion respect your download limit for a given source. speeds up completion substantially (or rather, speeds up switching of queries) when the ldap server has tons of entries. svn path=/trunk/; revision=26449
* Make the scrolled windows around text views use GTK_SHADOW_IN, forFederico Mena Quintero2004-06-222-4/+10
| | | | | | | | | | 2004-06-21 Federico Mena Quintero <federico@ximian.com> * gui/contact-editor/contact-editor.glade: Make the scrolled windows around text views use GTK_SHADOW_IN, for consistency with the GtkEntries. svn path=/trunk/; revision=26446
* remove the auth-entry-notebook in the edit dialog, and rename the authChris Toshok2004-06-225-258/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-21 Chris Toshok <toshok@ximian.com> * gui/component/ldap-config.glade: remove the auth-entry-notebook in the edit dialog, and rename the auth entry to... auth-entry. * gui/component/addressbook-config.c (source_to_dialog_new): nuke - it's identical to source_to_dialog. (dialog_to_source): we only have one auth entry now. fill it in properly. (source_to_dialog): fill in the auth entry properly based on the auth type, and remove auth_entry_notebook references. (auth_optionmenu_activated): remove auth_entry_notebook references. (setup_general_tab): same, and use auth-entry instead of email-entry/dn-entry. (general_tab_check): use auth_principle instead of email/binddn. (add_folder_modify): same. (addressbook_add_server_dialog): put setup_connecting_tab inside the ifdef HAVE_LDAP, and call source_to_dialog instead of source_to_dialog_new. (addressbook_config_edit_source): always call setup_general_tab. * gui/component/addressbook-config.h (AddressbookLDAPScopeType): reorder to match order in option menu (we should really remove BASE altogether.. it's useless for searching.) * gui/component/addressbook-view.c (update_command_state): macroize this, annoying seeing the same 4 lines repeated 15 times. svn path=/trunk/; revision=26445
* Make sure the UIDs match. Should fix bug #59725.Jeffrey Stedfast2004-06-212-2/+11
| | | | | | | | | 2004-06-21 Jeffrey Stedfast <fejj@novell.com> * conduit/address-conduit.c (local_record_from_uid): Make sure the UIDs match. Should fix bug #59725. svn path=/trunk/; revision=26438
* set auth-domain property on groupwise sources, so that newly createdSivaiah Nallagatla2004-06-192-0/+7
| | | | | | | | | | 2004-06-19 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook-config.c (dialog_to_source) : set auth-domain property on groupwise sources, so that newly created contact groups can share remembered passwords svn path=/trunk/; revision=26434
* Always set the File_As attribute in case the pilot attrib changed. FixesJeffrey Stedfast2004-06-192-4/+7
| | | | | | | | | | 2004-06-18 Jeffrey Stedfast <fejj@novell.com> * conduit/address-conduit.c (ecard_from_remote_record): Always set the File_As attribute in case the pilot attrib changed. Fixes bug #59723. svn path=/trunk/; revision=26426
* only go through the process of creating/loading the EBook if the model hasChris Toshok2004-06-192-3/+11
| | | | | | | | | | 2004-06-18 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-model.c (e_select_names_model_load_contacts): only go through the process of creating/loading the EBook if the model has some data in it. svn path=/trunk/; revision=26424
* [ fixes bug #59376 ]Chris Toshok2004-06-192-1/+11
| | | | | | | | | | | | 2004-06-18 Chris Toshok <toshok@ximian.com> [ fixes bug #59376 ] * gui/component/addressbook-view.c (fill_popup_menu_callback): make this work with absolute uris in sources. Thanks to Sushma Rai for the initial patch to fix this. svn path=/trunk/; revision=26421
* [ fixes bug #58696 ]Chris Toshok2004-06-182-1/+10
| | | | | | | | | | | | 2004-06-17 Chris Toshok <toshok@ximian.com> [ fixes bug #58696 ] * gui/widgets/eab-gui-util.c (eab_transfer_contacts): use addressbook_load instead of e_book_async_open, so we do auth stuff for the destination book. svn path=/trunk/; revision=26404
* EBookFieldsCallback -> EBookEListCallback.Chris Toshok2004-06-182-3/+9
| | | | | | | | | | 2004-06-17 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_new): EBookFieldsCallback -> EBookEListCallback. (e_contact_editor_set_property): same. svn path=/trunk/; revision=26403
* EBookContactsCallback -> EBookListCallback. (eab_nickname_query): same.Chris Toshok2004-06-1820-23/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* update the model column numbers as new fields like E_CONTACT_EMAIL_4 areSivaiah Nallagatla2004-06-172-31/+38
| | | | | | | | | | | 2004-06-17 Sivaiah Nallagatla <snallagatla@novell.com> * gui/widgets/e-addressbook-view.etspec : update the model column numbers as new fields like E_CONTACT_EMAIL_4 are added to EContact Fixes #59621 svn path=/trunk/; revision=26375
* set the source selector to be able to toggle the current selection. FixNot Zed2004-06-162-0/+8
| | | | | | | | | | 2004-06-16 Not Zed <NotZed@Ximian.com> * gui/component/autocompletion-config.c (autocompletion_config_control_new): set the source selector to be able to toggle the current selection. Fix for #55614. svn path=/trunk/; revision=26362
* compare old and new full names and if it is different set the new the nameSivaiah Nallagatla2004-06-162-1/+12
| | | | | | | | | | | | 2004-06-16 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (full_name_clicked) : compare old and new full names and if it is different set the new the name using gtk_entry_set_text instead of set_entry_text as this function blocks siganls hence preventing ok button being enabled svn path=/trunk/; revision=26359
* set things to HOME, since we don't offer TYPE=OTHER IM attributes throughChris Toshok2004-06-153-17/+31
| | | | | | | | | | | | | | | | | 2004-06-14 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (extract_im_record): set things to HOME, since we don't offer TYPE=OTHER IM attributes through the EContact api, and one choice is just as good as another if we aren't displaying it anyway. * gui/widgets/eab-contact-display.c (render_contact): move the IM stuff out of home/work, since we don't allow people to edit location for them anymore. Also, change the IM accounts we look up to "HOME", since that's what we hardcode them to in the contact editor. svn path=/trunk/; revision=26340
* handle LIST field types. (ldif_fields[]): Add a list type. E_CONTACT_EMAILNot Zed2004-06-142-1/+19
| | | | | | | | | | | 2004-06-14 Not Zed <NotZed@Ximian.com> * importers/evolution-ldif-importer.c (parseLine): handle LIST field types. (ldif_fields[]): Add a list type. E_CONTACT_EMAIL is a list field type. See #58855. svn path=/trunk/; revision=26333
* new function. do the get_view in an idle handler.Chris Toshok2004-06-093-10/+44
| | | | | | | | | | | | | 2004-06-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-model.c (get_view_idle): new function. do the get_view in an idle handler. (eab_model_set_property): don't call get_view directly from any setter block. instead just add the idle handler (if it's not already added.) This keeps us from duplicating queries when both "book" and "query" are set using the same g_object_set. svn path=/trunk/; revision=26264
* Fixes #58921.Hans Petter Jansson2004-06-082-0/+8
| | | | | | | | | | | 2004-06-07 Hans Petter Jansson <hpj@ximian.com> Fixes #58921. * gui/contact-editor/e-contact-editor.c (extract_address_record): Also check if the po box field is non-empty. svn path=/trunk/; revision=26246
* disable editing of cells in the contact table.Jon Oberheide2004-06-082-1/+6
| | | | | | | | | 2004-06-07 Jon Oberheide <jon@focalhost.com> * gui/contact-list-editor/e-contact-list-model.c: disable editing of cells in the contact table. svn path=/trunk/; revision=26245
* Fixes #57795.Hans Petter Jansson2004-06-082-0/+32
| | | | | | | | | | | 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
* Like the previous build dep fix, but this works.Hans Petter2004-06-082-3/+8
| | | | svn path=/trunk/; revision=26242
* Fix order of dependencies.Hans Petter Jansson2004-06-082-1/+5
| | | | | | | | 2004-06-07 Hans Petter Jansson <hpj@ximian.com> * gui/Makefile.am (SUBDIRS): Fix order of dependencies. svn path=/trunk/; revision=26241
* Added few headers needed for select names dialog.H P Nadig2004-06-084-0/+127
| | | | | | | | | | | | | | | | | | | 2004-06-07 H P Nadig <hpnadig@pacific.net.in> * gui/contact-list-editor/e-contact-list-editor.h: Added few headers needed for select names dialog. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_init): Added select button handler. (select_cb): The callback function for Select Button. (setup_corba): To setup corba for select names dialog. (select_names_ok_cb): Handle Select names dialog entries. (add_to_model): Adds cards to the model. * gui/contact-list-editor/contact-list-editor.glade: New 'Select' Button. Tooltips added for buttons in button Box. svn path=/trunk/; revision=26240
* fix the name of "stock_save-as" everywhereDan Winship2004-06-072-1/+5
| | | | svn path=/trunk/; revision=26237
* remove bonobo menus and cruft add ok/cancel buttons.Larry Ewing2004-06-054-179/+83
| | | | | | | | | | | | | | | 2004-06-04 Larry Ewing <lewing@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c: remove bonobo menus and cruft add ok/cancel buttons. * gui/contact-list-editor/e-contact-list-editor.h: add buttons for ok/cancel. * gui/contact-list-editor/contact-list-editor.glade: add fields for ok/cancel reparent to GtkDialog, other minor adjustments. svn path=/trunk/; revision=26224
* Fixes #55945JP Rosevear2004-06-055-10/+20
| | | | | | | | | | | | | | 2004-06-04 JP Rosevear <jpr@novell.com> Fixes #55945 * importers/*.server.in.in: ditto * importers/evolution-ldif-importer.c: fix OAFIIDs * importers/evolution-vcard-importer.c: ditto svn path=/trunk/; revision=26223
* only resolve destinations against persons, not contact lists.Chris Toshok2004-06-052-18/+36
| | | | | | | | | | 2004-06-04 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-model.c (name_and_email_simple_query_cb): only resolve destinations against persons, not contact lists. svn path=/trunk/; revision=26219
* Fixes #53643 and #26903.Hans Petter Jansson2004-06-047-47/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-03 Hans Petter Jansson <hpj@ximian.com> Fixes #53643 and #26903. * gui/search/addresstypes.xml: category -> category_list * gui/search/e-addressbook-search-dialog.c (get_widget): Get filter rule from parent view. (eab_search_dialog_set_property): Implement. (eab_search_dialog_get_property): Impleent. (eab_search_dialog_class_init): Set up property methods. (get_query): Get filter rule from parent view. (eab_search_dialog_init): Don't get the filter widget here, wait until parent view property is set. (eab_search_dialog_new): Don't poke the parent view in, set it as a property instead. (eab_search_dialog_dispose): No longer needs to unref rule. * gui/search/e-addressbook-search-dialog.c: EABSearchDialog no longer needs to keep rule internally. * gui/widgets/Makefile.am: Set SEARCH_RULE_DIR define. * gui/widgets/e-addressbook-view.c (eab_view_new): Set up filter rule and context. (eab_view_peek_search_context): Implement. (eab_view_peek_search_rule): Implement. * gui/widgets/e-addressbook-view.h: Keep track of filter rule and context. Add protos for added API. svn path=/trunk/; revision=26207
* found the bug it fixed, yay.Jeffrey Stedfast2004-06-041-1/+1
| | | | svn path=/trunk/; revision=26204
* Protect against a NULL uid. Fixes bug #57619. (ecard_from_remote_record):Jeffrey Stedfast2004-06-042-6/+14
| | | | | | | | | | | | | 2004-06-03 Jeffrey Stedfast <fejj@novell.com> * conduit/address-conduit.c (set_status_cleared): Protect against a NULL uid. Fixes bug #57619. (ecard_from_remote_record): Set the full_name of the contact so that we can use that as the FILE_AS rather than the company name, which sucked. Fixes a bug I may or may not have reported months ago. svn path=/trunk/; revision=26202
* Protect against a NULL uid. Fixes bug #57619.Jeffrey Stedfast2004-06-042-2/+10
| | | | | | | | | 2004-06-03 Jeffrey Stedfast <fejj@novell.com> * conduit/address-conduit.c (set_status_cleared): Protect against a NULL uid. Fixes bug #57619. svn path=/trunk/; revision=26175
* Add missing negation that caused a crash.Hans Petter Jansson2004-06-032-1/+7
| | | | | | | | | | 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-032-52/+23
| | | | | | | | | | 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
* Don't need these two functions any more (source_to_dialog,Rodney Dawes2004-06-023-1705/+1171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-02 Rodney Dawes <dobey@novell.com> * gui/component/addressbook-config.c (focus_help, add_focus_handler): Don't need these two functions any more (source_to_dialog, auth_optionmenu_func): Don't try to change the notebook page or set the widget sensitive, for a notebook that doesn't exist any more (reparent_to_vbox): Don't need this function any more, as the widgets are all contained in the same dialog in the glade now (setup_general_tab, setup_connecting_tab, setup_searching_tab): We don't need to do the focus-based "tooltip" stuff any more We just use tooltips on the widgets now (ssl_optionmenu_selected, add_ssl_activate_cb): We don't need the ssl_optionmenu_selected callback any more, as the tooltips are just set on the necessary widgets now (query_for_supported_bases): Set the border widths on the dialog's vbox and action_area to be compliant with the HIG (addressbook_add_server_dialog): Unref the GConfClient object (addressbook_config_edit_source): Create the source_list so that we can actually save the changes that we make here Create the GladeXML with only the widget subtree that we need to use here, to avoid popping up other visible dialogs Set the border widths on the dialog's vbox and action_area to be compliant with the HIG We don't need to reparent widgets to vboxes any more, as the widgets are now part of the dialog's widget tree If we are without LDAP or not in LDAP mode, then hide the notebook borders, and change the border size of its child to appear as though we are a normal non-LDAP dialog We don't need to set the type hint on the window as we are no a real GtkDialog * gui/component/ldap-config.glade: Update the properties dialogs to be compliant with the HIG layout Get rid of some of the extra windows and put their children in the appropriate places in the properties dialog Make the properties dialog be a real GtkDialog Fixes #41141 svn path=/trunk/; revision=26153
* Add in a source option menu to the dialog and make is sensitive only onLarry Ewing2004-06-024-32/+206
| | | | | | | | | | | | | | | 2004-06-01 Larry Ewing <lewing@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c: Add in a source option menu to the dialog and make is sensitive only on new lists. * gui/contact-list-editor/e-contact-list-editor.h: add load_book fields for async book loading. * gui/contact-list-editor/contact-list-editor.glade: add the new source selector in a table reorder some of the other widgets. svn path=/trunk/; revision=26150
* render all email addresses, not just the first 3.Chris Toshok2004-05-292-26/+24
| | | | | | | | | | 2004-05-28 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-contact-display.c (render_contact): render all email addresses, not just the first 3. (eab_contact_display_class_init): use a C comment, not C++. svn path=/trunk/; revision=26130
* call e_select_names_model_load_contacts after settingChris Toshok2004-05-296-8/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-28 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-bonobo.c (entry_set_property_fn): call e_select_names_model_load_contacts after setting text/addresses/destinations. * gui/component/select-names/e-select-names-model.c (name_and_email_simple_query_cb): new function, ripped from the 1.4 e-destination stuff. (book_opened): new function, fire off eab_name_and_email_query for each item in our model (that doesn't represent a contact already). (e_select_names_model_load_contacts): new function, open the default addressbook (yeah yeah, i know we should open something different/more.) (e_select_names_cancel_contacts_load): new (unimplemented, and how do we implement it?) function. * gui/component/select-names/e-select-names-model.h: add prototypes for e_select_names_model_load_contacts and e_select_names_cancel_contacts_load. * gui/component/select-names/e-select-names.c (set_book): call get_query_string and set the book and query in a single call to g_object_set, just because we can/should. (update_query): reimplement in terms of get_query_string. (get_query_string): new function, build up the query string. * gui/component/select-names/Makefile.am (INCLUDES): add $(top_srcdir)/addressbook/util to INCLUDES. svn path=/trunk/; revision=26129
* Add back office, spouse, web log fields. Allow for 8 phone numbers, ofHans Petter Jansson2004-05-293-315/+634
| | | | | | | | | | | | | | | | | | | | | | 2004-05-28 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Add back office, spouse, web log fields. Allow for 8 phone numbers, of which 4 can be hidden. * gui/contact-editor/e-contact-editor.c (phones_default): Add more defaults. (im_service_default): Add more defaults. (expand_phone): Implement. (fill_in_phone_record): Expand if we have any records past 4. (init_im_record_location) (fill_in_im_record) (extract_im_record) (sensitize_im_record): Remove location. (simple_field_map): Add spouse, office, web log. (expand_phone_toggle): Implement. (e_contact_editor_init): Hook up expander button. svn path=/trunk/; revision=26128
* added missing #ifdef HAVE_LDAPChristophe Fergeau2004-05-292-0/+6
| | | | | | | | 2004-05-28 Christophe Fergeau <teuf@gnome.org> * gui/component/addressbook-config.c: added missing #ifdef HAVE_LDAP svn path=/trunk/; revision=26126
* update spell errorsRadek Doulik2004-05-262-0/+10
| | | | | | | | | | 2004-05-26 Radek Doulik <rodo@ximian.com> * htmltext.c (html_text_op_copy_helper): update spell errors Fixes #50829 svn path=/trunk/; revision=26103
* reenable this function, in a slightly broken manner. we don't haveChris Toshok2004-05-262-11/+27
| | | | | | | | | | | | | | 2004-05-25 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_activate_obj): reenable this function, in a slightly broken manner. we don't have e_contact_get_book anymore (well, we never had it really... but we lost e_card_get_book). load the system addressbook and supply that to the editors. shouldn't be a problem, since it's a read-only editor anyway. svn path=/trunk/; revision=26082
* [ fixes #58654 ]Chris Toshok2004-05-262-25/+30
| | | | | | | | | | | | | | 2004-05-25 Chris Toshok <toshok@ximian.com> [ fixes #58654 ] * gui/component/select-names/e-select-names.c (update_query): build up the query using e_book_query calls so we're insulated from field name changes. also, conjoin if we have more than 1 query element, not more than 2 (i *hope* this was an off by 1 error...) svn path=/trunk/; revision=26081
* read the "auth-domain" property from e-source and use it as the componentSivaiah Nallagatla2004-05-252-4/+19
| | | | | | | | | | | 2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook.c (load_source_auth_cb ) (load_source_auth_cb ) : read the "auth-domain" property from e-source and use it as the component name for e_password_* calls if it exists svn path=/trunk/; revision=26078
* Generate the addressbook-errors.xml.h file and install the xml file andJeffrey Stedfast2004-05-259-229/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-25 Jeffrey Stedfast <fejj@novell.com> * Makefile.am: Generate the addressbook-errors.xml.h file and install the xml file and all that jazz. * addressbook-errors.xml: New error xml file. * gui/widgets/e-addressbook-view.c (backend_died): Use e_error_run(). * gui/widgets/eab-gui-util.c (eab_error_dialog): Use e_error_run(). (eab_load_error_dialog): Same. (eab_search_result_dialog): Same. (eab_prompt_save_dialog): Same. (save_it): Same. * gui/contact-editor/e-contact-editor.c (categories_clicked): Use e_error_run(). (e_contact_editor_is_valid): Same. (save_contact): Same. * gui/component/addressbook-view.c (delete_addressbook_cb): Use e_error_run(). * gui/component/addressbook-config.c (addressbook_ldap_init): Use e_error_run(). (addressbook_ldap_auth): Same. (addressbook_root_dse_query): Same. (do_ldap_root_dse_query): Same. (do_schema_query): Same. svn path=/trunk/; revision=26077
* add tools back to the build.Chris Toshok2004-05-252-3/+5
| | | | | | | | 2004-05-24 Chris Toshok <toshok@ximian.com> * Makefile.am (SUBDIRS): add tools back to the build. svn path=/trunk/; revision=26066
* fix this for current build foo.Chris Toshok2004-05-255-410/+422
| | | | | | | | | | | | 2004-05-24 Chris Toshok <toshok@ximian.com> * tools/Makefile.am: fix this for current build foo. * tools/evolution-addressbook-export-list-folders.c, * tools/evolution-addressbook-export-list-cards.c, * tools/evolution-addressbook-export.c: revive this. svn path=/trunk/; revision=26065
* [ fixes bug #32194 ]Chris Toshok2004-05-252-0/+47
| | | | | | | | | | | 2004-05-24 Chris Toshok <toshok@ximian.com> [ fixes bug #32194 ] * importers/evolution-vcard-importer.c (process_item_fn): make sure all ADR attributes have HOME/WORK/OTHER. svn path=/trunk/; revision=26064
* [ fixes bug #40013 ]Chris Toshok2004-05-252-0/+60
| | | | | | | | | | | | | 2004-05-24 Chris Toshok <toshok@ximian.com> [ fixes bug #40013 ] * importers/evolution-vcard-importer.c (process_item_fn): for TEL attribute that don't specify a location (HOME/WORK/OTHER), default to "OTHER". For TEL attributes that *only* specify a location, default to "VOICE". svn path=/trunk/; revision=26063
* Fixes #58516.H P Nadig2004-05-222-1/+8
| | | | | | | | | | | 2004-05-21 H P Nadig <hpnadig@pacific.net.in> Fixes #58516. * gui/contact-editor/contact-editor.glade: 'Job Title' is now called 'Title'. svn path=/trunk/; revision=26036
* Add helper func. (process_item_fn): Add undisplayed fields to notes.Hans Petter Jansson2004-05-213-0/+70
| | | | | | | | | | | | | | 2004-05-20 Hans Petter Jansson <hpj@ximian.com> * importers/evolution-ldif-importer.c (add_to_notes): Add helper func. (process_item_fn): Add undisplayed fields to notes. * importers/evolution-vcard-importer.c (add_to_notes): Add helper func. (process_item_fn): Add undisplayed fields to notes. svn path=/trunk/; revision=26025
* Implement. (migrate_contacts_hidden_fields): Implement.Hans Petter Jansson2004-05-212-0/+85
| | | | | | | | | | | 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 ebook api here. missed this one in my earlier commit.Chris Toshok2004-05-212-1/+8
| | | | | | | | | 2004-05-20 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (impl_requestCreateItem): use the new ebook api here. missed this one in my earlier commit. svn path=/trunk/; revision=26018
* finish pages printing by gnome_print_job_close call before showing previewRadek Doulik2004-05-212-0/+8
| | | | | | | | | | | | 2004-05-20 Radek Doulik <rodo@ximian.com> * printing/e-contact-print.c (complete_sequence): finish pages printing by gnome_print_job_close call before showing preview or calling gnome_print_job_print See #54482 svn path=/trunk/; revision=26015
* added call to begin page, ref printable and sink it to avoid finalizing ofRadek Doulik2004-05-212-2/+16
| | | | | | | | | | | | | | 2004-05-20 Radek Doulik <rodo@ximian.com> * gui/widgets/e-addressbook-view.c (eab_view_print_preview): added call to begin page, ref printable and sink it to avoid finalizing of floating object (eab_view_print): ref and sink printable to avoid finalizing of floating object Fixes #46658 svn path=/trunk/; revision=26012
* use the new e_book_new and e_book_open apis.Chris Toshok2004-05-2012-45/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Check if individual email fields are supported.Hans Petter Jansson2004-05-202-0/+9
| | | | | | | | | 2004-05-19 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (sensitize_email): Check if individual email fields are supported. svn path=/trunk/; revision=25998
* Remove debug output. (real_save_contact): Separate out actual save logicHans Petter Jansson2004-05-203-14/+113
| | | | | | | | | | | | | | | | | | | | | | 2004-05-19 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (extract_simple_field): Remove debug output. (real_save_contact): Separate out actual save logic from save_contact (). (save_contact): If the user wants to move the contact from one address book to another, but the source is read-only, as to save a copy instead. (e_contact_editor_is_valid): The dialog should be an error dialog. (app_delete_event_cb): If the target book is read-only, prompt to discard. If the user wants to move but cannot, prompt to save a copy. Also validate. * gui/contact-editor/eab-editor.c (eab_editor_prompt_to_save_changes): Remove comment about invalid data dialog, it's not handled here anymore. svn path=/trunk/; revision=25996
* Fixes a number of bugs, adds some unimplemented functionality, and makesHans Petter Jansson2004-05-203-913/+1026
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-19 Hans Petter Jansson <hpj@ximian.com> Fixes a number of bugs, adds some unimplemented functionality, and makes code more structured. * gui/contact-editor/e-contact-editor.h: Eliminate company, fullname_editable, address_editable fields from EContactEditor. * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Removed. (set_editable): Removed. (fill_in_info): Removed. (extract_field): Removed. (extract_info): Removed. (set_fields): Removed. (command_state_changed): Removed. (widget_changed): Removed. (enable_widget): Removed. (nonempty): Invert and rename to STRING_IS_EMPTY(). (STRING_MAKE_NON_NULL): Impl. (is_field_supported): Implement. (file_as_get_style): Eliminate editor->company. (file_as_set_style): Ditto. Also don't set empty fields in combo. (update_file_as_combo): Implement. (sensitize_ok): Implement. (object_changed): Implement. (image_chooser_changed): Don't call widget_changed() from here. (set_option_menu_history): Implement. (init_email_record_location): Hook up signals after init. (init_phone_record_type): Ditto. (init_im_record_location): Ditto. (init_im_record_service): Ditto. (init_address_textview): widget_changed -> object_changed (init_address_field): Ditto. (fill_in_email_record): Use set_option_menu_history(), blocking signals. (fill_in_im_record): Ditto. (fill_in_address_field): Use set_entry_text(), blocking signals. (alloc_ui_slot): nonempty -> STRING_IS_EMPTY (extract_email): Ditto. (fill_in_phone_record): Ditto. (extract_im): Ditto. (extract_address_record): Ditto. (sensitize_email_record): Implement. (sensitize_email): Implement. (sensitize_phone_types): Implement. (sensitize_phone_record): Impleent. (sensitize_phone): Implement. (sensitize_im_record): Implement. (sensitize_im): Implement. (sensitize_address_textview): Implement. (sensitize_address_field): Implement. (sensitize_address_record): Implement. (sensitize_address): Implement. (simple_field_map): Add all simple fields/widgets to a table with attributes saying how to handle sensitivity and data transfer. (init_simple_field): Implement. (fill_in_simple_field): Implement. (extract_simple_field): Implement. (sensitize_simple_field): Implement. (init_simple): Implement. (fill_in_simple): Implement. (extract_simple): Implement. (sensitize_simple): Implement. (fill_in_all): Implement. (extract_all): Implement. (sensitize_all): Implement. (set_entry_changed_signal_field): Removed. (set_urlentry_changed_signal_field): Removed. (set_entry_activate_signal_field): Removed. (new_target_cb): Don't signal changes. (set_entry_activate_signals): Removed. (set_entry_changed_signals): Removed. (full_name_clicked): Honor field_supported and target_editable. Use set_entry_text() and block changed signals. (image_selected_cb): widget_changed -> object_changed. Don't clear pointer to file_selector. (image_cleared_cb): Ditto. (contact_moved_cb): command_state_chaned() -> sensitize_all(). (contact_added_cb): Ditto. (supported_fields_cb): Ditto. (contact_modified_cb): Ditto. (save_contact): extract_info() -> extract_all(). (e_contact_editor_is_valid): Be more verbose. Make sure File As is non-empty. (e_contact_editor_init): Call init_all() in place of lots of setup calls. Remove reference to editor->company. (e_contact_editor_dispose): Remove reference to editor->company. (command_state_changed): Removed. (e_contact_editor_set_property): Axe unneeded complexity, now that we have sensitize_all() and sensitize_ok(). (set_fields): Removed. (fill_in_field): Removed. (field_mapping): Removed. (disable_widget_foreach): Removed. (widget_field_mapping): Removed. (num_widget_field_mappings): Removed. (enable_widget): Removed. svn path=/trunk/; revision=25988
* make exchange accounts insensitve.Larry Ewing2004-05-191-1/+4
| | | | | | | | | 2004-05-19 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-config.c (source_group_menu_add_groups): make exchange accounts insensitve. svn path=/trunk/; revision=25976
* Add menu_label and menu_accelerator.William Jon McCann2004-05-192-0/+7
| | | | | | | | | 2004-05-05 William Jon McCann <mccann@jhu.edu> * gui/component/GNOME_Evolution_Addressbook.server.in.in: Add menu_label and menu_accelerator. svn path=/trunk/; revision=25970
* pass 0 to eab_send_contact. (file_send_to_cb): same.Chris Toshok2004-05-192-2/+8
| | | | | | | | | | 2004-05-18 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (file_send_as_cb): pass 0 to eab_send_contact. (file_send_to_cb): same. svn path=/trunk/; revision=25964
* split out the DISPOSITION_AS_TO stuff here, and make it take a GList ofChris Toshok2004-05-194-171/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-18 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-gui-util.c (eab_send_to_contact_and_email_num_list): split out the DISPOSITION_AS_TO stuff here, and make it take a GList of ContactAndEmailNum, so we can set it for the single contact case. (eab_send_contact_list_as_attachment): split out the DISPOSITION_AS_ATTACHMENT stuff here. (eab_send_contact_list): call one or the other of the above, munging the list if disposition is set to TO. (eab_send_contact): call eab_send_to_contact_and_email_num_list directly with the supplied email_num, instead of calling eab_send_contact_list. * gui/widgets/eab-gui-util.h (eab_send_contact) add "email_num" arg, so we can specify the email address we want to be selected. * gui/widgets/eab-contact-display.c (on_link_clicked): add (ifdefed out at the moment) code to handle mailto: urls internally, instead of farming them out to gnome_url_show. (render_contact): same. svn path=/trunk/; revision=25963
* Fixes #57940Jerome Lacoste2004-05-192-3/+10
| | | | | | | | | | | 2004-05-18 Jerome Lacoste <jerome@coffeebreaks.org> Fixes #57940 * gui/widgets/e-addressbook-view.c: "Save as VCard" -> "Save as VCard..." svn path=/trunk/; revision=25962
* Hook up image button. (e_contact_editor_dispose): Dispose of file selectorHans Petter Jansson2004-05-184-9/+122
| | | | | | | | | | | | | | | | | 2004-05-17 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Hook up image button. (e_contact_editor_dispose): Dispose of file selector if it's around. (image_clicked): Implement. (file_selector_deleted): Implement. (image_cleared_cb): Implement. (image_selected_cb): Implement. * gui/contact-editor/contact-editor.glade: Make the contact image be a button that lets you change or discard the image. svn path=/trunk/; revision=25943
* Change E_PIXMAP size args over to E_ICON_SIZE_* values.Jeffrey Stedfast2004-05-182-9/+12
| | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * gui/contact-list-editor/e-contact-list-editor.c: Change E_PIXMAP size args over to E_ICON_SIZE_* values. svn path=/trunk/; revision=25939
* Change E_PIXMAP size args over to E_ICON_SIZE_* values.Jeffrey Stedfast2004-05-182-10/+13
| | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * gui/component/addressbook-view.c: Change E_PIXMAP size args over to E_ICON_SIZE_* values. svn path=/trunk/; revision=25938
* Use an E_ICON_SIZE enum value for the icon_size argument to get_icon.Jeffrey Stedfast2004-05-187-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-17 Jeffrey Stedfast <fejj@novell.com> * gui/widgets/e-minicard.c (e_minicard_init): Use an E_ICON_SIZE enum value for the icon_size argument to get_icon. * gui/widgets/eab-gui-util.c (eab_create_image_chooser_widget): Use E_ICON_SIZE_DIALOG as the icon_size argument to get_icon_filename. * gui/widgets/eab-contact-display.c (on_url_requested): Use an E_ICON_SIZE enum as the icon_size argument to get_icon_filename. * gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu): Use E_ICON_SIZE_MENU here. * gui/component/select-names/e-select-names-popup.c (populate_popup_contact): Use E_ICON_SIZE_MENU here instead of 16. * gui/component/addressbook-view.c (set_status_message): Use the E_ICON_SIZE corresponding to 16x16 pixels. svn path=/trunk/; revision=25933
* Add PO box entries.Hans Petter Jansson2004-05-133-8/+155
| | | | | | | | | | | | | 2004-05-12 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Add PO box entries. * gui/contact-editor/e-contact-editor.c (init_address_record): Hook up PO box entry. (fill_in_address_record): Ditto. (extract_address_record): Ditto. svn path=/trunk/; revision=25884
* Fixes bug #55208.S N Tejasvi2004-05-132-2/+51
| | | | | | | | | | | | 2004-04-18 S N Tejasvi <tejasvi_sn@gawab.com> Fixes bug #55208. * gui/contact-editor/e-contact-editor.c (save_contact): Do e_contact_editor_is_valid check to check the birth date and anniversary date format when user wants to save and warn him. svn path=/trunk/; revision=25883
* set exception properly on failure.Not Zed2004-05-124-4/+26
| | | | | | | | | | | | 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
* Remove the addressbook controlDan Winship2004-05-124-169/+22
| | | | | | | | | | | | | * gui/component/GNOME_Evolution_Addressbook.server.in.in: Remove the addressbook control * gui/component/component-factory.c (factory): Remove support for the addressbook control * gui/component/addressbook-view.c: Remove all the property-bag stuff. svn path=/trunk/; revision=25856
* see if the selected group is groupwise one and setup the relative uri andSivaiah Nallagatla2004-05-112-1/+27
| | | | | | | | | | 2004-05-11 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook-config.c (dialog_to_source) : see if the selected group is groupwise one and setup the relative uri and other properties into e-source svn path=/trunk/; revision=25852
* Fixes bug #44196 addressbook table view uses ASCII sortSuresh Chandrasekharan2004-05-113-2/+26
| | | | | | | | 2004-05-10 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Fixes bug #44196 addressbook table view uses ASCII sort svn path=/trunk/; revision=25851
* Fix parts of #53466.Enver ALTIN2004-05-102-1/+6
| | | | | | | | | 2004-05-08 Enver ALTIN <enver.altin@frontsite.com.tr> * gui/component/GNOME_Evolution_Addressbook.server.in.in: Fix parts of #53466. svn path=/trunk/; revision=25830
* Implement. (init_address_record): Init textview.Hans Petter Jansson2004-05-053-277/+270
| | | | | | | | | | | | | | | | | 2004-05-05 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (init_address_textview): Implement. (init_address_record): Init textview. (fill_in_address_textview): Implement. (fill_in_address_record): Fill in textview. (extract_address_textview): Implement. (extract_address_record): Extract from textview. * gui/contact-editor/contact-editor.glade: Combine address-[12] fields into one multiline text view, as per Anna's new design. svn path=/trunk/; revision=25800
* fixup the dialog initialization.Larry Ewing2004-05-052-2/+9
| | | | | | | | | 2004-05-04 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-config.c (query_for_supported_bases): fixup the dialog initialization. svn path=/trunk/; revision=25797
* Use defaults from Anna. (im_service_default): Ditto. (email_default):Hans Petter Jansson2004-05-052-14/+37
| | | | | | | | | | | | | | | | | | | | | 2004-05-04 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (phones_default): Use defaults from Anna. (im_service_default): Ditto. (email_default): Ditto. (im_location): Renamed to common_location, as it's used by both IM and e-mail. (init_email_record_location): im_location -> common_location (init_im_record_location): Ditto. (email_index_to_location): Ditto. (im_index_to_location): Ditto. (get_email_location): Ditto. (get_im_location): Ditto. (fill_in_email_record): Consult defaults. (fill_in_im_record): Ditto. svn path=/trunk/; revision=25796
* Remove blog, add home page. (set_entry_changed_signals): Ditto.Hans Petter Jansson2004-05-053-9/+21
| | | | | | | | | | | | | | | | 2004-05-04 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (set_entry_activate_signals): Remove blog, add home page. (set_entry_changed_signals): Ditto. (setup_tab_order): Ditto. (field_mapping): Ditto. (widget_field_mappings): Ditto. * gui/contact-editor/contact-editor.glade: Replace blog with home page. svn path=/trunk/; revision=25795
* Do ref, unref in right order, so the same contact can be set twice withoutHans Petter Jansson2004-05-042-5/+21
| | | | | | | | | | | 2004-05-03 Hans Petter Jansson <hpj@ximian.com> * gui/widgets/e-minicard.c (e_minicard_set_property): Do ref, unref in right order, so the same contact can be set twice without ill effects. (e_minicard_finalize): NULL pointers after unreffing their objects. svn path=/trunk/; revision=25775
* Establish defaults for the phone number option menus.Hans Petter Jansson2004-05-042-1/+11
| | | | | | | | | | 2004-05-03 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (phones_default): Establish defaults for the phone number option menus. (fill_in_phone_record): Fall back to defaults. svn path=/trunk/; revision=25774
* Implement. (e_contact_editor_init): Hook up the help button.Hans Petter Jansson2004-05-043-14/+26
| | | | | | | | | | | | 2004-05-03 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (show_help_cb): Implement. (e_contact_editor_init): Hook up the help button. * gui/contact-editor/contact-editor.glade: Give the help button a sensible name. svn path=/trunk/; revision=25772
* bump the maximum download limit to 1000.Larry Ewing2004-05-042-1/+4
| | | | | | | | | 2004-05-03 Larry Ewing <lewing@ximian.com> * gui/component/ldap-config.glade: bump the maximum download limit to 1000. svn path=/trunk/; revision=25771
* set the email entry sesitive only when anonymous isn't selected. Make theLarry Ewing2004-05-042-4/+8
| | | | | | | | | | 2004-05-03 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-config.c (add_folder_modify): set the email entry sesitive only when anonymous isn't selected. Make the details tab insensitive if the method is local. svn path=/trunk/; revision=25770
* remove unused colorpicker.Larry Ewing2004-05-042-45/+5
| | | | | | | | 2004-05-03 Larry Ewing <lewing@ximian.com> * gui/component/ldap-config.glade: remove unused colorpicker. svn path=/trunk/; revision=25766
* missed this last timeLarry Ewing2004-05-041-1/+1
| | | | svn path=/trunk/; revision=25764
* set the config item typeJP Rosevear2004-05-032-0/+9
| | | | | | | | | 2004-05-03 JP Rosevear <jpr@ximian.com> * gui/component/GNOME_Evolution_Addressbook.server.in.in: set the config item type svn path=/trunk/; revision=25752
* see if the selected group is groupwise one and setup the relative uri andSivaiah Nallagatla2004-05-032-1/+8
| | | | | | | | | | 2004-05-02 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook-config.c (dialog_to_source) : see if the selected group is groupwise one and setup the relative uri and other properties into e-source svn path=/trunk/; revision=25740
* sensitize the details dialog where appropriate. Don't try to read fromLarry Ewing2004-05-022-7/+17
| | | | | | | | | | 2004-05-01 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-config.c: sensitize the details dialog where appropriate. Don't try to read from widgets that don't exist. svn path=/trunk/; revision=25735
* don't use "email" twice for a variable name.. even though they don'tChris Toshok2004-05-012-3/+10
| | | | | | | | | | 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
* Fixed a type-o.Enver ALTIN2004-05-013-2/+7
| | | | | | | | | 2004-04-30 Enver ALTIN <enver.altin@frontsite.com.tr> * gui/component/GNOME_Evolution_Addressbook.server.in.in: Fixed a type-o. svn path=/trunk/; revision=25716
* Don't dereference the file_as pointer if it turns out to be NULL.Hans Petter Jansson2004-04-292-1/+6
| | | | | | | | | 2004-04-29 Hans Petter Jansson <hpj@ximian.com> * printing/e-contact-print.c: Don't dereference the file_as pointer if it turns out to be NULL. svn path=/trunk/; revision=25682
* 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-282-1/+6
| | | | | | | | | 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
* remove debug spew.Larry Ewing2004-04-282-8/+7
| | | | | | | | 2004-04-27 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-config.c: remove debug spew. svn path=/trunk/; revision=25640
* Migrate pilot data. (migrate_pilot_data): Oops. Apparently the addressbookJeffrey Stedfast2004-04-282-41/+8
| | | | | | | | | | | | 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
* fixed merge conflictsJeffrey Stedfast2004-04-281-6/+7
| | | | svn path=/trunk/; revision=25637
* Migrate pilot data.Jeffrey Stedfast2004-04-282-1/+139
| | | | | | | | | 2004-04-27 Jeffrey Stedfast <fejj@ximian.com> * gui/component/addressbook-migrate.c (addressbook_migrate): Migrate pilot data. svn path=/trunk/; revision=25636
* Update dialog vbox and action area border widths to be HIG compliantRodney Dawes2004-04-284-2/+30
| | | | | | | | | | | | | 2004-04-27 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor-fullname.c: (e_contact_editor_fullname_init): * gui/contact-editor/fullname.glade: * gui/search/e-addressbook-search-dialog.c (eab_search_dialog_init): Update dialog vbox and action area border widths to be HIG compliant Update main child widget border widths to be HIG compliant svn path=/trunk/; revision=25635
* fix warnings, remove unused code.Larry Ewing2004-04-272-244/+36
| | | | | | | | | 2004-04-27 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-config.c (source_to_dialog_new): fix warnings, remove unused code. svn path=/trunk/; revision=25624
* start integrate the new dialog.Larry Ewing2004-04-273-504/+1485
| | | | | | | | | | | 2004-04-27 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-component.c: start integrate the new dialog. * gui/component/ldap-config.glade: add the new dialog. svn path=/trunk/; revision=25623
* Set spacing around notebook widget and the dialog's action area and vboxRodney Dawes2004-04-273-1/+25
| | | | | | | | | | | 2004-04-26 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set spacing around notebook widget and the dialog's action area and vbox widgets to be compliant with the HIG dialog specs svn path=/trunk/; revision=25618
* add "mobile" mapping to E_CONTACT_PHONE_MOBILE, which is what thunderbirdChris Toshok2004-04-262-0/+7
| | | | | | | | | | 2004-04-25 Chris Toshok <toshok@ximian.com> * importers/evolution-ldif-importer.c (ldif_fields): add "mobile" mapping to E_CONTACT_PHONE_MOBILE, which is what thunderbird uses (and really what we should have always been using.) svn path=/trunk/; revision=25610
* The firt EMAIL item is EMAIL_1, not EMAIL (assuming we want simpleJeffrey Stedfast2004-04-242-38/+61
| | | | | | | | | | | | | | | | | | | | | 2004-04-23 Jeffrey Stedfast <fejj@ximian.com> * conduit/address-conduit.c (get_next_mail): The firt EMAIL item is EMAIL_1, not EMAIL (assuming we want simple strings). (local_record_from_ecard): Use e_contact_get() for getting the EContactAddress. Loop from FIRST_ADDRESS_ID up to and *including* LAST_ADDRESS_ID. (ecard_from_remote_record): When searching for an address field, loop from FIRST_ADDRESS_ID up to and *including* LAST_ADDRESS_ID. (pre_sync): Use e_book_query_any_field_contains() rather than e_book_query_from_string ("#t") which doesn't work anyway. 2004-04-20 Jeffrey Stedfast <fejj@ximian.com> * conduit/address-conduit.c (map_name): Updated to use ~/.evolution as the evolution directory rather than ~/evolution. svn path=/trunk/; revision=25603
* Fix the addressbook control to not crash. (Temporary fix.)Dan Winship2004-04-232-2/+13
| | | | | | | * gui/component/component-factory.c (factory): Fix the addressbook control to not crash. (Temporary fix.) svn path=/trunk/; revision=25601
* this signal takes an EContact* too. (modified_cb): same. (deleted_cb):Chris Toshok2004-04-232-25/+54
| | | | | | | | | | | | | | | 2004-04-23 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-gui-util.c (added_cb): this signal takes an EContact* too. (modified_cb): same. (deleted_cb): same. (eab_error_dialog): pad the table of status messages out with the new status codes, and don't specify gui text for messages that aren't generated by the backends. This fixes the "U" error messages people were seeing. svn path=/trunk/; revision=25598
* Correct the dialog's title.Hans Petter Jansson2004-04-233-56/+101
| | | | | | | | | | | | | | | | | | | | | 2004-04-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Correct the dialog's title. * gui/contact-editor/e-contact-editor.c (init_email_record_location): Connect to entry's activate signal. (init_phone_record_type): Ditto. (init_im_record_location): Ditto. (init_address_field): Ditto. (set_entry_changed_signal_field): Remove unnecessary checks. (set_urlentry_changed_signal_field): Ditto. (set_entry_changed_signals): Ditto. (set_entry_activate_signal_field): Implement. (set_urlentry_activate_signal_field): Implement. (set_entry_activate_signals): Implement. (e_contact_editor_init): Call set_entry_activate_signals (). svn path=/trunk/; revision=25590
* Override the save_contact function. (e_contact_editor_save_contact):Hans Petter Jansson2004-04-232-16/+21
| | | | | | | | | | | | | 2004-04-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): Override the save_contact function. (e_contact_editor_save_contact): Implement. (e_contact_editor_init): Remove some unnecessary checks - if something's the matter with the UI files, that needs to be warned about and fixed, not silently worked around. svn path=/trunk/; revision=25589
* Make the window be a GtkDialog.Hans Petter Jansson2004-04-232-2645/+2614
| | | | | | | | | 2004-04-22 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Make the window be a GtkDialog. svn path=/trunk/; revision=25587
* Implement. (extract_email): Preserve offscreen addresses. (extract_phone):Hans Petter Jansson2004-04-222-0/+78
| | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c (free_attr_list): Implement. (extract_email): Preserve offscreen addresses. (extract_phone): Preserve offscreen phone numbers. (extract_im): Preserve offscreen IM accounts. svn path=/trunk/; revision=25571
* Add defines for the slot counts for email, phone, im, address. (phones):Hans Petter Jansson2004-04-222-77/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.c: Add defines for the slot counts for email, phone, im, address. (phones): Add E_CONTACT_PHONE_COMPANY back in, now that we can differentiate it. (init_email): Use EMAIL_SLOTS and a loop. (init_im): Ditto for IM_SLOTS. (init_phone): Ditto for PHONE_SLOTS. (fill_in_address) (extract_address) (init_address): Ditto for ADDRESS_SLOTS. (get_ui_slot_param): Implement. (get_ui_slot): Implement. (set_ui_slot): Implement. (alloc_ui_slot): Implement. (fill_in_email): Add code to preserve spatial organization. (extract_email): Ditto. (fill_in_phone): Ditto. (extract_phone): Ditto. (fill_in_im): Ditto. (exctract_im): Ditto. svn path=/trunk/; revision=25570
* store off the label as well as the folder name label, so we can reuse theChris Toshok2004-04-222-32/+195
| | | | | | | | | | | | | | | | | | | | | | 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
* added a new function to striff off any parameters present after ';' in theSivaiah Nallagatla2004-04-212-3/+31
| | | | | | | | | | | 2004-04-21 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook.c (remove_parameters_from_uri) : added a new function to striff off any parameters present after ';' in the uri (load_source_auth_cb) (addressbook_authenticate) : call above function to remove anything after ';' before passing uri to e-password calls svn path=/trunk/; revision=25560
* Remove unused fields.Hans Petter Jansson2004-04-213-88/+13
| | | | | | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor.h (EContactEditor): Remove unused fields. * gui/contact-editor/e-contact-editor.c (emails): Remove. (e_contact_editor_init): Don't init unused fields. (e_contact_editor_dispose): Don't free/clear unused fields. (enable_writable_fields): Don't use email_choice anymore. Enable checkbutton-htmlmail only once. svn path=/trunk/; revision=25550
* Make the phone type selectors be option menus.Hans Petter Jansson2004-04-213-380/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-21 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Make the phone type selectors be option menus. * gui/contact-editor/e-contact-editor.c (phones): Store the phone param mappings locally. (set_entry_changed_signals): Don't special-case phone entries here. (enable_writable_fields): Don't mess with the phone widgets anymore. (set_fields): Use fill_in_phone (). (extract_info): Use extract_phone (). (phone_index_to_type): Implement. (get_phone_type): Implement. (get_attributes_named): Implement. (set_attributes_named): Implement. (fill_in_phone_record): Implement. (extract_phone_record): Implement. (fill_in_phone): Implement. (extract_phone): Implement. (init_phone_record_type): Implement. (init_phone): Implement. (connect_arrow_button_signal): Remove. (connect_arrow_button_signals): Remove. (phone_entry_changed): Remove. (set_entry_changed_signal_phone): Remove. (_arrow_pressed): Remove. (_phone_arrow_pressed): Remove. (e_contact_editor_build_ui_info): Remove. (e_contact_editor_build_phone_ui): Remove. (set_phone_field): Remove. svn path=/trunk/; revision=25549
* fix for e_user_creatable_items handle api changes.Not Zed2004-04-212-1/+6
| | | | | | | | | 2004-04-21 Not Zed <NotZed@Ximian.com> * gui/component/addressbook-view.c (addressbook_view_init): fix for e_user_creatable_items handle api changes. svn path=/trunk/; revision=25546
* use cursor-mode="line" to get rid of the annoying cell cursor.Chris Toshok2004-04-214-4/+18
| | | | | | | | | | | | | | | | 2004-04-20 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.etspec: use cursor-mode="line" to get rid of the annoying cell cursor. * gui/widgets/eab-gui-util.c (eab_create_image_chooser_widget): create the image chooser even if we aren't given an initial filename. * gui/contact-editor/e-contact-editor.c (new_target_cb): addressbook_show_load_error_dialog -> eab_load_error_dialog. svn path=/trunk/; revision=25538
* Set the default image for the contact photo to be the stock_person imageRodney Dawes2004-04-1916-93/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-19 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: Set the default image for the contact photo to be the stock_person image in the icon theme 2004-04-19 Michael Terry <mike@mterry.name> * gui/component/GNOME_Evolution_Addressbook.server.in.in: * gui/component/addressbook-component.c: * gui/component/addressbook-view.c: * gui/component/select-names/e-select-names-popup.c: * gui/contact-editor/e-contact-editor-address.c: * gui/contact-editor/e-contact-editor-fullname.c: * gui/contact-editor/e-contact-editor-im.c: * gui/contact-list-editor/contact-list-editor.glade: * gui/contact-list-editor/e-contact-list-editor.c: * gui/merging/eab-contact-commit-duplicate-detected.glade: * gui/merging/eab-contact-duplicate-detected.glade: * gui/widgets/e-minicard.c: * gui/widgets/eab-contact-display.c: * gui/widgets/eab-gui-util.c: Update the addressbook to use the icon theme via the EIconFactory object in e-util svn path=/trunk/; revision=25514
* new macro. (extract_email): only create/add the attribute if the emailChris Toshok2004-04-182-16/+42
| | | | | | | | | | | | 2004-04-18 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (nonempty): new macro. (extract_email): only create/add the attribute if the email address is nonempty. (extract_im): same, but for im accounts. (extract_address_record): same, but for addresses. svn path=/trunk/; revision=25502
* Add "wants HTML" checkbox.Hans Petter Jansson2004-04-173-291/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Add "wants HTML" checkbox. * gui/contact-editor/contact-editor.c (email_location_to_index) (email_entry_changed) (set_entry_changed_signal_email) (file_save_cb) (file_close_cb) (file_save_as_cb) (file_send_as_cb) (file_send_to_cb) (contact_deleted_cb) (delete_cb) (print_cb) (print_envelope_cb) (tb_save_and_close_cb) (verbs) (pixmaps) (create_ui): Remove unused funcs. (command_state_changed): Remove bonobo calls. (e_contact_editor_init): Remove bonobo stuff. (fill_in_email) (fill_in_im): Remove unused vars. svn path=/trunk/; revision=25498
* new function, use the async interface to load the book.Chris Toshok2004-04-172-22/+42
| | | | | | | | | | | 2004-04-16 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (book_loaded_cb): new function, use the async interface to load the book. (impl_requestCreateItem): use e_book_async_get_default_addressbook. svn path=/trunk/; revision=25496
* Commit new contact editor UI by Anna.Hans Petter Jansson2004-04-163-3370/+3552
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-16 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/contact-editor.glade: Commit new contact editor UI by Anna. * gui/contact-editor/e-contact-editor.c: Comment out bonobo includes. (_email_arrow_pressed) (_address_arrow_pressed) (set_im_fields) (find_address_mailing) (set_address_field) (add_im_clicked) (edit_im_clicked) (remove_im_clicked) (im_button_press_cb) (im_selected_cb) (im_treeview_drag_data_get_cb) (im_treeview_drag_data_rcv_cb) (setup_im_treeview) (email_entry_changed) (address_to_text) (text_to_address) (address_text_changed) (address_mailing_changed) (full_addr_clicked) (e_contact_editor_build_email_ui) (e_contact_editor_build_address_ui) (_email_arrow_pressed) (_address_arrow_pressed) (find_address_mailing) (add_im_field) (set_im_fields) (set_address_field): Removed. (address_name) (im_service) (im_location): Add lookup structs. (init_email_record_location) (init_email) (fill_in_email_record) (extract_email_record) (email_location_to_index) (email_index_to_location) (im_index_to_location) (get_email_location) (get_im_location) (fill_in_email) (extract_email) (init_im_record_location) (init_im_record_service) (init_im) (fill_in_im_record) (fill_in_im) (extract_im_record) (extract_im) (init_address_field) (init_address_record) (init_address) (fill_in_address_field) (fill_in_address_record) (fill_in_address) (extract_address_field) (extract_address_record) (extract_address) (file_save_and_close_cb) (file_cancel_cb) (set_entry_text): Implemented. (connect_arrow_button_signals): Updated some widget names. (set_entry_changed_signals): Removed dead widgets, updated names for others. (print_cb) (tb_save_and_close_cb) (create_ui): Disabled Bonobo toolbar/menus. (e_contact_editor_init): Disabled Bonobo toolbar/menus. Init new UI elements. Remove init of old UI elements. (command_state_changed): Disabled Bonobo toolbar/menus. Act on new ok/cancel buttons. (_phone_arrow_pressed): Updated widget names. (set_phone_field): Use set_entry_text (). (set_fields): Update widget names, remove old address code, call new fill_in_* code. (field_mapping): Remove dead widgets. (widget_field_mapping): Ditto. (enable_writable_fields): Remove calls for old email/address UI. Update some names. (fill_in_info): Don't find_address_mailing() or set_im_fields(). (extract_info): Call new extraction funcs. svn path=/trunk/; revision=25492
* force the info label to update its contents here if the load wasChris Toshok2004-04-154-3/+21
| | | | | | | | | | | | | | | | | 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
* rip out tons of functions - they all live in addressbook-view.c now. theChris Toshok2004-04-158-1339/+1486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-14 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c: rip out tons of functions - they all live in addressbook-view.c now. the only thing left in this file is the addressbook_load* calls that do authentication. * gui/component/addressbook.h: remove prototypes for addressbook_new_control and addressbook_load_uri (it was #if 0'ed anyway.) * gui/component/addressbook-component.h: remove prototypes for _peek_activity_handler and _peek_source_list. * gui/component/addressbook-component.c: rip out tons of functions - they all live in addressbook-view.c now. (impl_createControls): simplify this immensely. we just create an AddressbookView and get the various widgets/controls from it. (impl_requestCreateItem): this function loses slightly - it needs per-window info (the selected source) but there's no way to get it. So we load the default book. Also, this uses a synchronous e_book call to load the book, which is not good. (addressbook_component_peek_source_list): nuke, not used by anything anyway. (addressbook_component_peek_activity_handler): nuked, not used by anything - and it's per-window anyway. * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add addressbook-view.[ch]. * gui/component/addressbook-view.[ch]: rip out all of the per window stuff from addressbook.[ch] and addressbook-component.[ch] and put it here. svn path=/trunk/; revision=25471
* disable the map link for 2.0.Chris Toshok2004-04-142-0/+9
| | | | | | | | | 2004-04-13 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-contact-display.c (accum_address): disable the map link for 2.0. svn path=/trunk/; revision=25447
* add GDK_ACTION_COPY to the supported drag types. Connect to theLarry Ewing2004-04-132-2/+44
| | | | | | | | | | | 2004-04-13 Larry Ewing <lewing@ximian.com> * gui/widgets/e-addressbook-view.c (create_table_view): add GDK_ACTION_COPY to the supported drag types. Connect to the table_drag_data_delete callback. (table_drag_data_delete): remove the drag rows. svn path=/trunk/; revision=25427
* added a check for new auth type "plain/password" for groupwise inSivaiah Nallagatla2004-04-132-0/+8
| | | | | | | | | | 2004-04-13 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook.c (addressbook_authenicate): added a check for new auth type "plain/password" for groupwise in addressbook_authenicate function svn path=/trunk/; revision=25425
* treat "" the same as NULL (don't add it to the list).Chris Toshok2004-04-132-1/+6
| | | | | | | | | 2004-04-12 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-popup-control.c (email_menu_add_option): treat "" the same as NULL (don't add it to the list). svn path=/trunk/; revision=25424
* quiet valgrind uninitialized memory warning.Chris Toshok2004-04-132-0/+6
| | | | | | | | | 2004-04-12 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (addressbook_load_default_book): quiet valgrind uninitialized memory warning. svn path=/trunk/; revision=25423
* [ should fix #56537 ]Chris Toshok2004-04-133-32/+29
| | | | | | | | | | | | | | | | | | 2004-04-12 Chris Toshok <toshok@ximian.com> [ should fix #56537 ] * gui/widgets/eab-popup-control.c (EMPTY_ENTRY): use _(), not N_() here. (email_menu_add_options_from_contact): and g_strdup it here, so that the g_list_foreach (... g_free ..) doesn't cause things to blow up. (email_menu_unset_options): nuke ifdefed function. * gui/widgets/eab-popup-control.h: don't include gtk.h, include just what we need. svn path=/trunk/; revision=25422
* add prototypes for eab_load_error_dialog and eab_search_result_dialog.Chris Toshok2004-04-115-103/+134
| | | | | | | | | | | | | | | | | | | | | | | | 2004-04-10 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-gui-util.h: add prototypes for eab_load_error_dialog and eab_search_result_dialog. * gui/widgets/eab-gui-util.c (eab_load_error_dialog): the new addressbook_show_load_error_dialog. (eab_search_result_dialog): new function, the old contents of addressbook.c:search_result. * gui/component/addressbook.c (addressbook_show_load_error_dialog): move this function to eab-gui-utils.[ch] (search_result): split out the body of this into eab_search_result_dialog in eab-gui-utils.[ch]. (book_open_cb): call eab_load_error_dialog. * gui/component/addressbook.h: remove prototype for addressbook_show_load_error_dialog. svn path=/trunk/; revision=25409
* remove the e_destination_get_book api, since the function doesn't exist.Chris Toshok2004-04-112-1/+5
| | | | | | | | | 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
* bump version required to 8 for the contact list migration foo.Chris Toshok2004-04-102-1/+6
| | | | | | | | | 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
* pass GDK_CURRENT_TIME instead of a function pointer to "time" toChris Toshok2004-04-102-11/+31
| | | | | | | | | | | | | 2004-04-09 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (selector_tree_drag_motion): pass GDK_CURRENT_TIME instead of a function pointer to "time" to gdk_drag_status. not sure if this is right, but it's definitely more right than it was :) (impl_createControls): create the info label and add it to the sidebar control. it's not hooked up yet. svn path=/trunk/; revision=25399
* use the new e_destination_export_to_vcard_attribute call to build up theChris Toshok2004-04-1023-475/+521
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* use the new e_destination_export_to_vcard_attribute call to build up theChris Toshok2004-04-102-1723/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* is Toshok <toshok@ximian.com>Chris Toshok2004-04-101-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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=25388
* create an EUserCreatableItemsHandler (addressbook_view_clear): destroy itDan Winship2004-04-093-4/+30
| | | | | | | | | | | | | | * gui/component/addressbook.c (addressbook_new_control): create an EUserCreatableItemsHandler (addressbook_view_clear): destroy it (control_activate): Activate it * gui/component/addressbook-component.c (impl__get_userCreatableItems): Add object/folder flags to the creatable items. Rename "Address Book" to "Contacts Group" per new specs svn path=/trunk/; revision=25381
* we don't have an EBook* anymore. (e_destination_clear): same.Chris Toshok2004-04-083-65/+67
| | | | | | | | | | | | | | | | | | | | 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
* Sync the changes here rather than setting 'changed' on the config controlJeffrey Stedfast2004-04-082-23/+22
| | | | | | | | | | | | | 2004-04-07 Jeffrey Stedfast <fejj@ximian.com> * gui/component/autocompletion-config.c (source_selection_changed): Sync the changes here rather than setting 'changed' on the config control (since that no longer exists). (autocompletion_config_control_new): Don't connect to an apply signal, no such signal. svn path=/trunk/; revision=25357
* old name, new trimmed down implementation. This will be replacingChris Toshok2004-04-063-0/+1401
| | | | | | | | | 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
* revert unapproved patchChris Toshok2004-04-062-28/+1
| | | | svn path=/trunk/; revision=25335
* : implement keyboard navigation(TAB/shift+TAB) (activaite_editor) : add aHao Sheng2004-04-063-25/+126
| | | | | | | | | | | | | | | | | | 2004-04-06 Hao Sheng <hao.sheng@sun.com> * gui/widgets/e-minicard.c : (e_minicard_event) : implement keyboard navigation(TAB/shift+TAB) (activaite_editor) : add a new function to activiate contact editor for support "Enter" key * gui/widgets/e-minicard-view-widget.c : (e_minicard_view_widget_class_init) : set the default focus at initialization (e_minicard_view_widget_real_focus_in_event) : set the first item be focused as default Fixes #55056 svn path=/trunk/; revision=25332
* wrap this with the correct #ifdef.Chris Toshok2004-04-062-2/+6
| | | | | | | | 2004-04-05 Chris Toshok <toshok@ximian.com> * util/eab-destination.h: wrap this with the correct #ifdef. svn path=/trunk/; revision=25328
* use the correct glade filename.Chris Toshok2004-04-062-1/+6
| | | | | | | | | 2004-04-05 Chris Toshok <toshok@ximian.com> * gui/merging/eab-contact-merging.c (match_query_callback): use the correct glade filename. svn path=/trunk/; revision=25327
* Fixes #53433.Hari Prasad Nadig2004-04-023-55/+45
| | | | | | | | | | | | | | | | | | 2004-04-01 Hari Prasad Nadig <hp@ndeepak.info> Fixes #53433. * gui/component/addressbook-config.c (searching_tab_check): added the tab check for search tab. (dialog_to_source): added timeout to be saved. (source_to_dialog): just a piece to retrieve timeout from source. (addressbook_root_dse_query): few necessary changes. (do_ldap_root_dse_query): again few changes that were required. * gui/component/ldap-config.glade : set right the Hscale to display the selected value. svn path=/trunk/; revision=25281
* [ fixes bug #34777 ]Chris Toshok2004-03-313-2/+51
| | | | | | | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ fixes bug #34777 ] * gui/contact-editor/e-contact-editor.c (file_as_entry_changed): set the window title to File As if the file as entry has something in it. "Contact Editor" otherwise. (set_entry_changed_signals): hook up the file-as-entry's "changed" signal. * gui/contact-list-editor/e-contact-list-editor.c (list_name_changed_cb): analogous fix, but "List Name" and "Contact List Editor". svn path=/trunk/; revision=25256
* [ fixes bug #53544 ]Chris Toshok2004-03-312-5/+31
| | | | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ fixes bug #53544 ] * gui/component/addressbook-component.c (impl__get_userCreatableItems): add "address_book" to the user creatable items list. complete with incorrect accelerator and shortcut! (impl_requestCreateItem): handle "address_book" here, and plug a memory leak. svn path=/trunk/; revision=25253
* [ part of the fix for #51977, the other part is in e-d-s ]Chris Toshok2004-03-312-1/+10
| | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ part of the fix for #51977, the other part is in e-d-s ] * gui/widgets/e-addressbook-view.c (search_activated): the name of the category list property has changed from "category" to "category" list in 1.5. track the change here to get category searching working again. svn path=/trunk/; revision=25252
* [ part of the fix for #54528, the other part is in e-d-s ]Chris Toshok2004-03-312-0/+26
| | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ part of the fix for #54528, the other part is in e-d-s ] * importers/evolution-vcard-importer.c (process_item_fn): get and set the PHOTO attribute before storing the contact in the book. this has the affect of making EContact sniff the image format. the apple addressbook doesn't give PHOTO's a TYPE. svn path=/trunk/; revision=25250
* [ fixes bug #53094 ]Chris Toshok2004-03-313-265/+73
| | | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ fixes bug #53094 ] * gui/component/ldap-config.glade: nuke addressbook-sources-window. * gui/component/addressbook-config.c (main): nuke, we don't need this test case anymore, and it doesn't really work anyway anymore. svn path=/trunk/; revision=25249
* [ fixes bug #53634 ]Chris Toshok2004-03-313-9/+33
| | | | | | | | | | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ fixes bug #53634 ] * gui/widgets/e-addressbook-view.c (eab_view_new): call e_search_bar_set_menu to add the Advanced... menu item to the search menu, and connect to "menu_activated". (search_menu_activated): new function, pop up the advanced dialog if id == ESB_ADVANCED. (query_changed): use e_search_bar_get_item_id instead of g_object_get. * gui/component/addressbook.c (verbs): remove ToolSearch. (pixmaps): remove the ToolSearch pixmap. svn path=/trunk/; revision=25247
* [ gui part of the fix required for #48665 ]Chris Toshok2004-03-312-2/+19
| | | | | | | | | | | 2004-03-30 Chris Toshok <toshok@ximian.com> [ gui part of the fix required for #48665 ] * gui/widgets/e-addressbook-model.c (get_view): pass the source's "limit" property (if it exists) to e_book_async_get_book_view. svn path=/trunk/; revision=25242
* call drag_finish properly. (selector_tree_drag_motion): set the dragLarry Ewing2004-03-302-61/+59
| | | | | | | | | | | | | | | | | | | 2004-03-29 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-component.c (selector_tree_drag_data_received): call drag_finish properly. (selector_tree_drag_motion): set the drag status properly. 2004-03-29 Larry Ewing <lewing@ximian.com> * gui/calendar-component.c (selector_tree_drag_data_received): deal with the action type a properly. in the normal case. * gui/calendar-component.c (selector_tree_drag_data_received): call drag_finish properly, change the uid. (selector_tree_drag_motion): set drag status properly. svn path=/trunk/; revision=25240
* do eab_editor_is_valid check only when user wants to save.Sivaiah Nallagatla2004-03-262-5/+9
| | | | | | | | | 2004-03-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/eab-editor.c (eab_editor_prompt_to_save_changes) : do eab_editor_is_valid check only when user wants to save. svn path=/trunk/; revision=25191
* don't let the user delete their Personal addressbook. This is just a niceChris Toshok2004-03-252-2/+15
| | | | | | | | | | | | 2004-03-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (fill_popup_menu_callback): don't let the user delete their Personal addressbook. This is just a nice UI thingy.. A similar fix needs to be made to e-d-s. so that attempts that circumvent a nice UI will also fail. svn path=/trunk/; revision=25181
* don't know what I was thinking approving this change. the _() was onlyChris Toshok2004-03-252-5/+9
| | | | | | | | | | | 2004-03-24 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-gui-util.c (eab_show_multiple_contacts): don't know what I was thinking approving this change. the _() was only used in the plural case (in fact where n > 5), so a singular case was never necessary, and neither was the call to ngettext. svn path=/trunk/; revision=25174
* parent_type == EAB_TYPE_EDITOR. (e_contact_list_editor_class_init): fillChris Toshok2004-03-2511-435/+316
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-03-24 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_get_type): parent_type == EAB_TYPE_EDITOR. (e_contact_list_editor_class_init): fill in editor_class virtual functions, and remove all the signals. (list_added_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (list_modified_cb): same. (e_contact_list_editor_is_valid): new function. (e_contact_list_editor_is_changed): same. (e_contact_list_editor_get_window): same. (file_close_cb): call eab_editor_ functions. (list_deleted_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (delete_cb): call eab_editor_* functions. (contact_list_editor_destroy_notify): call eab_editor_remove. (e_contact_list_editor_new): call eab_editor_add, and remove the g_object_ref/gtk_object_sink two-step. (e_contact_list_editor_show): make static, and make arg EABEditor. (e_contact_list_editor_raise): same. (e_contact_list_editor_close): same. (app_delete_event_cb): call eab_editor_ functions. (command_state_changed): use eab_editor_is_valid instead of is_named. (e_contact_list_editor_request_close_all): nuke. * gui/contact-list-editor/e-contact-list-editor.h: nuke a bunch of prototypes for functions that are now either virtual functions from EABEditor or eab_editor_* functions. (struct _EContactListEditor): we subclass from EABEditor. (struct _EContactListEditorClass): same, and nuke all the signals. * gui/contact-editor/e-contact-editor.c (e_contact_editor_get_type): parent_type == EAB_TYPE_EDITOR. (e_contact_editor_class_init): fill in editor_class virtual functions, and remove all the signals. (contact_moved_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (contact_added_cb): same. (contact_modified_cb): same. (e_contact_editor_close): rename from close_dialog. (e_contact_editor_is_valid): new function. (e_contact_editor_is_changed): new function. (e_contact_editor_get_window): new function. (file_close_cb): use eab_editor_ calls here. (e_contact_editor_confirm_delete): nuke. (contact_deleted_cb): call eab_editor_contact_* instead of emitting a signal here. also call eab_editor_close (delete_cb): use eab_editor_ functions. (e_contact_editor_dispose): chain up to our parent's ::dispose. (contact_editor_destroy_notify): use eab_editor_remove. (e_contact_editor_new): use eab_editor_add, and remove the g_object_ref/gtk_object_sink two-step. (_popup_position): nuke dead function. (set_fields): i is an index, not a field_id. (e_contact_editor_raise): make this static, and it takes an EABEditor arg now, not a EContactEditor. (e_contact_editor_show): same. (e_contact_editor_request_close_all): nuke. * gui/contact-editor/e-contact-editor.h: nuke a bunch of prototypes for functions that are now either virtual functions from EABEditor or eab_editor_* functions. (struct _EContactEditor): we subclass from EABEditor. (struct _EContactEditorClass): same, and remove the signals. * gui/widgets/e-addressbook-view.c (delete): call eab_editor_confirm_delete. * gui/widgets/eab-popup-control.c (contact_editor_cb): don't bother calling e_contact_editor_raise since this is a new contact editor anyway. * gui/widgets/eab-gui-util.c (eab_show_contact_list_editor): use EABEditor signals, and eab_editor_show. * gui/widgets/e-minicard.h: "editor" is now of type EABEditor, not GObject. * gui/widgets/e-minicard.c (e_minicard_event): just use eab_editor_raise instead of e_contact_editor_raise/e_contact_list_editor_raise. * gui/component/addressbook-component.c (impl_requestQuit): implement this again, calling eab_editor_request_close_all. (addressbook_component_class_init): fill in epv->requestQuit. svn path=/trunk/; revision=25173
* superclass for both EContactEditor and EContactListEditor. A start towardChris Toshok2004-03-254-2/+511
| | | | | | | | | | | | | 2004-03-24 Chris Toshok <toshok@ximian.com> * gui/contact-editor/eab-editor.[ch]: superclass for both EContactEditor and EContactListEditor. A start toward simplifying the interface to both of them, and a place to abstract code. * gui/contact-editor/Makefile.am (libecontacteditor_la_SOURCES): add eab-editor.[ch] svn path=/trunk/; revision=25172
* Use ngettext for handling plural forms throughout (fixes bug 53464).Danilo Å egan2004-03-244-11/+17
| | | | svn path=/trunk/; revision=25168
* [ fixes bug #53653, and a couple other instances ]Chris Toshok2004-03-232-3/+12
| | | | | | | | | | | | | 2004-03-22 Chris Toshok <toshok@ximian.com> [ fixes bug #53653, and a couple other instances ] * gui/widgets/eab-gui-util.c (file_exists): REJECT -> CANCEL, so esc works (patch from Pratik V. Parikh <pratikvp@despammed.com>) (save_it): REJECT -> CANCEL. (eab_select_source): same. svn path=/trunk/; revision=25146
* Fixes #53625.Hans Petter Jansson2004-03-182-0/+9
| | | | | | | | | | | 2004-03-17 Hans Petter Jansson <hpj@ximian.com> Fixes #53625. * gui/widgets/eab-contact-display.c (render_contact): Show home and mobile phone numbers too. svn path=/trunk/; revision=25107
* loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents out ofSivaiah Nallagatla2004-03-162-1/+7
| | | | | | | | | 2004-03-14 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields) : loop only up to < G_N_ELEMENTS instead of <= G_N_ELEMENTS. Prevents out of bound indexing of addresses array svn path=/trunk/; revision=25073
* build a11y/addressbook dir : add the accessibility support forHao Sheng2004-03-156-9/+31
| | | | | | | | | | | | | | 2004-03-15 Hao Sheng <hao.sheng@sun.com> * gui/component/Makefile.am : build a11y/addressbook dir * gui/widgets/e-addressbook-view.c : (eab_view_class_init) : add the accessibility support for e_addressbook_view * gui/widgets/e-minicard-view.c : (e_minicard_view_class_init) : add the accessibility support for e_minicard_view * gui/widgets/e-minicard.c : (e_minicard_class_init) : add the accessibility support for e_minicard svn path=/trunk/; revision=25059
* #if 0 this, since nothing uses it anymore. (accum_address): new function,Chris Toshok2004-03-112-40/+125
| | | | | | | | | | | | | | | | 2004-03-10 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-contact-display.c (render_address): #if 0 this, since nothing uses it anymore. (accum_address): new function, build up a GString. (accum_name_value): same. (accum_attribute): same. (render_contact): don't just blindly render the work/personal blocks, since if they're empty it looks stupid. instead, accumulate each block into a GString and only output the entire block if the string is non-empty. svn path=/trunk/; revision=25018
* phone_choice is an index into the phones array. (_phone_arrow_pressed):Chris Toshok2004-03-112-50/+79
| | | | | | | | | | | | | | | | | | | | | | | | 2004-03-10 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (phone_entry_changed): phone_choice is an index into the phones array. (_phone_arrow_pressed): same. (address_text_changed): address_choice is an index into the addresses array. (_address_arrow_pressed): same. (set_address_field): same. (_email_arrow_pressed): email_choice is an index into the emails array. (full_addr_clicked): same, and same with s/addresses/address_editable. (e_contact_editor_init): initialize the *_choice fields as indices into their respective *es arrays. (e_contact_editor_build_address_ui): initialize the labels from the addresses array. (set_fields): *_choice fields are indices into *es arrays. (enable_writable_fields): same. svn path=/trunk/; revision=25017
* Don't try to calculate the position of the popup menu for the dropdownsRodney Dawes2004-03-102-1/+6
| | | | | | | | | 2004-03-09 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor.c (_arrow_pressed): Don't try to calculate the position of the popup menu for the dropdowns svn path=/trunk/; revision=25001
* Remove the dialog separator, and set appropriate border widths for theRodney Dawes2004-03-103-14/+28
| | | | | | | | | | | | 2004-03-09 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/e-contact-editor-im.c (e_contact_editor_im_edit): Remove the dialog separator, and set appropriate border widths for the button area box and the dialog's vbox * gui/contact-editor/im.glade: Apply patch from Christian Neumair to make the IM editor dialog HIG compliant svn path=/trunk/; revision=24999
* fixed type in contact editor code to make email ui building workSivaiah Nallagatla2004-03-092-1/+5
| | | | svn path=/trunk/; revision=24996
* : maintain a list of only those source groups which are added to menuSivaiah Nallagatla2004-03-042-2/+23
| | | | | | | | | | | | 2004-03-04 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook-config.c : (addressbook_add_server_druid) : maintain a list of only those source groups which are added to menu instead of all (source_group_changed_cb) : use the new list to get the selected group (addressbook_source_dialog_destroy) : free the new list svn path=/trunk/; revision=24958
* ** See #54991.Not Zed2004-03-042-17/+30
| | | | | | | | | | | | | | 2004-03-04 Not Zed <NotZed@Ximian.com> ** See #54991. * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): dont try to unref a null query. (name_style_query): use a GString to build the query, so we can use e_sexp_encode_string to properly encode the sub terms. svn path=/trunk/; revision=24957
* Set error to NULL before using it.Hans Petter Jansson2004-03-042-1/+6
| | | | | | | | | 2004-03-03 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-component.c (delete_addressbook_cb): Set error to NULL before using it. svn path=/trunk/; revision=24953
* Remove local data, with error reporting on failure.Hans Petter Jansson2004-03-042-3/+35
| | | | | | | | | 2004-03-03 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-component.c (delete_addressbook_cb): Remove local data, with error reporting on failure. svn path=/trunk/; revision=24952
* add drop support for text/x-vcard to the source list.Larry Ewing2004-03-022-0/+190
| | | | | | | | | 2004-03-02 Larry Ewing <lewing@ximian.com> * gui/component/addressbook-component.c: add drop support for text/x-vcard to the source list. svn path=/trunk/; revision=24930
* ref the pixbuf before we close/unref the loader so the pixbuf sticksChris Toshok2004-02-282-7/+20
| | | | | | | | | | | 2004-02-27 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-contact-display.c (eab_contact_display_render_compact): ref the pixbuf before we close/unref the loader so the pixbuf sticks around, and make the scaling logic a bit more transparent. svn path=/trunk/; revision=24916
* Change the button relief back to normal for the drop-down buttons and moveRodney Dawes2004-02-282-500/+570
| | | | | | | | | | 2004-02-27 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: Change the button relief back to normal for the drop-down buttons and move the text labels inside the buttons as well svn path=/trunk/; revision=24915
* add missing "break" to PROP_SOURCE's case.Chris Toshok2004-02-282-0/+6
| | | | | | | | | 2004-02-27 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (eab_view_set_property): add missing "break" to PROP_SOURCE's case. svn path=/trunk/; revision=24913
* Get rid of some extraneous event boxes that were not needed/used forRodney Dawes2004-02-282-254/+223
| | | | | | | | | | | | | | | 2004-02-27 Rodney Dawes <dobey@ximian.com> * gui/contact-editor/contact-editor.glade: Get rid of some extraneous event boxes that were not needed/used for anything really Set the button relief for the pop-down buttons to NONE Set the shadow type for the arrows in the pop-down buttons to NONE, so that we look good with themes that actually handle shadow types on arrows, since most things just ignore the shadow type anyway Fixes #8516 svn path=/trunk/; revision=24910
* Move unused variable declaration inside notyet conditional.Hans Petter Jansson2004-02-279-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* add the Groupwise IM attributes to the list of those we render.Chris Toshok2004-02-272-4/+12
| | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-contact-display.c (render_contact): add the Groupwise IM attributes to the list of those we render. svn path=/trunk/; revision=24895
* call eab_view_show_contact_preview here so we maintain the preview stateChris Toshok2004-02-272-0/+9
| | | | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (set_view_preview): call eab_view_show_contact_preview here so we maintain the preview state when switching folders. we don't (yet... won't ever?) have per-addressbook preview settings. svn path=/trunk/; revision=24893
* view->scrolled -> view->contact_display. fixes crash.Chris Toshok2004-02-272-2/+8
| | | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (eab_view_show_contact_preview): view->scrolled -> view->contact_display. fixes crash. svn path=/trunk/; revision=24891
* nuke this fileChris Toshok2004-02-271-9/+0
| | | | svn path=/trunk/; revision=24890
* fix checks for locations.Chris Toshok2004-02-272-5/+10
| | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (edit_im_clicked): fix checks for locations. svn path=/trunk/; revision=24888
* set the location label/option menu to visible.Chris Toshok2004-02-274-98/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/im.glade: set the location label/option menu to visible. * gui/contact-editor/e-contact-editor.c (add_im_clicked): build up the vcard attributes manually so we can set the TYPE= parameter to the location the user specifies. (edit_im_clicked): same. Also, use COLUMN_IM_LOCATION_TYPE, which is not localized to pass the location to the editor. (remove_im_clicked): reindent. (im_treeview_drag_data_get_cb): same. (im_treeview_drag_data_rcv_cb): same. (setup_im_treeview): add another column for the (non-localized) location type, and reindent. (add_im_field): use the new attribute api for EContact so we can get the location of each account, and set things appropriately on the store. * gui/contact-editor/e-contact-editor-im.c (e_contact_editor_im_class_init): reindent. (e_contact_editor_im_new): same. (fill_in_info): same. svn path=/trunk/; revision=24886
* added groupwise im related label and icon image file nameSivaiah Nallagatla2004-02-253-1/+15
| | | | | | | | | | | | 2004-02-25 Sivaiah Nallagatla <snallagatla@novell.com> * gui/contact-editor/e-contact-editor-im.c : added groupwise im related label and icon image file name * gui/contact-editor/e-contact-editor.c : (im_treeview_drag_data_get_cb), (im_treeview_drag_data_rcv_cb) : (set_im_fields) : added code to add Gw Im id to contact-editor svn path=/trunk/; revision=24864
* Port to new way of setting name in contact.Hans petter Jansson2004-02-252-10/+7
| | | | | | | | | 2004-02-24 Hans petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name): Port to new way of setting name in contact. svn path=/trunk/; revision=24861
* Include bug number.JP Rosevear2004-02-251-0/+2
| | | | svn path=/trunk/; revision=24856
* don't init the dialog here (addressbook_migrate): init it hereJP Rosevear2004-02-252-4/+8
| | | | | | | | | | 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
* remove some spew.Chris Toshok2004-02-212-1/+5
| | | | | | | | | 2004-02-20 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (phone_entry_changed): remove some spew. svn path=/trunk/; revision=24824
* s/HAVE_NSS/ENABLE_SMIME.Chris Toshok2004-02-203-4/+10
| | | | | | | | | | 2004-02-19 Chris Toshok <toshok@ximian.com> * gui/component/component-factory.c: s/HAVE_NSS/ENABLE_SMIME. * gui/component/addressbook-component.c: s/HAVE_NSS/ENABLE_SMIME. svn path=/trunk/; revision=24812
* split out the majority of the set_prop code for PROPERTY_SOURCE_UID_IDXChris Toshok2004-02-202-84/+147
| | | | | | | | | | | | | | | | | 2004-02-19 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (activate_source): split out the majority of the set_prop code for PROPERTY_SOURCE_UID_IDX here, so it can be used for both SOURCE_UID and FOLDER_URI. (set_prop): add a setter for "folder_uri". we sorta fudge things and use the uri for the uid (the uid is only used as a hash key to look up the view associated with the uri/source, so we should be good still.) (get_prop): add getter for "folder_uri". (addressbook_new_control): add the "folder_uri" property to our property bag. svn path=/trunk/; revision=24808
* Fixes #45308 and duplicates.Hans Petter Jansson2004-02-202-6/+16
| | | | | | | | | | | | 2004-02-19 Hans Petter Jansson <hpj@ximian.com> Fixes #45308 and duplicates. * gui/widgets/e-addressbook-model.c (eab_model_set_property): Store the IDs of book signals connected to, so we can disconnect from them later. svn path=/trunk/; revision=24799
* provide ESC support for delete dialog of contact editor, fix bug 52765Leon Zhang2004-02-192-1/+9
| | | | | | patch by hao.sheng@sun.com svn path=/trunk/; revision=24793
* add image_set slot.Chris Toshok2004-02-185-9/+48
| | | | | | | | | | | | | | | | | | | | | | | | 2004-02-17 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/e-contact-list-editor.h (struct _EContactListEditor): add image_set slot. * gui/contact-list-editor/e-contact-list-editor.c (list_image_changed_cb): set image_set = TRUE. (e_contact_list_editor_init): init image_set = FALSE (extract_info): only set the LOGO attribute if image_set = TRUE. * gui/contact-editor/e-contact-editor.h (struct _EContactEditor): add image_set slot. * gui/contact-editor/e-contact-editor.c (extract_info): only set the PHOTO attribute if image_set == TRUE. (image_chooser_changed): new function, set image_set = TRUE and call widget_changed. (e_contact_editor_init): init image_set to FALSE. (_address_arrow_pressed): quiet compiler. svn path=/trunk/; revision=24771
* [ fixes bug #53620 ]Chris Toshok2004-02-182-3/+11
| | | | | | | | | | | | 2004-02-17 Chris Toshok <toshok@ximian.com> [ fixes bug #53620 ] * gui/merging/eab-contact-compare.c (eab_contact_compare_name): "" is a valid (and common) value for elements of EContactName now. it's semantically equivalent to NULL in the old ECard foo. svn path=/trunk/; revision=24769
* free up the list returned by e_book_get_contacts.Chris Toshok2004-02-132-0/+8
| | | | | | | | | 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
* Fix capitalization of Address Book usage in sentence form Use Address BookRodney Dawes2004-02-133-10/+21
| | | | | | | | | | | 2004-01-12 Rodney Dawes <dobey@ximian.com> * gui/component/addressbook-component.c (delete_addressbook_cb): Fix capitalization of Address Book usage in sentence form * gui/component/ldap-config.glade: Use Address Book instead of Addressbook in here (Patch from Aaron Weber <aaron@ximian.com>) svn path=/trunk/; revision=24725
* Forgot to list the bugs the last commit fixed...Rodney Dawes2004-02-121-0/+2
| | | | svn path=/trunk/; revision=24716
* Address Book, not AddressbookRodney Dawes2004-02-125-5/+14
| | | | | | | | | | | | | 2004-02-11 Rodney Dawes <dobey@ximian.com> * gui/component/addressbook-component.c (delete_addressbook_cb): (fill_popup_menu_callback): * gui/widgets/e-addressbook-view.c (init_collection): * gui/widgets/eab-gui-util.c (eab_error_dialog): * gui/widgets/eab-popup-control.c (eab_popup_control_contstruct): Address Book, not Addressbook svn path=/trunk/; revision=24715
* build importers dirJP Rosevear2004-02-102-1/+5
| | | | | | | | 2004-02-10 JP Rosevear <jpr@ximian.com> * Makefile.am: build importers dir svn path=/trunk/; revision=24688
* Initialize the personal_source to NULLRodney Dawes2004-02-092-0/+8
| | | | | | | | | | | 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
* pass contact as an argument instead of contact id toSivaiah Nallagatla2004-02-082-1/+6
| | | | | | | | | | 2004-02-08 Sivaiah Nallagatla <snallagatla@novell.com> * gui/widgets/e-addressbook-view.c (delete) : pass contact as an argument instead of contact id to e_book_async_remove_contact svn path=/trunk/; revision=24672
* don't bother using a function-wide variable to store the personal source.Chris Toshok2004-02-072-7/+13
| | | | | | | | | | | | 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
* Hide the border on the notebook also Don't pack another scrolled windowRodney Dawes2004-02-073-7/+10
| | | | | | | | | | | | 2004-02-06 Rodney Dawes <dobey@ximian.com> * gui/component/addressbook.c (addressbook_new_control): Hide the border on the notebook also * gui/widgets/e-addressbook-view.c (eab_view_new): Don't pack another scrolled window inside of a scrolled window, just pack the contact display inside the paned, since it already has a scrolled window svn path=/trunk/; revision=24664
* Use "Address Book" instead of "folder" or "Addressbook" for the "AddressRodney Dawes2004-02-072-3/+11
| | | | | | | | | | | | 2004-02-06 Rodney Dawes <dobey@ximian.com> * gui/widgets/e-addressbook-view.c: Use "Address Book" instead of "folder" or "Addressbook" for the "Address Book Sources..." and copy/move contact menu items Fixes #53654 svn path=/trunk/; revision=24662
* only set the address if something in it's been filled in.Chris Toshok2004-02-073-22/+24
| | | | | | | | | | | | | | | | 2004-02-06 Chris Toshok <toshok@ximian.com> * importers/evolution-ldif-importer.c (getNextLDIFEntry): only set the address if something in it's been filled in. (resolve_list_card): build up a separate list representing the xml formatted crud. (process_item_fn): remove FIXME. (factory_fn): use g_new0 since we test for NULL-ness later on. * importers/evolution-vcard-importer.c (factory_fn): use g_new0 since we test for NULL-ness later on. svn path=/trunk/; revision=24659
* implementJP Rosevear2004-02-072-1/+17
| | | | | | | | | 2004-02-06 JP Rosevear <jpr@ximian.com> * importers/evolution-ldif-importer.c (importer_destroy_cb): implement svn path=/trunk/; revision=24655
* implement (load_file_fn): use g_file_get_contents to get a string we canJP Rosevear2004-02-072-7/+32
| | | | | | | | | | | 2004-02-06 JP Rosevear <jpr@ximian.com> * importers/evolution-vcard-importer.c (importer_destroy_cb): implement (load_file_fn): use g_file_get_contents to get a string we can convert to a contact list with eab_contact_list_from_string svn path=/trunk/; revision=24654
* shlib importer infoJP Rosevear2004-02-077-0/+1012
| | | | | | | | | | | | | | | | | | | | 2004-02-06 JP Rosevear <jpr@ximian.com> * importers/GNOME_Evolution_Addressbook_LDIF_Importer.server.in.in: shlib importer info * importers/GNOME_Evolution_Addressbook_VCard_Importer.server.in.in: ditto * importers/Makefile.am: build shlib addressbook importers * importers/evolution-ldif-importer.c: First crack at resurrecting * importers/evolution-vcard-importer.c: ditto svn path=/trunk/; revision=24652
* remove some spew, and add an evo-icon: handler, for things in evolution'sChris Toshok2004-02-042-79/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-03 Chris Toshok <toshok@ximian.com> * gui/widgets/eab-contact-display.c (on_url_requested): remove some spew, and add an evo-icon: handler, for things in evolution's imagedir. (render_address): hack up the html. (render_name_value): new function, just render a name/value/icon. (render_attribute): split out most of this function into render_name_value. this just checks to see if the EContact attribute has something in it before passing it along. (render_contact_list): split this out from eab_contact_display_render_normal. (start_block): new function, insert a row of height 20 with a header. (end_block): new function, insert a row of height 20. (render_contact): split this out from eab_contact_display_render_normal, and prettify the contact display. (eab_contact_display_render_normal): call render_contact and render_contact_list. (eab_contact_display_new): create a scrolled window and add the GtkHTML to it so we actually have scrollbars. svn path=/trunk/; revision=24591
* add widgets/misc for e-activity-handler.hDan Winship2004-02-042-3/+7
| | | | | | | * gui/component/select-names/Makefile.am (INCLUDES): add widgets/misc for e-activity-handler.h svn path=/trunk/; revision=24588
* correected the date in ChangelogSivaiah Nallagatla2004-02-041-1/+1
| | | | svn path=/trunk/; revision=24583
* use gtk_spin_button_* apis to get and set values for download limit spinSivaiah Nallagatla2004-02-042-6/+14
| | | | | | | | | | | 2004-02-03 Sivaiah Nallagatla <snallagatla@novell.com> * gui/component/addressbook-config.c (dialog_to_source) (source_to_dialog) : use gtk_spin_button_* apis to get and set values for download limit spin button instead of gtk_entry Fixes #53432 svn path=/trunk/; revision=24582
* hook up contact_changed/contact_removed signals. (contact_changed): newChris Toshok2004-02-033-12/+86
| | | | | | | | | | | | | | | | | | | | | 2004-02-02 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (eab_view_new): hook up contact_changed/contact_removed signals. (contact_changed): new function. if the changed contact is the one we're displaying, re-render it. (contact_removed): new function. if the removed contact is the one we're displaying, clear the display. (render_contact): set displayed_contact to the row. (eab_view_init): init displayed_contact to -1. (selection_changed): set displayed_contact to -1 when we clear the display. * gui/widgets/e-addressbook-view.h (struct _EABView): add "displayed_contact" so we can update the contact preview when it changes. svn path=/trunk/; revision=24574
* enable d&d drop photos.Chris Toshok2004-01-318-267/+118
| | | | | | | | | | | | | | | | | | | | | | | | 2004-01-30 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c: enable d&d drop photos. * gui/contact-editor/contact-editor.glade: use eab_create_image_chooser_widget for the d&d'able image. * gui/contact-list-editor/e-contact-list-editor.c: abstract out all the d&d image support (it's now in widgets/misc/e-image-chooser.[ch]). * gui/contact-list-editor/contact-list-editor.glade: use eab_create_image_chooser_widget for the d&d'able image. * gui/widgets/eab-gui-util.c (eab_create_image_chooser_widget): new function. * gui/widgets/eab-gui-util.h: add prototype for eab_create_image_chooser_widget. svn path=/trunk/; revision=24553
* Implement. (eab_select_source): Implement. Public function that promptsHans Petter Jansson2004-01-303-18/+88
| | | | | | | | | | | | 2004-01-29 Hans Petter Jansson <hpj@ximian.com> * gui/widgets/eab-gui-util.c (source_selection_changed_cb): Implement. (eab_select_source): Implement. Public function that prompts user to select a source from a list. (eab_transfer_contacts): Enable and use eab_select_source () and ESource, instead of old shell folder/URI stuff. svn path=/trunk/; revision=24530
* Changed "Finish" to "Apply" in dialog finish page text.Hans Petter Jansson2004-01-302-1/+6
| | | | | | | | | 2004-01-29 Hans Petter Jansson <hpj@ximian.com> * gui/component/ldap-config.glade: Changed "Finish" to "Apply" in dialog finish page text. svn path=/trunk/; revision=24526
* Sync the modified source list.Hans Petter Jansson2004-01-303-2/+17
| | | | | | | | | | | | 2004-01-29 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-config.c (dialog_to_source): Sync the modified source list. * gui/component/addressbook-component.c (delete_addressbook_cb): Sync the modified source list. svn path=/trunk/; revision=24525
* use the MigrationContext struct. (dialog_close): same.Chris Toshok2004-01-302-97/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | 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 group to temporary sourceRadek Doulik2004-01-302-0/+6
| | | | | | | | | 2004-01-29 Radek Doulik <rodo@ximian.com> * gui/component/addressbook-config.c (dialog_to_temp_source): set group to temporary source svn path=/trunk/; revision=24522
* Get file_as instead of full_name.Hans Petter Jansson2004-01-293-2/+10
| | | | | | | | | | | | 2004-01-28 Hans Petter Jansson <hpj@ximian.com> * gui/component/select-names/e-select-names-table-model.c (fill_in_info): Get file_as instead of full_name. * gui/compoent/select-names/e-select-names.etspec: Show the file_as column instead of full_name. svn path=/trunk/; revision=24505
* Handle NULL name. Fixes #53071.Hans Petter Jansson2004-01-282-2/+15
| | | | | | | | | | 2004-01-27 Hans Petter Jansson <hpj@ximian.com> * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_set_property): Handle NULL name. Fixes #53071. svn path=/trunk/; revision=24479
* set the relative_uri of a local source to be its uid.Chris Toshok2004-01-283-15/+29
| | | | | | | | | | | | | | | | | | | | | 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-272-29/+63
| | | | | | | | | | | | | | | | | | | | | 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
* [ fixes #53238 ] make this accept NULL's (and return FALSE for them).Chris Toshok2004-01-272-14/+55
| | | | | | | | | | | | | | | | | | | 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
* make sure we pass \0 terminated string to eab_contact_list_from_string [itRadek Doulik2004-01-262-5/+18
| | | | | | | | | | 2004-01-26 Radek Doulik <rodo@ximian.com> * gui/widgets/e-addressbook-view.c (selection_received): make sure we pass \0 terminated string to eab_contact_list_from_string [it may fix #51743] svn path=/trunk/; revision=24435
* [ fixes bug #51171 ] get this working.Chris Toshok2004-01-262-63/+52
| | | | | | | | | | 2004-01-25 Chris Toshok <toshok@ximian.com> [ fixes bug #51171 ] * gui/widgets/eab-gui-util.c (eab_send_contact_list): get this working. svn path=/trunk/; revision=24429
* Select Contacts from Address Book, not ContentsRodney Dawes2004-01-252-1/+8
| | | | | | | | | | | 2004-01-24 Rodney Dawes <dobey@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_init): Select Contacts from Address Book, not Contents Fixes #53263 svn path=/trunk/; revision=24414
* oops. (migrate_contact_folder): fix the unreffing.Chris Toshok2004-01-252-3/+15
| | | | | | | | | | 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-252-1/+6
| | | | | | | | | 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-252-7/+6
| | | | | | | * 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-252-53/+11
| | | | | | | | | | 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