aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
Commit message (Collapse)AuthorAgeFilesLines
* up the column count by one for the underline.Chris Toshok2003-03-191-1/+5
| | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-table-model.c (e_select_names_table_model_col_count): up the column count by one for the underline. (e_select_names_table_model_value_at): add handling for underline. svn path=/trunk/; revision=20355
* fix use of deprecated gtk_menu_append. (card_picker_selection_changed):Chris Toshok2003-03-191-54/+31
| | | | | | | | | | | | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> * gui/component/e-address-popup.c (email_menu_add_option): fix use of deprecated gtk_menu_append. (card_picker_selection_changed): change this to be used with the "changed" signal on GtkTreeSelection. (free_str): yeah, gross. i know. (card_picker_init): this needed some fixing, so the strings don't go away after we insert them into the model. also, connect to the "changed" GtkTreeSelection signal instead of using the nonexistant gtk_tree_selection_set_func. (e_address_popup_construct): gtk_style_unref -> g_object_unref. (popup_size_allocate_cb): nuke. (e_address_popup_ambiguous_email_add): use gtk_window_set_position and let the window manager place the window instead of doing it ourself. svn path=/trunk/; revision=20352
* [ Fixes addressbook bug #39730 ] add response ids to the search baseChris Toshok2003-03-192-55/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> [ Fixes addressbook bug #39730 ] * gui/component/ldap-config.glade: add response ids to the search base dialog. * gui/component/addressbook-config.c (addressbook_source_dialog_destroy): use g_object_unref, not gtk_widget_destroy, on the GladeXML. (addressbook_add_server_druid): call gtk_window_set_type_hint GDK_WINDOW_TYPE_HINT_DIALOG so this window looks like a dialog. (editor_modify_cb): no more apply button. (edit_dialog_apply_clicked): nuked. (edit_dialog_close_clicked): rename to _cancal_clicked. (edit_dialog_ok_clicked): call gtk_widget_destroy here instead of calling _cancel_clicked. (addressbook_edit_server_dialog): no more apply button, and close_button -> cancel_button. Also, set the hint to GDK_WINDOW_TYPE_HINT_DIALOG. (ldap_dialog_new): fix compiler warning. (addressbook_dialog_create_sources_table): same. svn path=/trunk/; revision=20351
* use alternating-row-colors="false"Chris Toshok2003-03-193-61/+24
| | | | | | | | | | | | | | | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-section.etspec: use alternating-row-colors="false" * gui/component/select-names/e-select-names.h: nuke prototypes for e_select_names_get_source/section. * gui/component/select-names/e-select-names.c (set_book): remove the signal disconnect from here. (addressbook_model_set_uri): same. (e_select_names_init): connect to the search_result signal on the addressbook model. (e_select_names_child_free): disconnect the changed_id signal. (e_select_names_add_section): set the underline column so the recipient tables look like they did when they were EEntry. (e_select_names_add_section): store off the changed_id. (e_select_names_get_section): nuke. (e_select_names_get_source): nuke. svn path=/trunk/; revision=20345
* disconnect/keep track of search result signal id. (e_select_names_init):Not Zed2003-03-182-5/+28
| | | | | | | | | | | | | | 2003-03-18 Not Zed <NotZed@Ximian.com> * gui/component/select-names/e-select-names.c (set_book, addressbook_model_set_uri): disconnect/keep track of search result signal id. (e_select_names_init): Keep track of various signals, particularly status signal. (e_select_names_dispose): disconnect from any signals that are still active. Fixes crash for #38202. svn path=/trunk/; revision=20334
* use set_entry_changed_signal_email for the email entry so the email getsChris Toshok2003-03-141-1/+10
| | | | | | | | | | | | 2003-03-13 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (set_entry_changed_signals): use set_entry_changed_signal_email for the email entry so the email gets saved out. (set_entry_changed_signal_email): new function, analogous to set_entry_changed_signal_phone, but for email. svn path=/trunk/; revision=20282
* [ fixes bug #20210 ] change "Edit Contact Info" to "View Contact Info", asChris Toshok2003-03-131-2/+2
| | | | | | | | | | | | | 2003-03-12 Chris Toshok <toshok@ximian.com> [ fixes bug #20210 ] * gui/component/select-names/e-select-names-popup.c (popup_menu_card): change "Edit Contact Info" to "View Contact Info", as you can't always edit the contact (if the book is read only). (popup_menu_list): same, but for a contact list. svn path=/trunk/; revision=20270
* [ fixes bug #39507 ] new function, sync the models after we do a search.Chris Toshok2003-03-121-0/+12
| | | | | | | | | | | 2003-03-11 Chris Toshok <toshok@ximian.com> [ fixes bug #39507 ] * gui/component/select-names/e-select-names.c (search_result): new function, sync the models after we do a search. (addressbook_model_set_uri): connect to search_result. svn path=/trunk/; revision=20260
* fix compiler warnings about deprecated functions.Chris Toshok2003-03-125-77/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-11 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_init): fix compiler warnings about deprecated functions. (e_select_names_child_free): unref the table model. (remove_address): re-enable. (section_right_click_cb): this is an ETable callback now. (e_select_names_add_section): remove a gross gross awful hack, and make the recipient tables ETables instead EEntry's. We lose the nice underlining, but we can add that back in as another ETable style (like strikeout and bold), and we also fix the longstanding scrolling problems (like bug #25148) and can finally remove addresses by double clicking on them (which is also a bug someplace I think.. dunno the # offhand.) * gui/component/select-names/e-select-names-table-model.c (clear_info): always set the count to -1, regardless of what model->data is. * gui/component/select-names/e-select-names-model.c: remove some unused enums. * gui/component/select-names/Makefile.am (etspec_DATA): add e-select-names-section.etspec * gui/component/select-names/e-select-names-section.etspec: new file, spec for the To:/Cc:/Bcc: etable's in the select-names dialog. svn path=/trunk/; revision=20259
* re-enable in build, include e-destination.h. For #39256.Not Zed2003-03-101-2/+1
| | | | | | | | | 2003-03-11 Not Zed <NotZed@Ximian.com> * gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list): re-enable in build, include e-destination.h. For #39256. svn path=/trunk/; revision=20229
* Likewise. Likewise. Likewise. Likewise. Likewise. (ebook_create):Ettore Perazzoli2003-03-075-7/+6
| | | | | | | | | | | | | | | | | * backend/ebook/load-pine-addressbook.c (ebook_create): Likewise. * backend/ebook/load-gnomecard-addressbook.c (ebook_create): Likewise. * backend/ebook/evolution-vcard-importer.c (ebook_create): Likewise. * backend/ebook/evolution-ldif-importer.c (ebook_create): Likewise. * backend/ebook/test-client.c (get_cursor_cb): Likewise. (ebook_create): Likewise. * gui/widgets/e-minicard.c (e_minicard_set_property): Likewise. (card_modified_cb): Likewise. (e_minicard_event): Likewise. * gui/widgets/gal-view-minicard.c (column_width_changed): Likewise. * gui/widgets/test-minicard-view.c (ebook_create): Likewise. * gui/widgets/gal-view-treeview.c (column_width_changed): Likewise. svn path=/trunk/; revision=20203
* removed. (owner_unset_cb): Basically a noop, the shell does the quit, weNot Zed2003-03-051-10/+3
| | | | | | | | | | | 2003-03-05 Not Zed <NotZed@Ximian.com> * gui/component/addressbook-component.c (bonobo_main_quit_cb): removed. (owner_unset_cb): Basically a noop, the shell does the quit, we just note we have no owner anymore. svn path=/trunk/; revision=20164
* Fixes #37881JP Rosevear2003-03-051-1/+1
| | | | | | | | | | | | 2003-03-04 JP Rosevear <jpr@ximian.com> Fixes #37881 * gui/component/select-names/e-simple-card-bonobo.c (impl_SimpleCard_get): if we get a null value, send back the empty string svn path=/trunk/; revision=20159
* reflect prior column additionJP Rosevear2003-03-053-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-04 JP Rosevear <jpr@ximian.com> * gui/component/select-names/e-select-names.etspec: reflect prior column addition * gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): set the arg properly * gui/component/select-names/Evolution-Addressbook-SelectNames.idl: add Icscalendar to field list * backend/pas/pas-backend-ldap.c: add icscalendar to prop list * backend/ebook/e-card.h: add icscalendar data member * backend/ebook/e-card.c: add icscalendar to list and its parse routine (e_card_get_vobject): add icscalendar prop value (parse_icscalendar): parse routine (e_card_class_init): add icscalendar arg (e_card_destroy): destroy icscalendar member (e_card_set_arg): set icscalendar (e_card_init): init icscalendar (e_card_get_arg): return icscalendar * backend/ebook/e-card-simple.c (field_data): add icscalendar * backend/ebook/e-card-simple.h: ditto svn path=/trunk/; revision=20153
* (e_select_names_new): Don't set the "modal" property throughEttore Perazzoli2003-03-041-1/+3
| | | | | | | g_object_new(). (e_select_names_init): Explictly make the dialog modal here. svn path=/trunk/; revision=20131
* (create_minicard_view): No needEttore Perazzoli2003-03-041-5/+1
| | | | | | to do any reparenting here; the widget is created with no parent. svn path=/trunk/; revision=20129
* (e_select_names_init): Instead of using gtk_widget_unparent(),Ettore Perazzoli2003-03-041-2/+2
| | | | | | | | remove the widget from the container using gtk_container_remove(). This fixes a bunch of crashers in all the places using the ESelectNames widget/control. svn path=/trunk/; revision=20127
* Build libecontacteditor as an uninstalled shared library.Dan Winship2003-03-016-21/+21
| | | | | | | | | | | | | | | | | | | | | | * gui/contact-editor/Makefile.am: Build libecontacteditor as an uninstalled shared library. * gui/contact-list-editor/Makefile.am: Likewise for libecontactlisteditor * gui/merging/Makefile.am: and libecardmerging * gui/search/Makefile.am: and libeaddressbooksearch * gui/widgets/Makefile.am: and libeminicard * printing/Makefile.am: and libecontactprint * gui/component/Makefile.am (libevolution_addressbook_la_LIBADD): Update for new library names (and get rid of libtool portability warnings). svn path=/trunk/; revision=20112
* Remove these from here; talking to the mailer doesn't really belong at theDan Winship2003-03-017-8/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | * backend/ebook/e-card.c (e_card_list_send, e_card_send): Remove these from here; talking to the mailer doesn't really belong at the libebook level anyway. * backend/ebook/Makefile.am: Remove Evolution-Composer CORBA stuff, which fixes some linking problems on OS X. * gui/widgets/e-addressbook-util.c (e_addressbook_send_card_list, e_addressbook_send_card): Move from e-card.c and rename. * gui/widgets/Makefile.am: move Evolution-Composer CORBA stuff here * gui/widgets/e-addressbook-view.c (send_as, send_to, e_addressbook_view_send, e_addressbook_view_send_to): Update for new function names. * gui/contact-list-editor/e-contact-list-editor.c (file_send_as_cb, file_send_to_cb): Likewise * gui/contact-editor/e-contact-editor.c (file_send_as_cb, file_send_to_cb): Likewise svn path=/trunk/; revision=20103
* use g_signal_connect here, not swapped... although since we pass theChris Toshok2003-02-285-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-27 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (book_open_cb): use g_signal_connect here, not swapped... although since we pass the widget as the closure it really doesn't matter. (load_uri_auth_cb): use a GtkDialog here. (search_result): same. * gui/component/select-names/e-simple-card-bonobo.h: add prototype for e_simple_card_bonobo_construct to fix warning. * gui/widgets/e-addressbook-view.c (create_alphabet): remove call to gtk_widget_set_usize. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): gtk_window_set_policy => gtk_window_set_resizable. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): same. svn path=/trunk/; revision=20095
* if we fail to activate factories for a given protocol, return.Chris Toshok2003-02-271-62/+14
| | | | | | | | | | | | 2003-02-26 Chris Toshok <toshok@ximian.com> * backend/ebook/e-book.c (e_book_load_uri): if we fail to activate factories for a given protocol, return. * gui/component/ldap-config.glade: remove the two unused custom widgets to cut down on gtk warning spam. svn path=/trunk/; revision=20080
* Make libversit a shared library, update stuff for that, and clean upDan Winship2003-02-223-21/+5
| | | | | | some LDADDs in the process svn path=/trunk/; revision=19994
* Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamicDan Winship2003-02-212-5/+5
| | | | | | | libraries, so they can be portably linked into the (shared library) components. (Part 1 of N.) svn path=/trunk/; revision=19971
* revert previous changeDan Winship2003-02-206-20/+20
| | | | svn path=/trunk/; revision=19968
* oopsDan Winship2003-02-201-1/+1
| | | | svn path=/trunk/; revision=19964
* Build the subparts as (noinst) shared libraries rather than staticDan Winship2003-02-206-19/+19
| | | | | | | | | | | | | * gui/component/Makefile.am: * gui/contact-editor/Makefile.am: * gui/contact-list-editor/Makefile.am: * gui/search/Makefile.am: * gui/widgets/Makefile.am: * printing/Makefile.am: Build the subparts as (noinst) shared libraries rather than static libraries, so they can be portably linked into libevolution-addressbook.so svn path=/trunk/; revision=19963
* Make parent_class static.Dan Winship2003-02-203-3/+3
| | | | | | | | | | * gui/widgets/e-addressbook-model.c: Make parent_class static. * gui/widgets/e-addressbook-reflow-adapter.c: Likewise * gui/widgets/e-addressbook-table-adapter.c: Likewise svn path=/trunk/; revision=19961
* ignore more generated stuffChris Toshok2003-02-201-0/+1
| | | | svn path=/trunk/; revision=19960
* [ fix #38074 ] first arg is a GtkWidget. duh.Chris Toshok2003-02-201-1/+1
| | | | | | | | | | 2003-02-19 Chris Toshok <toshok@ximian.com> [ fix #38074 ] * gui/component/e-address-popup.c (add_contacts_cb): first arg is a GtkWidget. duh. svn path=/trunk/; revision=19952
* (INCLUDES): Use $(evolutionuidir)Ettore Perazzoli2003-02-201-1/+1
| | | | | | instead of $(evolution_uidir). [Pointed out by Grzegorz Goawski.] svn path=/trunk/; revision=19946
* if we can complete solely from our cached cards, callChris Toshok2003-02-181-0/+8
| | | | | | | | | | | 2003-02-17 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): if we can complete solely from our cached cards, call e_completion_end_search from here when we're done. svn path=/trunk/; revision=19925
* plug memory leak (always free val).Chris Toshok2003-02-171-2/+2
| | | | | | | | | | 2003-02-17 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (ensure_completion_uris_exist): plug memory leak (always free val). svn path=/trunk/; revision=19921
* indent properly.Chris Toshok2003-02-171-12/+12
| | | | | | | | | 2003-02-16 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_entry_new): indent properly. svn path=/trunk/; revision=19919
* disconnect search_started and search_result. (addressbook_compare): ifChris Toshok2003-02-173-55/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-16 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-reflow-adapter.c (unlink_model): disconnect search_started and search_result. (addressbook_compare): if we're loading, just compare model positions (so we just append while loading). (remove_card): use e_reflow_model_item_removed. (search_started): new function, set loading = TRUE. (search_result): new function, set loading = FALSE and emit "comparison_changed". (e_addressbook_reflow_adapter_init): init loading and the new signal ids. (e_addressbook_reflow_adapter_construct): connect "search_started" and "search_result". * gui/widgets/e-addressbook-model.h (struct _EAddressbookModelClass): add search_started signal. * gui/widgets/e-addressbook-model.c (e_addressbook_model_class_init): new signal "search_started". (book_view_loaded): emit "search_started" after "model_changed". (remove_card): simplify this, and use CARD_REMOVED all the time, instead of just in the single card case. svn path=/trunk/; revision=19916
* [ fixes bug #33066 ] new function (set_entry_changed_signals): callChris Toshok2003-02-112-46/+74
| | | | | | | | | | | | | | | | | | | | | | 2003-02-10 Chris Toshok <toshok@ximian.com> [ fixes bug #33066 ] * gui/contact-editor/e-contact-editor.c (set_urlentry_changed_signal_field): new function (set_entry_changed_signals): call set_urlentry_changed_signal_field for entry-web, entry-caluri, and entry-fburl. (fill_in_field): add handling for EUrlEntry's. (extract_field): same. (enable_widget): same. (e_contact_editor_create_date): show the widget. (e_contact_editor_create_web): same, create a url entry. (set_urlentry_changed_signal_field): new function * gui/contact-editor/contact-editor.glade: entry-web, entry-caluri, and entry-fburl are all custom widgets now. svn path=/trunk/; revision=19879
* gone. (match_initials): gone. (book_query_sexp): remove the primaryChris Toshok2003-02-101-47/+17
| | | | | | | | | | | | | | | | | | | | | | | 2003-02-09 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (sexp_initials): gone. (match_initials): gone. (book_query_sexp): remove the primary handling. (book_query_score): same. * backend/ebook/e-card.c (e_card_set_property): g_value_get_pointer => g_value_get_object for "category_list". * backend/ebook/e-book.c (struct _EBookPrivate): add a comment. * backend/pas/pas-backend-ldap.c (func_beginswith): performance at the cost of a tiny bit of correctness. If the ldap server doesn't support evolutionPerson don't query on fileAs, use sn (since that's effectively what gets used in the display when fileAs isn't supported.) svn path=/trunk/; revision=19863
* lots of changes here. should be a big performance gain. god i hope this isChris Toshok2003-02-101-228/+104
| | | | | | | | | | 2003-02-09 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c: lots of changes here. should be a big performance gain. god i hope this is finally right. svn path=/trunk/; revision=19860
* [ huge change, all for 1 little performance problem :) fixes #18207 ] useChris Toshok2003-02-084-59/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-08 Chris Toshok <toshok@ximian.com> [ huge change, all for 1 little performance problem :) fixes #18207 ] * gui/widgets/e-addressbook-model.c (get_view): use e_book_check_static_capability here to make things a little prettier. (remove_card): complain about my life, and add code to use one "model_changed" signal if we get back a list of cards instead of multiple "card_removed" signals. * gui/widgets/e-addressbook-model.h: little clean up. * gui/widgets/e-addressbook-view.c (delete): write a bulk-remove case for this. if the backend supports it, send all the ids at once. otherwise loop over the ids. (e_addressbook_view_delete_selection): fake a CardAndBook structure and call delete, instead of duplicating the code in 2 places. * gui/component/addressbook.c (delete_contact_cb): don't call e_contact_editor_confirm_delete here, it's handled by the EAddressbookView. * backend/pas/pas-card-cursor.c (pas_card_cursor_construct): fix a compiler warning about a stupid crash. * backend/pas/pas-book.h (PASOperation): RemoveCard -> RemoveCards. (PASRemoveCardsReques): char *id -> GList *ids. (PASRequest): PASRemoveCardRequest -> PASRemoveCardsRequest. * backend/pas/pas-book.c (pas_book_queue_remove_cards): build up a GList from the id sequence. (pas_book_respond_remove): notifyCardRemoved -> notifyCardsRemoved. (impl_GNOME_Evolution_Addressbook_Book_removeCards): rename. (pas_book_free_request): free the idlist for RemoveCards. (pas_book_class_init): removeCard -> removeCards. * backend/pas/pas-book-view.h: change prototype for pas_book_view_notify_remove, and add prototype for pas_book_view_notify_remove_1. * backend/pas/pas-book-view.c (pas_book_view_notify_remove_1): build up a list and call pas_book_view_notify_remove. (pas_book_view_notify_remove): build up the corba id sequence and call BookViewListener::notifyCardsRemoved. * backend/pas/pas-backend.h: remove_card -> remove_cards. * backend/pas/pas-backend.c (pas_backend_remove_cards): rename from _remove_card. (process_client_requests): RemoveCard -> RemoveCards and _remove_card -> _remove_cards. * backend/pas/pas-backend-ldap.c (check_schema_support): g_strcasecmp -> g_ascii_strcasecmp. (remove_card_handler): _remove => _remove_1. (modify_card_modify_handler): same. (pas_backend_ldap_process_remove_cards): rename from _remove_card. (pas_backend_ldap_class_init): _remove_card -> _remove_cards. * backend/pas/pas-backend-file.c (pas_backend_file_class_init): remove_card -> remove_cards. (pas_backend_file_get_static_capabilities): add "bulk-removes". (pas_backend_file_process_remove_cards): rewrite this function largely, so that it handles lists of ids. first we loop through and for every successful deletion we build a list of deleted ECards. Then for each view we build a list (a subset of the deleted ECard list) and pass back that list to the view. (pas_backend_file_process_modify_card): use _remove_1 instead of _remove. (ecard_matches_search): new function. * backend/pas/pas-backend-card-sexp.c (pas_backend_card_sexp_match_vcard): rewrite in terms of _match_ecard. (pas_backend_card_sexp_match_ecard): new function, the guts from _match_vcard. * backend/pas/pas-backend-card-sexp.h: add prototype for pas_backend_card_sexp_match_ecard. * backend/idl/addressbook.idl: the card removal stuff now takes CardIdList. * backend/ebook/e-book.c (e_book_get_static_capabilities): cache successful capability queries (since they're static). (e_book_check_static_capability): new, convenience function to check if a particular capability is supported. (e_book_remove_card_by_id): build a single element GList and call e_book_remove_cards. (e_book_remove_cards): build up a CORBA sequence from the GList and call Book::removeCards. (e_book_dispose): free the cached capabilities string. * backend/ebook/e-book.h: add new prototypes for e_book_check_static_capability and e_book_remove_cards. * backend/ebook/e-book-view.h (struct _EBookViewClass): rename "card_removed" signal to "cards_removed". * backend/ebook/e-book-view.c (e_book_view_do_removed_event): id -> ids, and free the id list. (e_book_view_check_listener_queue): CardRemovedEvent -> CardsRemovedEvent. * backend/ebook/e-book-view-listener.c (e_book_view_listener_queue_response): free the id list. (e_book_view_listener_queue_idlist_event): new function, used for cards_removed. (e_book_view_listener_queue_status_event): id -> ids. (e_book_view_listener_queue_sequence_event): same. (e_book_view_listener_queue_message_event): same. (impl_BookViewListener_notify_cards_removed): call queue_idlist_event. (e_book_view_listener_dispose): free the id list. (e_book_view_listener_class_init): track change to idl call. * backend/ebook/e-book-view-listener.h (EBookViewListenerOperation): CardRemovedEvent -> CardsRemovedEvent. (EBookViewListenerResponse): char *id -> GList *ids. * backend/ebook/e-book-listener.c (impl_BookListener_respond_r svn path=/trunk/; revision=19854
* check the status, not the book, and unref the book here.Chris Toshok2003-02-076-61/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-06 Chris Toshok <toshok@ximian.com> * gui/component/e-address-popup.c (email_table_save_card_cb): check the status, not the book, and unref the book here. (contact_editor_cb): same. (start_query): unref the book in the failure case. (add_card_idle_cb): addressbook_load_default_book returns void now. (edit_contact_info_cb): same. (e_address_popup_query): same. * gui/component/addressbook.c (control_activate_cb): track change to addressbook_load_uri return type. (set_prop): same. (addressbook_load_uri): return type is void now. (addressbook_load_default_book): same. * gui/component/addressbook.h: addressbook_load_uri/addressbook_load_default_book return void now. * conduit/address-conduit.c (start_addressbook_server): e_book_load_default_book returns void now. * backend/ebook/e-book-util.h: track changes to return types. * backend/ebook/e-book-util.c (e_book_load_address_book_by_uri): fallout from change to e_book_load_uri. return type for this function is void now too. (e_book_use_address_book_by_uri): same. (e_book_use_default_book): same. (e_book_load_default_book): same. (got_uri_book_cb): if unsuccessful and book is non-NULL, unref it here. (got_default_book_cb): same. * backend/ebook/e-book.c (e_book_load_uri): no longer return a gboolean. any error is communicated to the callback. * backend/ebook/e-book.h: e_book_load_uri no longer returns a gboolean (it's void.) * backend/ebook/evolution-ldif-importer.c (ebook_create): track change to the e_book_load_uri family of functions. * backend/ebook/test-client-list.c (ebook_create): same. * backend/ebook/test-client.c (ebook_create): same. * backend/ebook/load-pine-addressbook.c (ebook_create): same. * backend/ebook/evolution-vcard-importer.c (ebook_create): same. svn path=/trunk/; revision=19839
* Use different tmp file names so these rules can be executed in parallelEttore Perazzoli2003-02-071-5/+6
| | | | | | | | | | | | | | | * backend/ebook/Makefile.am (e-book-marshal.c, e-book-marshal.h): Use different tmp file names so these rules can be executed in parallel without interfering with each otehr. * backend/pas/Makefile.am: Make the ORBit compilation work properly with parallel makes (i.e. make sure it does not spawn multiple orbit-idl processes on the same IDL file at the same time). * gui/component/select-names/Makefile.am: Likewise. * backend/ebook/Makefile.am: Likewise. svn path=/trunk/; revision=19834
* s/PACKAGE/GETTEXT_PACKAGE/ in gettext initDan Winship2003-02-071-2/+2
| | | | svn path=/trunk/; revision=19818
* Remove cruft, rename ICONSDIR to IMAGESDIR. (serverdir, gladedir): RemoveDan Winship2003-02-064-35/+29
| | | | | | | | | | | | | | | | | | * gui/component/Makefile.am (INCLUDES): Remove cruft, rename ICONSDIR to IMAGESDIR. (serverdir, gladedir): Remove defintions. * gui/component/addressbook-component.c (IS_CONTACT_TYPE): use g_ascii_strcasecmp (add_creatable_item): s/ICONSDIR/IMAGESDIR/ * gui/component/component-factory.c: #include <string.h> * gui/component/e-address-widget.c: Likewise. (e_address_widget_destroy): s/gtk_idle_remove/g_source_remove/ (e_address_widget_schedule_query): s/gtk_idle_add/g_idle_add/ svn path=/trunk/; revision=19786
* Remove cruft. (serverdir, gladedir, etspecdir): Remove definitionsDan Winship2003-02-064-10/+2
| | | | | | | | | | | | | | | | | * gui/component/select-names/Makefile.am (INCLUDES): Remove cruft. (serverdir, gladedir, etspecdir): Remove definitions * gui/component/select-names/e-select-names.c: #include <string.h> * gui/component/select-names/e-select-names-popup.c (init_html_mail): Remove deprecated gtk_check_menu_item_set_show_toggle call. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_entry_free): s/gtk_timeout_remove/g_source_remove/ svn path=/trunk/; revision=19785
* Remove cruft. (gladedir, etspecdir): Remove definitions. (glade_DATA):Dan Winship2003-02-067-31/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/widgets/Makefile.am (INCLUDES): Remove cruft. (gladedir, etspecdir): Remove definitions. (glade_DATA): Empty, so remove it. * gui/widgets/e-addressbook-reflow-adapter.c: #include <string.h> (addressbook_get_property): Remove unused variable * gui/widgets/e-addressbook-view.c: #include <string.h> (get_selection_model): Add a g_return_val_if_reached. * gui/widgets/e-minicard.c: #include string.h, gtkmain.h, gnome-canvas-pixbuf.h (field_changed): s/gtk_object_unref/g_object_unref/ (get_left_width): Remove unused variable * gui/widgets/e-minicard-control.c: #include <string.h> (pstream_load, pstream_save): Use g_ascii_strcasecmp * gui/widgets/e-minicard-view.c: #include <string.h> * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_new): s/gtk_type_new/g_object_new/ svn path=/trunk/; revision=19784
* Remove cruft. Define in terms of privdatadirDan Winship2003-02-062-3/+1
| | | | | | | * gui/merging/Makefile.am (INCLUDES): Remove cruft. * gui/search/Makefile.am (ruledir): Define in terms of privdatadir svn path=/trunk/; revision=19783
* Remove cruft, s/ICONSDIR/IMAGESDIR/ (gladedir, etspecdir): RemoveDan Winship2003-02-063-12/+7
| | | | | | | | | | | | | | | * gui/contact-list-editor/Makefile.am (INCLUDES): Remove cruft, s/ICONSDIR/IMAGESDIR/ (gladedir, etspecdir): Remove definitions. * gui/contact-list-editor/e-contact-list-editor.c: #include <string.h> (e_contact_list_editor_init): s/ICONSDIR/IMAGESDIR/ (e_contact_list_editor_new): s/gtk_object_ref/g_object_ref/ * gui/contact-list-editor/e-contact-list-model.c: #include <string.h> svn path=/trunk/; revision=19782
* Remove some cruft. rename ICONSDIR to IMAGESDIR. (images_DATA): InstallDan Winship2003-02-065-32/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/contact-editor/Makefile.am (INCLUDES): Remove some cruft. rename ICONSDIR to IMAGESDIR. (images_DATA): Install arrow.png in imagesdir instead of privdatadir. * gui/contact-editor/e-contact-quick-add.c: #include <string.h> * gui/contact-editor/e-contact-editor.c: #include <string.h> (e_contact_editor_init): s/EVOLUTION_ICONSDIR/EVOLUTION_IMAGESDIR/ (e_contact_editor_new): s/gtk_object_ref/g_object_ref/ (_replace_button): Look in imagesdir, not privdatadir (_phone_arrow_pressed): Remove call to deprecated gtk_check_menu_item_set_show_toggle. (_email_arrow_pressed): Likewise (_address_arrow_pressed): Likewise (set_address_field): Remove unused variable (enable_widget): s/gtk_entry_set_editable/gtk_editable_set_editable/ * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): s/EVOLUTION_ICONSDIR/EVOLUTION_IMAGESDIR (e_contact_editor_address_set_property): s/gtk_entry_set_editable/gtk_editable_set_editable/ * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): s/EVOLUTION_ICONSDIR/EVOLUTION_IMAGESDIR (e_contact_editor_fullname_set_property): Likewise. svn path=/trunk/; revision=19781
* Replace deprecated glade_gnome_init() with glade_init().Dan Winship2003-02-062-2/+2
| | | | | | | | | | | | | * gui/component/addressbook-config.c (main): Replace deprecated glade_gnome_init() with glade_init(). * gui/contact-editor/test-editor.c (main): Likewise. * printing/test-contact-print-style-editor.c (main): Likewise. * printing/test-print.c (main): Likewise. svn path=/trunk/; revision=19760
* updated for e scroll frame --> gtk scrolled windowRadek Doulik2003-02-052-10/+10
| | | | svn path=/trunk/; revision=19736
* [ pull forward Jack Jia's fix for #34900 ] use a weak ref for the fileChris Toshok2003-02-041-9/+4
| | | | | | | | | | | | | | | 2003-02-03 Chris Toshok <toshok@ximian.com> [ pull forward Jack Jia's fix for #34900 ] * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): use a weak ref for the file selector. (e_contact_list_save_as): same. (destroy_it): rewrite this as a weak ref notify function. (close_it): remove frees of the info (it's freed in the weak ref function). (save_it): same. svn path=/trunk/; revision=19722
* pull forward Jack Jia's fix for #33672, but convert it to use unlinkChris Toshok2003-02-041-13/+16
| | | | | | | | | | 2003-02-03 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (remove_folder): pull forward Jack Jia's fix for #33672, but convert it to use unlink instead of the gnome-vfs stuff. svn path=/trunk/; revision=19721
* add a scrolled window (SHADOW_IN) around the address textview.Chris Toshok2003-01-281-25/+36
| | | | | | | | | 2003-01-27 Chris Toshok <toshok@ximian.com> * gui/contact-editor/contact-editor.glade: add a scrolled window (SHADOW_IN) around the address textview. svn path=/trunk/; revision=19649
* rename the category entry to entry-categories.Chris Toshok2003-01-272-3/+13
| | | | | | | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/contact-editor.glade: rename the category entry to entry-categories. * gui/contact-editor/e-contact-editor.c (set_entry_changed_signals): use the specialized "changed" signal handlers for entry-company and entry-fullname. svn path=/trunk/; revision=19640
* i need to sleep more.Chris Toshok2003-01-261-1/+0
| | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am: i need to sleep more. svn path=/trunk/; revision=19635
* need to assign this here or else the lib doesn't get built.Chris Toshok2003-01-261-0/+1
| | | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (componentdir): need to assign this here or else the lib doesn't get built. svn path=/trunk/; revision=19634
* Remove definition; this is now in configure.in. Likewise. Likewise.Ettore Perazzoli2003-01-253-4/+0
| | | | | | | | | * gui/component/Makefile.am (iconsdir): Remove definition; this is now in configure.in. * gui/contact-editor/Makefile.am (iconsdir): Likewise. * gui/contact-list-editor/Makefile.am (iconsdir): Likewise. svn path=/trunk/; revision=19619
* [ fixes bug #34898 ] handle modifications to email addresses in contactSean Gao2003-01-241-0/+27
| | | | | | | | | | 2003-01-23 Sean Gao <Sean.Gao@Sun.COM> [ fixes bug #34898 ] * gui/widgets/e-minicard.c (field_changed): handle modifications to email addresses in contact lists. svn path=/trunk/; revision=19604
* Remove definition; no need to set it here since it's now defined inEttore Perazzoli2003-01-241-1/+0
| | | | | | | | | * gui/component/select-names/Makefile.am (componentdir): Remove definition; no need to set it here since it's now defined in configure.in * gui/component/Makefile.am (componentdir): Likewise. svn path=/trunk/; revision=19594
* Define componentdir instead of COMPONENT_DIR. Set it toEttore Perazzoli2003-01-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | * configure.in (idldir): Define componentdir instead of COMPONENT_DIR. Set it to $privlibdir/components instead of $libdir/evolution-$(BASE_VERSION)/components. * gui/component/select-names/Makefile.am (componentdir): Remove definition; no need to set it here since it's now defined in configure.in * gui/component/Makefile.am (componentdir): Likewise. * gui/Makefile.am (componentdir): Removed definition; this is now defined in configure.in. * Makefile.am (componentdir): Removed definition; this is now defined in configure.in. * Makefile.am (componentdir): Removed definition; this is now defined in configure.in. svn path=/trunk/; revision=19588
* Version using $(BASE_VERSION). (etspecdir): Likewise. (iconsdir):Ettore Perazzoli2003-01-2311-109/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/select-names/Makefile.am (gladedir): Version using $(BASE_VERSION). (etspecdir): Likewise. (iconsdir): Likewise. * gui/contact-list-editor/Makefile.am (iconsdir): Version using $(BASE_VERSION). (gladedir): Likewise. * gui/merging/Makefile.am (gladedir): Version using $(BASE_VERSION). * gui/search/Makefile.am (ruledir): Version using $(BASE_VERSION). * gui/component/Makefile.am (INCLUDES): Update EVOLUTION_IMAGESDIR to be versioned through $(BASE_VERSION). * gui/widgets/e-addressbook-view.c (init_collection): Use EVOLUTION_GALVIEWSDIR. * gui/widgets/Makefile.am (INCLUDES): Define EVOLUTION_GALVIEWSDIR and update EVOLUTION_IMAGESDIR. svn path=/trunk/; revision=19551
* applied patch from Frederic Crozat <fcrozat@mandrakesoft.com>Radek Doulik2003-01-221-18/+18
| | | | svn path=/trunk/; revision=19540
* Change dialog from Yes/No/Cancel to Discard/Cancel/Save to match the HIG.Ettore Perazzoli2003-01-159-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/widgets/e-addressbook-util.c (e_addressbook_prompt_save_dialog): Change dialog from Yes/No/Cancel to Discard/Cancel/Save to match the HIG. * gui/search/e-addressbook-search-dialog.c (e_addressbook_search_dialog_init): Change dialog from OK/Cancel to Cancel/OK to match the HIG. * gui/contact-editor/e-contact-save-as.c (file_exists): Change dialog from Overwrite/Cancel to Cancel/Overwrite to match the HIG. * gui/contact-editor/e-contact-quick-add.c (build_quick_add_dialog): Fix typo s/reponse/response/. Also change the dialog to be Edit/Cancel/OK instead of OK/Edit/Cancel to match the HIG. * gui/contact-editor/e-contact-editor.c (e_contact_editor_confirm_delete): Make alert cancel/delete instead of delete/cancel to match the HIG. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): Make dialog Cancel/OK instead of OK/Cancel to match the HIG. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): Make dialog Cancel/OK instead of OK/Cancel to match the HIG. * gui/component/select-names/e-select-names.c (e_select_names_init): Make dialog Cancel/OK instead of OK/Cancel to match the HIG. svn path=/trunk/; revision=19472
* Add $(schema_DATA).Ettore Perazzoli2003-01-151-3/+4
| | | | | | | | | | | * gui/component/Makefile.am (EXTRA_DIST): Add $(schema_DATA). * Makefile.am: Do not dist the .server.in files; just dist the .server.in.in ones. (EXTRA_DIST): Add GNOME_Evolution_WombatLDAP.server.in.in and GNOME_Evolution_WombatNOLDAP.server.in.in svn path=/trunk/; revision=19451
* try to load the uri again if it failed previously. (book_open_cb): setChris Toshok2003-01-101-2/+27
| | | | | | | | | | | | | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (control_activate_cb): try to load the uri again if it failed previously. (book_open_cb): set failed_to_load based on the response. (set_prop): initialize failed_to_load to FALSE before we kick off the first load. * backend/pas/pas-book-factory.c (pas_book_factory_process_request): if the load_uri fails, remove it from the hashtable and free it, so we'll try to load it again from scratch the next time it's requested instead of serving up a backend that doesn't function. * backend/pas/pas-backend.c (pas_backend_get_uri): we need to be able to get the uri from backends that aren't loaded (so we can remove them from the hashtable.) svn path=/trunk/; revision=19392
* #include gtklabel.h, fixes an unresolved symbol.Chris Toshok2003-01-101-0/+1
| | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-popup.c: #include gtklabel.h, fixes an unresolved symbol. svn path=/trunk/; revision=19387
* call e_select_names_bonobo_construct on the newly created object.Chris Toshok2003-01-101-0/+2
| | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-bonobo.c (e_select_names_bonobo_new): call e_select_names_bonobo_construct on the newly created object. svn path=/trunk/; revision=19384
* addressbook-config.etspec is gone.Chris Toshok2003-01-104-6353/+5991
| | | | | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am: addressbook-config.etspec is gone. * gui/component/addressbook-config.c: make the sources table be a gtktreeview instead of an etable. * gui/component/ldap-config.glade: remove all references to gnome-hint.png svn path=/trunk/; revision=19380
* fix parameter types here (this signal isn't generated from an ETable.)Chris Toshok2003-01-105-1/+5
| | | | | | | | | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-minicard.c (column_width_changed): fix parameter types here (this signal isn't generated from an ETable.) * gui/widgets/gal-view-factory-minicard.c: include e-util.h * gui/widgets/e-minicard.h: include gnome-canvas.h here. * gui/widgets/e-addressbook-table-adapter.c: #include e-destination.h here. * gui/widgets/e-minicard.c: same. svn path=/trunk/; revision=19378
* remove the select names stuff (the Related Contacts button/entry.)Chris Toshok2003-01-103-2537/+2285
| | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.[ch]: remove the select names stuff (the Related Contacts button/entry.) * gui/contact-editor/contact-editor.glade: same. svn path=/trunk/; revision=19376
* comment out the factory oaf_server, and change the location of theChris Toshok2003-01-103-6/+18
| | | | | | | | | | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in: comment out the factory oaf_server, and change the location of the SelectNames controls to be OAFIID:GNOME_Evolution_Addressbook_Factory so the normal addressbook.so will create them. * gui/component/select-names/Makefile.am (libeselectnames_la_SOURCES): remove the e-select-names-factory.[ch] stuff for the time being. * gui/component/component-factory.c (factory): we're now (for the time being) the factory for the select names control. svn path=/trunk/; revision=19369
* oops, don't include e-treeview-selection-model.h unless we're building theChris Toshok2003-01-091-1/+1
| | | | | | | | | 2003-01-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c: oops, don't include e-treeview-selection-model.h unless we're building the treeview. svn path=/trunk/; revision=19304
* add in the schema entry for minimum_query_length.Chris Toshok2003-01-091-0/+11
| | | | | | | | | 2003-01-08 Chris Toshok <toshok@ximian.com> * gui/component/apps_evolution_addressbook.schemas: add in the schema entry for minimum_query_length. svn path=/trunk/; revision=19301
* add E_ADDRESSBOOK_VIEW_TREEVIEW to the enum, ifdef'ed out.Chris Toshok2003-01-093-18/+159
| | | | | | | | | | | | | | | | | | | | | | | 2003-01-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.h: add E_ADDRESSBOOK_VIEW_TREEVIEW to the enum, ifdef'ed out. * gui/widgets/e-addressbook-view.c (e_addressbook_view_class_init): add ifdefed treeview code. (init_collection): same. (display_view): same. (get_selection_model): same. (treeview_row_activated): same. (create_treeview_view): same. (change_view_type): same.xo (e_addressbook_view_print): same. (e_addressbook_view_print_preview): same. * gui/widgets/Makefile.am: add in the treeview sources (commented out). svn path=/trunk/; revision=19300
* add parent arg.Chris Toshok2003-01-097-1/+1063
| | | | | | | | | | | | | | | | 2003-01-08 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-minicard.c (gal_view_minicard_edit): add parent arg. * gui/widgets/e-addressbook-treeview-adapter.[ch]: new files, for a GtkTreeView view of contacts. * gui/widgets/gal-view-treeview.[ch]: same * gui/widgets/gal-view-favroty-treeview.[ch]: same svn path=/trunk/; revision=19299
* $(datadir)/evolution/images instead of $(datadir)/images/evolution.Ettore Perazzoli2003-01-094-22/+22
| | | | | | | | | | * gui/component/Makefile.am: $(datadir)/evolution/images instead of $(datadir)/images/evolution. * gui/contact-editor/Makefile.am: Likewise. * gui/contact-list-editor/Makefile.am (iconsdir): Likewise. * gui/widgets/Makefile.am: Likewise. svn path=/trunk/; revision=19295
* remove idldir definition. (It's defined in configure.in now)Dan Winship2003-01-061-2/+0
| | | | | | | * Makefile.am: remove idldir definition. (It's defined in configure.in now) svn path=/trunk/; revision=19242
* [ fixes the non-ui portion of #36183 ] use the entry'sChris Toshok2003-01-024-15/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-01 Chris Toshok <toshok@ximian.com> [ fixes the non-ui portion of #36183 ] * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): use the entry's minimum_query_length instead of a constant here. (e_select_names_completion_set_minimum_query_length): new function, set the entry's minimum_query_length. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_entry_new): set the minimum_query length after setting the completion books. (read_completion_settings_from_db): rename read_completion_books_from_db to this, and read the minimum_query_length too. (db_listener): rename uris_listener to this, and listen for changes on both the uris and minimum_query_length settings. * gui/component/select-names/e-select-names-completion.h: add prototype for e_select_names_completion_set_minimum_query_length. * gui/component/select-names/e-select-names-manager.h: add minimum_query_length to struct _ESelectNamesManager. svn path=/trunk/; revision=19199
* One more typoAndrew V. Samoilov2002-12-271-1/+1
| | | | svn path=/trunk/; revision=19181
* Typo fixedAndrew V. Samoilov2002-12-271-1/+1
| | | | svn path=/trunk/; revision=19180
* (addressbook_config_control_new): Made it return anEttore Perazzoli2002-12-202-2/+4
| | | | | | | EvolutionConfigControl instead of a BonoboControl (and removed a bogus EvolutionConfigControl -> BonoboControl cast). svn path=/trunk/; revision=19168
* [ fixes bug #34897 ] don't free the return of e_card_simple_get_const, asChris Toshok2002-12-191-1/+1
| | | | | | | | | | | 2002-12-17 Chris Toshok <toshok@ximian.com> [ fixes bug #34897 ] * gui/widgets/e-addressbook-table-adapter.c (addressbook_value_at): don't free the return of e_card_simple_get_const, as this causes a double free later on. svn path=/trunk/; revision=19163
* convert the clist in here to a GtkTreeView. your guess is as good as mineChris Toshok2002-12-191-38/+62
| | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * gui/component/e-address-popup.c: convert the clist in here to a GtkTreeView. your guess is as good as mine if it works (i can't test it at present) but it compiles. svn path=/trunk/; revision=19162
* g_string_sprintfa -> g_string_append_printf. (create_alphabet): same.Chris Toshok2002-12-192-7/+7
| | | | | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (jump_to_letters): g_string_sprintfa -> g_string_append_printf. (create_alphabet): same. (create_minicard_view): remove gtk_widget_{push,pop}_visual. * gui/widgets/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. svn path=/trunk/; revision=19161
* drop use of "font" arg. (get_left_width): use pango to calculate thisChris Toshok2002-12-1922-120/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard.c (e_minicard_realize): drop use of "font" arg. (get_left_width): use pango to calculate this instead of a GdkFont. * gui/widgets/e-minicard-view.c: drop include of e-unicode.h. * gui/widgets/e-minicard-label.c (e_minicard_label_construct): don't need to create the font anymore. * gui/search/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/search/e-addressbook-search-dialog.c (e_addressbook_search_dialog_new): use g_object_new instead of gtk_type_new. * gui/merging/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/contact-list-editor/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/contact-list-editor/e-contact-list-editor.c (is_named): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (fill_in_info): same. * gui/contact-editor/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (e_contact_list_save_as): same. * gui/contact-editor/e-contact-quick-add.c (clicked_cb): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (build_quick_add_dialog): same. * gui/contact-editor/e-contact-editor.c (phone_entry_changed): strdup (or not, if we don't need to save the value) instead of using the e_utf8 functions. (file_as_set_style): same. (name_entry_changed): same. (full_name_clicked): same. (categories_clicked): same. (set_field): same. (fill_in_field): same. (fill_in_single_field): same. (extract_field): same. (extract_single_field): same. * gui/contact-editor/e-contact-editor-fullname.c (extract_field): just strdup, it's already utf8. * gui/contact-editor/e-contact-editor-address.c (extract_field): they're all entries, use GTK_ENTRY foo here. * gui/component/select-names/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/component/select-names/e-select-names.c (e_select_names_add_section): remove the extra utf8_from_locale_string stuff. * gui/component/select-names/e-select-names-popup.c (set_uiinfo_label): gtk_container_children -> gtk_container_get_children, and remove the extra utf8 stuff. * gui/component/Makefile.am (INCLUDES): add -D*_DISABLE_DEPRECATED. * gui/component/addressbook-storage.c (addressbook_storage_init_source_uri): g_string_sprintfa -> g_string_append_printf. * gui/component/addressbook-config.c (focus_help): gtk_notebook_set_page -> gtk_notebook_set_current_page. (addressbook_source_dialog_set_source): same. (auth_optionmenu_activated): gtk_container_children -> gtk_container_get_children. (ssl_optionmenu_activated): same. (ssl_optionmenu_selected): same, and gtk_notebook_set_page -> gtk_notebook_set_current_page. (scope_optionmenu_activated): same. (set_advanced_button_state): same. (addressbook_ldap_init): hook "response" to gtk_widget_destroy to make the dialog go away when clicked. (addressbook_ldap_auth): same. (addressbook_root_dse_query): same. (do_ldap_root_dse_query): same. (addressbook_config_control_new): fix return type and cast. (main): remove call to gtk_widget_push_visual. * gui/component/addressbook-config.h: addressbook_config_control_new returns a BonoboObject, not a BonoboControl. * gui/component/addressbook.c: remove e-unicode.h include. * backend/pas/Makefile.am (INCLUDES): Add -DLIBGNOME_DISABLE_DEPRECATED. * backend/ebook/Makefile.am (INCLUDES): Add -DLIBGNOME_DISABLE_DEPRECATED. * backend/ebook/e-card.c (e_card_get_property): remove misleading comment. svn path=/trunk/; revision=19160
* oops, use strcmp, not !strcmp here.Chris Toshok2002-12-181-1/+1
| | | | | | | | | 2002-12-17 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.c (uris_listener): oops, use strcmp, not !strcmp here. svn path=/trunk/; revision=19149
* (addressbook_config_control_new): UseEttore Perazzoli2002-12-171-1/+1
| | | | | | | evolution_shell_client_corba_objref() instead of BONOBO_OBJREF() to get the Shell CORBA object. svn path=/trunk/; revision=19139
* Don't #include <e-util/e-html-utils.h>Jeffrey Stedfast2002-12-171-2/+0
| | | | | | | | | 2002-12-16 Jeffrey Stedfast <fejj@ximian.com> * gui/component/addressbook-config.c: Don't #include <e-util/e-html-utils.h> svn path=/trunk/; revision=19132
* GObject-ize this.Chris Toshok2002-12-102-75/+51
| | | | | | | | 2002-12-09 Chris Toshok <toshok@ximian.com> * gui/search/e-addressbook-search-dialog.[ch]: GObject-ize this. svn path=/trunk/; revision=19078
* pass "Addressbook" to e_passwords*. (addressbook_authenticate): same.Chris Toshok2002-12-101-3/+3
| | | | | | | | | | 2002-12-09 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (load_uri_auth_cb): pass "Addressbook" to e_passwords*. (addressbook_authenticate): same. svn path=/trunk/; revision=19072
* remove PENDING_PORT_WORK. (addressbook_search_activated): same.Chris Toshok2002-12-102-8/+1
| | | | | | | | | | | | | | 2002-12-09 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (search_cb): remove PENDING_PORT_WORK. (addressbook_search_activated): same. (addressbook_query_changed): same. * gui/component/Makefile.am (libevolution_addressbook_la_LIBADD): add libfilter.la back in. svn path=/trunk/; revision=19069
* Forgot to commit this new file.Ettore Perazzoli2002-12-101-0/+67
| | | | svn path=/trunk/; revision=19067
* #define MINICARD_CONTROL_ID.Ettore Perazzoli2002-12-101-0/+3
| | | | svn path=/trunk/; revision=19063
* connect ::response to gtk_widget_destroy so the dialog goes away.Chris Toshok2002-12-092-4/+7
| | | | | | | | | | | | 2002-12-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog): connect ::response to gtk_widget_destroy so the dialog goes away. * gui/widgets/e-minicard-label.c (e_minicard_label_construct): don't use font_gdk anymore on EText. it doesn't exist. svn path=/trunk/; revision=19059
* this uses pango now. (addressbook_height): same.Chris Toshok2002-12-091-23/+12
| | | | | | | | | | 2002-12-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-reflow-adapter.c (text_height): this uses pango now. (addressbook_height): same. svn path=/trunk/; revision=19058
* #include <string.h>.Ettore Perazzoli2002-12-0719-327/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/e-cardlist-model.c: #include <string.h>. * gui/component/addressbook-storage.c: #include <string.h>, <ctype.h>, <unistd.h>. * gui/component/addressbook-factory.c: Removed. * gui/component/addressbook-component.c: #include <bonobo/bonobo-main.h>, <unistd.h> and <string.h>. (create_view): addressbook_new_control() instead of addressbook_factory_new_control(). * gui/component/select-names/e-select-names.c (e_addressbook_create_ebook_table): Removed unused variable. (e_select_names_add_section): Removed unused variable. * gui/component/select-names/e-select-names-manager.c (focus_in_cb): Use g_source_remove() here instead of gtk_timeout_remove(). * gui/widgets/e-minicard-control.c (e_minicard_control_factory_init): Removed. (e_minicard_control_control_factory): Removed. (e_minicard_control_new): New. * gui/component/e-address-widget.c (e_address_widget_factory_init): Removed. (e_address_widget_new_control): Renamed from e_address_widget_factory_new_control(), made public. (e_address_widget_factory): Removed. * gui/component/e-address-popup.c (e_address_popup_new_control): New. (e_address_popup_factory_new_control): Removed. (e_address_popup_factory): Removed. (e_address_popup_factory_init): Removed. * gui/component/addressbook-config.c (addressbook_config_register_factory): Removed. (addressbook_config_create_control): New. * gui/component/addressbook-component.c (addressbook_component_factory_init): Removed. (addressbook_component_get_object): New. (owner_set_cb): Do not call addressbok_config_register_factory(). * gui/component/addressbook.c (addressbook_factory_init): Removed. (addressbook_new_control): Renamed from addressbook_factory_new_control(). svn path=/trunk/; revision=19041
* Use collate for sorting rather than the normal string sort. This fixes bugJeffrey Stedfast2002-12-061-1/+1
| | | | | | | | | | 2002-12-05 Jeffrey Stedfast <fejj@ximian.com> * gui/component/select-names/e-select-names.etspec: Use collate for sorting rather than the normal string sort. This fixes bug #26335 without causing bug #33933 :-) svn path=/trunk/; revision=19015
* gnomedialog -> gtkdialog stuff. print dialog is a gtkdialog now.Not Zed2002-12-023-3/+6
| | | | | | | | | | | | | | | 2002-12-02 Not Zed <NotZed@Ximian.com> * gui/widgets/e-addressbook-view.c (e_contact_print_button): gnomedialog -> gtkdialog stuff. print dialog is a gtkdialog now. * gui/contact-editor/e-contact-editor.c: include gtkstock.h 2002-11-27 Not Zed <NotZed@Ximian.com> * gui/contact-editor/e-contact-editor-address.c: #include gtkstock.h svn path=/trunk/; revision=18971
* the detail is supposed to go after the signal id, not at the end of theChris Toshok2002-11-301-1/+1
| | | | | | | | | | 2002-11-29 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard-view-widget.c (column_width_changed): the detail is supposed to go after the signal id, not at the end of the parameter list. svn path=/trunk/; revision=18958
* [ roll forward from 1.2 branch, partial fix for #31763 ] add the FindChris Toshok2002-11-291-393/+422
| | | | | | | | | 2002-11-28 Chris Toshok <toshok@ximian.com> [ roll forward from 1.2 branch, partial fix for #31763 ] * gui/component/select-names/select-names.glade: add the Find button back in. svn path=/trunk/; revision=18956
* remove the button_press_event handler (that did nothing). this makes it soChris Toshok2002-11-291-9/+0
| | | | | | | | | | | 2002-11-28 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (create_minicard_view): remove the button_press_event handler (that did nothing). this makes it so button presses actually get to the canvas (and therefore we can now drag the lines in the reflow widget). svn path=/trunk/; revision=18954
* add include for gtkstock.h.Chris Toshok2002-11-276-19/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-26 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-quick-add.c: add include for gtkstock.h. * gui/contact-list-editor/e-contact-list-model.c (e_contact_list_model_add_destination): add pre_change call. (e_contact_list_model_remove_row): same. (e_contact_list_model_remove_all): same. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_new): ref/sink the contact list editor so we don't get the floating unref warning from gtk. * gui/contact-editor/e-contact-editor.c (e_contact_editor_new): ref/sink the contact editor so we don't get the floating unref warning from gtk. (e_contact_editor_init): use g_build_filename instead of g_concat_dir_and_file. * gui/widgets/e-minicard-label.c (e_minicard_label_resize_children): use MAX (value, 0) to make sure we aren't passing negative values for clip-widths. * gui/widgets/e-minicard.c (e_minicard_realize): use MAX (value, 0) to make sure we aren't passing negative values for widths. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): use g_build_filename. svn path=/trunk/; revision=18946
* remove redundant setting of y2.Chris Toshok2002-11-275-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-26 Chris Toshok <toshok@ximian.com> * gui/widgets/e-minicard.c (e_minicard_reflow): remove redundant setting of y2. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_init): show the table. * gui/component/select-names/e-select-names-completion.c: remove an unnecessary #include. * gui/component/addressbook-storage.c (addressbook_storage_setup): use g_build_filename. * gui/component/addressbook-component.c (remove_folder): use g_build_filename. (add_creatable_item): same. (ensure_completion_uris_exist): same, and use the right gconf paths for completion uris. svn path=/trunk/; revision=18940
* use new schema for completion/uris. (uris_listener): same.Chris Toshok2002-11-275-77/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-26 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.c (read_completion_books_from_db): use new schema for completion/uris. (uris_listener): same. * gui/component/select-names/e-select-names.h: Convert to GtkDialog from GnomeDialog. * gui/component/select-names/e-select-names.c: Convert to GtkDialog from GnomeDialog. (folder_selected): use new schema for last_used_uri. (e_select_names_init): same. (e_select_names_set_default): use pango markup to set bold/not-bold. (e_select_names_add_section): don't bother creating an EEntry, we can use pango and a normal label. This also keeps us from wrapping "contacts ->" at the '-'. * gui/component/apps_evolution_addressbook.schemas: new file. * gui/component/Makefile.am: add the schema stuff. svn path=/trunk/; revision=18939
* ignore server.inChris Toshok2002-11-261-0/+1
| | | | svn path=/trunk/; revision=18917
* show the etable. (addressbook_add_server_druid): show_all before returningChris Toshok2002-11-251-1/+2
| | | | | | | | | | | 2002-11-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (query_for_supported_bases): show the etable. (addressbook_add_server_druid): show_all before returning the dialog, so the druid shows up. svn path=/trunk/; revision=18911
* [ roll forward from the 1.2 branch. fixes #25540, part of #29630, as wellChris Toshok2002-11-256-982/+1146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-23 Chris Toshok <toshok@ximian.com> [ roll forward from the 1.2 branch. fixes #25540, part of #29630, as well as other selection issues in the contact editor and ACL issues in the ldap backend ] * backend/pas/pas-backend-ldap.c (check_schema_support): reset the schema check state to FALSE if the read returned nothing (and the user had not authenticated). we'll requery if/when they auth. (query_ldap_root_dse): free the schema dn before assigning over it. (pas_backend_ldap_connect): added a diagnostic warning about the root dse query failing in anonymous mode (if it in fact did fail.) (pas_backend_ldap_process_authenticate_user): if we successfully authed, requery the root dse to pick up any attributes that might be protected, and retry the schema query if that failed before. * gui/contact-editor/e-contact-editor.c (full_name_clicked): set the dialog's editable state based on the new field "fullname_editable", and only do the Ok button handling if this flag is TRUE. (full_addr_clicked): set the dialog's editable state based on the editable state for the particular address (from editor->address_editable[]). also, only do the Ok button handling if this flag is TRUE. (_address_arrow_pressed): use the address_editable array to determine whether the address text and the mailing address checkbutton are sensitive. (enable_writable_fields): figure out if fullname_editable is TRUE/FALSE, also, init the address_editable flags based on the field list, and handle the address checkbutton. * gui/contact-editor/fulladdr.glade: change the label names to label-<name> to match {entry,combo}-<name>. * gui/contact-editor/fullname.glade: same. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_class_init): rename ARG_IS_READ_ONLY to ARG_EDITABLE, to reflect the correct sense of the flag. (e_contact_editor_fullname_set_arg): same, and make the labels sensitive/insensitive depending on the editable state of the dialog. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_class_init): rename ARG_IS_READ_ONLY to ARG_EDITABLE, to reflect the correct sense of the flag. (e_contact_editor_address_set_arg): same, and make the labels sensitive/insensitive depending on the editable state of the dialog. svn path=/trunk/; revision=18910
* roll forward the scope fix.Chris Toshok2002-11-211-1/+1
| | | | | | | | 2002-11-20 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-storage.h: roll forward the scope fix. svn path=/trunk/; revision=18875
* roll forward the fix for the contact editor.Chris Toshok2002-11-211-0/+5
| | | | | | | | | 2002-11-20 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c: roll forward the fix for the contact editor. svn path=/trunk/; revision=18874
* Pass type to bonobo_ctonrol_set_property, and also NULL terminate theNot Zed2002-11-212-2/+2
| | | | | | | | | | | | | 2002-11-21 Not Zed <NotZed@Ximian.com> * gui/component/select-names/e-select-names-bonobo.c (entry_changed): Pass type to bonobo_ctonrol_set_property, and also NULL terminate the valist. * gui/component/select-names/e-select-names-text-model.c (changed_cb): Fix signature for signal. svn path=/trunk/; revision=18871
* gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.Ettore Perazzoli2002-11-202-5/+7
| | | | | | | | * gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in, * gui/component/select-names/Makefile.am: Same changes as below for the SelectNames component. svn path=/trunk/; revision=18845
* show the custom table.Chris Toshok2002-11-191-0/+1
| | | | | | | | | 2002-11-18 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_init): show the custom table. svn path=/trunk/; revision=18834
* remove the cast to (int) - column_width is a double.Chris Toshok2002-11-193-11/+11
| | | | | | | | | | | | | | | | | | | | | 2002-11-18 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-minicard.c (gal_view_minicard_attach): remove the cast to (int) - column_width is a double. * gui/widgets/e-minicard.c (e_minicard_class_init): the height property is only readable, not readwrite. * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_class_init): make column_width a double property. (e_minicard_view_widget_set_property): don't cast to (int). column_width is double in the e-minicard-view. (e_minicard_view_widget_realize): same. (e_minicard_view_widget_get_property): use g_value_set_double for column_width. svn path=/trunk/; revision=18831
* oops, missed some "oaf"'s.Chris Toshok2002-11-181-1/+1
| | | | | | | | | 2002-11-17 Chris Toshok <toshok@ximian.com> * gui/component/select-names/Makefile.am (servers_DATA): oops, missed some "oaf"'s. svn path=/trunk/; revision=18817
* sink the popup. (e_contact_editor_build_email_ui): same.Chris Toshok2002-11-172-0/+8
| | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (e_contact_editor_build_phone_ui): sink the popup. (e_contact_editor_build_email_ui): same. (e_contact_editor_build_address_ui): same. * gui/component/addressbook-config.c (ldap_dialog_new): show everything from dialog->page down, so custom widgets show up. svn path=/trunk/; revision=18812
* ignore .server.inChris Toshok2002-11-171-0/+1
| | | | svn path=/trunk/; revision=18805
* Added rule to generate GNOME_Evolution_Addressbook.server.in fromEttore Perazzoli2002-11-165-507/+450
| | | | | | | | | | | | | | | | | | * gui/component/Makefile.am: Added rule to generate GNOME_Evolution_Addressbook.server.in from GNOME_Evolution_Addressbook.server.in.in, substituting @LIBEXECDIR@. * GNOME_Evolution_Addressbook.server.in.in: Renamed from GNOME_Evolution_Addressbook.server.in. Added @LIBEXECDIR@ before the location of the executable. * gui/component/select-names/select-names.glade: Ported to Glade 2. * gui/component/select-names/recipient.glade: Ported to Glade 2. svn path=/trunk/; revision=18794
* Use bonobo_main_quitRodney Dawes2002-11-161-1/+1
| | | | | | * gui/component/addressbook-component.c: Use bonobo_main_quit svn path=/trunk/; revision=18788
* clean this up a tad.Chris Toshok2002-11-155-133/+28
| | | | | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-factory-minicard.c: clean this up a tad. * gui/widgets/e-addressbook-view.c (init_collection): re-enable this. (setup_menus): same. * gui/widgets/gal-view-minicard.[ch]: more GObject work. svn path=/trunk/; revision=18776
* push_in = FALSE, no clue why... :) (_arrow_pressed): callChris Toshok2002-11-136-23/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-12 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (_popup_position): push_in = FALSE, no clue why... :) (_arrow_pressed): call g_signal_stop_emission here, seems to fix things. * gui/component/select-names/e-select-names.c (e_select_names_init): fix warnings. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_activate_dialog): fix warning. * gui/component/addressbook.c (forget_passwords_cb): remove the PENDING_PORT ifdef. (load_uri_auth_cb): same. (addressbook_authenticate): same. * gui/component/addressbook-factory.c (main): same. * gui/component/addressbook-storage.c (load_source_data): be silent about text nodes if they contain nothing but whitespace. svn path=/trunk/; revision=18728
* change signature to that of a weak ref notify function. (main): ::destroyChris Toshok2002-11-1218-609/+497
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-11 Chris Toshok <toshok@ximian.com> * gui/widgets/test-reflow.c (destroy_callback): change signature to that of a weak ref notify function. (main): ::destroy -> weak_ref. * gui/widgets/test-minicard.c (destroy_callback): change signature to that of a weak ref notify function. (main): ::destroy -> weak_ref. * gui/widgets/test-minicard-view.c (destroy_callback): change signature to that of a weak ref notify function. (main): ::destroy -> weak_ref. * gui/widgets/test-minicard-label.c (destroy_callback): change signature to that of a weak ref notify function. (main): ::destroy -> weak_ref. * gui/widgets/e-minicard-widget.c (e_minicard_widget_init): ifdef out the call to gnome_canvas_set_scroll_region. It doesn't seem necessary judging from the rest of the code, and it also crashes the addressbook if it's in. * gui/widgets/e-minicard-widget-test.c (destroy_callback): change signature to that of a weak ref notify function. (main): ::destroy -> weak_ref. * gui/widgets/e-minicard-control.c (free_struct): change signature to that of a weak ref notify function. (e_minicard_control_factory): ::destroy -> weak_ref. * gui/widgets/e-addressbook-view.c (e_addressbook_view_init): ::destroy -> weak_ref. (e_addressbook_view_print): same. (free_closure): change signature to that of a weak ref notify function. (e_contact_print_destroy): same. (invisible_destroyed): same. * gui/widgets/e-addressbook-util.c (e_addressbook_prompt_save_dialog): convert from GnomeDialog to GtkDialog. (e_addressbook_show_multiple_cards): same. * gui/contact-list-editor/e-contact-list-editor.c (prompt_to_save_changes): change response ids to use GTK_RESPONSE_. * gui/component/select-names/e-select-names-manager.c (clear_widget): new function. (e_select_names_manager_activate_dialog): ::destroy -> weak_ref. * gui/component/select-names/e-select-names.c (clear_widget): change signature to that of a weak ref notify function. (e_select_names_init): ::destroy -> weak_ref. * gui/component/e-address-popup.c (mini_wizard_destroy_cb): change signature to that of a weak ref notify function. (mini_wizard_new): ::destroy -> weak_ref. * gui/component/addressbook-config.c (addressbook_source_dialog_destroy): change signature to that of a weak ref notify function. (ldap_config_control_destroy_callback): same. (addressbook_add_server_druid): ::destroy -> weak_ref. (addressbook_edit_server_dialog): same. (ldap_config_control_new): same. * gui/component/addressbook.c (destroy_callback): change signature to that of a a weak ref notify function. (addressbook_factory_new_control): ::destroy -> weak_ref. * gui/merging/e-card-merging.c (response): rename clicked to this, and destroy the dialog here. (match_query_callback): ::clicked -> ::response * gui/merging/e-card-merging-book-commit-duplicate-detected.glade: convert. * gui/merging/e-card-duplicate-detected.glade: same. svn path=/trunk/; revision=18719
* change around a little, still ifdefed though.Chris Toshok2002-11-125-204/+57
| | | | | | | | | | | | | | | | | | | 2002-11-11 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (_arrow_pressed): change around a little, still ifdefed though. * gui/contact-editor/e-contact-save-as.c (file_exists): same. (save_it): deal with the GtkDialog response ids. * gui/contact-editor/e-contact-editor.c (e_contact_editor_confirm_delete): just build the dialog here (using gtk_message_dialog*). * gui/contact-editor/Makefile.am (glade_DATA): remove file-exists.glade and e-contact-editor-confirm-delete.glade. svn path=/trunk/; revision=18712
* guard against multiple invocations. (remove_book_view): same.Chris Toshok2002-11-095-19/+41
| | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-model.c (free_data): guard against multiple invocations. (remove_book_view): same. (addressbook_dispose): same. * gui/widgets/e-addressbook-view.c (e_addressbook_view_dispose): same. * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_dispose): same. * gui/widgets/e-minicard-view.c (e_minicard_view_dispose): same. * gui/widgets/e-minicard-widget.c (e_minicard_widget_dispose): same. svn path=/trunk/; revision=18685
* oops, missed these casts.Chris Toshok2002-11-093-10/+5
| | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_get_property): oops, missed these casts. * gui/component/addressbook.c (get_master_list): remove the PENDING_PORT_WORK ifdef, just ported ECategoriesMasterList. (make_suboptions): same. * gui/contact-editor/e-contact-editor.c (categories_clicked): same. svn path=/trunk/; revision=18684
* port work.Chris Toshok2002-11-0915-347/+418
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/widgets/test-reflow.c: port work. * gui/widgets/test-minicard-view.c: port work. * gui/widgets/e-minicard.[ch]: port work. * gui/widgets/e-minicard-widget.c: port work. * gui/widgets/e-minicard-view.c: port work. * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_size_allocate): gtk_->g_ change i missed. (e_minicard_view_widget_reflow): same. * gui/widgets/e-minicard-label.c: port work. * gui/widgets/e-minicard-control.c (get_prop): gtk_->g_ change i missed. * gui/widgets/e-addressbook-view.c (setup_menus): ifdef this PENDING_PORT_WORK for now. (has_email_address_1): gtk_->g_ change i missed. (print): remove the PENDING_PORT_WORK from here, as the print_* symbols now resolve. (delete): gtk_->g_ changes. (new_card): same. (new_list): same. (sources): same. (create_minicard_view): same. (table_double_click): same. (create_table_view): same. (e_contact_print_destroy): same. (e_contact_print_button): same. (e_addressbook_view_print): same, and remove the PENDING_PORT_WORK ifdef. (e_addressbook_view_print_preview): same. (do_remove): gtk_->g_ changes. (e_addressbook_view_save_state): same. (view_transfer_cards): same. * gui/widgets/e-addressbook-view.h (struct _EAddressbookView): GtkObject -> GObject. * gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog): GnomeDialog -> GtkDialog. * gui/widgets/e-addressbook-table-adapter.c (addressbook_set_value_at): a gtk_->g_ change i missed. (e_addressbook_table_adapter_class_init): gtk_type_class -> g_type_class_peek_parent. * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_get_property): use g_object_get_property for aggregated properties. (e_addressbook_reflow_adapter_class_init): gtk_type_class -> g_type_class_peek_parent. * gui/merging/e-card-merging.c (match_query_callback): some misc gtk_->g_ changes i missed. svn path=/trunk/; revision=18682
* parent class is GObjectClass.Chris Toshok2002-11-099-68/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-model.h: parent class is GObjectClass. * gui/component/select-names/e-simple-card-bonobo.c (impl_dispose): guard against multiple invocations, and chain dispose. * gui/component/select-names/e-select-names.c (e_select_names_dispose): guard against multiple invocations. * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_dispose): guard against multiple invocations. (e_select_names_text_model_set_source): fix casts. * gui/component/select-names/e-select-names-table-model.c (e_select_names_table_model_add_source): remove the GTK_OBJECT cast, fixes a warning. (clear_info): guard against multiple invocations from ::dispose. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_dispose): same. * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_dispose): same. * gui/component/select-names/e-select-names-bonobo.c (impl_dispose): guard against multiple invocations. svn path=/trunk/; revision=18681
* convert to glade-2Chris Toshok2002-11-084-297/+301
| | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/contact-list-editor.glade: convert to glade-2 * gui/contact-list-editor/e-contact-list-editor.c: port work. * gui/contact-list-editor/e-contact-list-model.[ch]: port work. svn path=/trunk/; revision=18668
* port work.Chris Toshok2002-11-088-278/+233
| | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor-address.[ch]: port work. * gui/contact-editor/e-contact-editor-fullname.[ch]: port work. * gui/contact-editor/e-contact-editor.[ch]: port work. * gui/contact-editor/e-contact-quick-add.c: port work. * gui/contact-editor/e-contact-save-as.c: port work. svn path=/trunk/; revision=18667
* prepend /apps/Evolution to config db paths.Chris Toshok2002-11-081-3/+3
| | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * backend/ebook/e-book-util.c (set_default_book_uri_from_config_db): prepend /apps/Evolution to config db paths. * gui/component/select-names/e-select-names-manager.c (read_completion_books_from_db): same. (uris_listener): same. svn path=/trunk/; revision=18664
* more porting work.Chris Toshok2002-11-0812-3744/+3735
| | | | | | | | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c: more porting work. * e-contact-editor-fullname.[ch]: more porting work. * e-contact-editor.c: more porting work. * e-contact-quick-add.c: more porting work. * e-contact-save-as.c: more porting work. * test-editor.c: more porting work. * e-contact-editor-confirm-delete.glade, file-exists.glade, fulladdr.glade, fullname.glade: run these through libglade-convert. svn path=/trunk/; revision=18663
* add lots of libs back in since they're building now.Chris Toshok2002-11-089-138/+138
| | | | | | | | | | | | | | | | | | | 2002-11-07 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (evolution_addressbook_LDADD): add lots of libs back in since they're building now. * gui/component/addressbook-config.c: more porting work. * gui/component/addressbook.c: more porting work. * gui/component/e-address-popup.[ch]: more porting work. * gui/component/e-address-widget.[ch]: more porting work. * gui/component/e-cardlist-model.[ch]: more porting work. svn path=/trunk/; revision=18658
* more porting work.Chris Toshok2002-11-0815-319/+312
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-07 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-bonobo.[ch]: more porting work. * gui/component/select-names/e-select-names-completion.[ch]: more porting work. * gui/component/select-names/e-select-names-manager.[ch]: more porting work. * gui/component/select-names/e-select-names-model.[ch]: more porting work. * gui/component/select-names/e-select-names-popup.c: more porting work. * gui/component/select-names/e-select-names-table-model.[ch]: more porting work. * gui/component/select-names/e-select-names-text-model.[ch]: more porting work. * gui/component/select-names/e-select-names.[ch]: more porting work. svn path=/trunk/; revision=18657
* gobjectify this.Chris Toshok2002-11-0728-6104/+6550
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-minicard.[ch]: gobjectify this. * gui/widgets/e-minicard.[ch]: gobjectify this. (e_minicard_class_init): change the min/max values of the width/height paramspecs so that they can actually be set to something other than 0.0. * gui/widgets/e-minicard-widget.[ch]: gobjectify this. * gui/widgets/e-minicard-view.[ch]: gobjectify this. (set_empty_message): don't need e_utf8_from_locale_string anymore. * gui/widgets/e-minicard-view-widget.[ch]: gobjectify this. * gui/widgets/e-minicard-label.[ch]: gobjectify this. * gui/widgets/e-addressbook-view.[ch]: gobjectify this. * gui/widgets/e-addressbook-table-adapter.[ch]: gobjectify this. * gui/widgets/e-addressbook-reflow-adapter.[ch]: gobjectify this. * gui/widgets/e-addressbook-model.[ch]: gobjectify this. * gui/widgets/e-minicard-control.c (e_minicard_control_factory): fix bonobo_persist_stream_new api change. * gui/contact-list-editor/e-contact-list-model.c (e_contact_list_model_add_destination): get rid of the gtk_object_sink here. * gui/component/ldap-config.glade: glade-2 version of this file. * gui/component/e-address-popup.c (e_address_popup_refresh_names): don't need e_utf8_to_gtk_string anymore. * gui/component/addressbook.c (make_suboptions): don't need e_utf8_to_locale_string anymore. * gui/component/addressbook-config.c (addressbook_dialog_get_source): get rid of the e_utf8 gtk_entry functions. (addressbook_source_dialog_set_source): same. (general_tab_check): same. (port_changed_func): same. (connecting_tab_check): same. (query_for_supported_bases): same. (display_name_check): same. (display_name_page_prepare): same. (edit_source_clicked): same. (addressbook_config_create_new_source): same. svn path=/trunk/; revision=18626
* fix the gnome-xml headers.Chris Toshok2002-11-0611-267/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * gui/widgets/gal-view-minicard.c: fix the gnome-xml headers. * gui/widgets/e-addressbook-view.c (e_addressbook_view_class_init): convert from gtk signals and args to GSignal and GObject properties. (e_addressbook_view_dispose): rename _destroy to this. (e_addressbook_view_set_property): rework _set_arg to this. (e_addressbook_view_get_property): rework _get_arg to this. (display_view): if we're here we need to choose a view, regardless of whether or not the GAL_IS_VIEW_* macros tell us which type it is. * gui/widgets/e-addressbook-table-adapter.c: fix the gnome-xml headers. * gui/widgets/e-addressbook-model.c (e_addressbook_model_class_init): use INT, not ENUM in the signal here. * gui/component/addressbook-config.c: another big gtk_* -> g_* renaming. * gui/component/addressbook.c: same. * gui/component/e-address-popup.c: same. * gui/component/e-address-widget.c: same. * gui/component/e-cardlist-model.c: fix the gnome-xml headers, and more gtk_* -> g_* renaming. * gui/component/addressbook-component.c (owner_set_cb): use evolution_shell_client_corba_objref as per ettore's change to EvolutionShellClient.. (create_view): fix the call to bonobo_control_set_property. (create_component): gtk_signal_connect -> g_signal_connect. * gui/component/addressbook-storage.c: fix the gnome-xml headers. (addressbook_storage_setup): use evolution_shell_client_corba_objref as per ettore's change to EvolutionShellClient.. (addressbook_get_other_contact_storage): gtk_signal_connect -> g_signal_connect. (load_source_data): root->childs -> root->childrens. svn path=/trunk/; revision=18598
* fix some #include's.Chris Toshok2002-11-061-2/+0
| | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * gui/search/e-addressbook-search-dialog.c: fix some #include's. svn path=/trunk/; revision=18596
* only build the backend and gui dirs for now. printing and conduits areChris Toshok2002-11-062-6/+4
| | | | | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * Makefile.am (SUBDIRS): only build the backend and gui dirs for now. printing and conduits are no-man's land at present. * addressbook/gui/merging/e-card-merging.[ch]: Port to GObject/gnome2. svn path=/trunk/; revision=18595
* ignore the new .server file.Chris Toshok2002-11-0614-209/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Chris Toshok <toshok@ximian.com> * gui/component/.cvsignore: ignore the new .server file. * gui/component/Makefile.am: typical port stuff. switch the .oaf to .server, and leave out a lot of libs so we can actually get things linking. * gui/component/GNOME_Evolution_Addressbook.server.in: rename .oaf.in here. * gui/component/addressbook-component.c: Port to GObject/gnome2. * gui/component/addressbook-config.c: Port to GObject/gnome2. * gui/component/addressbook-factory.c: Port to GObject/gnome2. * gui/component/addressbook-storage.c: Port to GObject/gnome2. * gui/component/addressbook.[ch]: Port to GObject/gnome2. * gui/component/e-address-popup.[ch]: Port to GObject/gnome2. * gui/component/e-address-widget.[ch]: Port to GObject/gnome2. * gui/component/e-cardlist-model.h: Port to GObject/gnome2. svn path=/trunk/; revision=18591
* ignore the marshal generated stuff.Chris Toshok2002-11-067-188/+219
| | | | | | | | | | | | | | | | | | 2002-11-05 Chris Toshok <toshok@ximian.com> * gui/contact-list-editor/.cvsignore: ignore the marshal generated stuff. * gui/contact-list-editor/Makefile.am: typical port stuff. add marshaller generation foo, dist it... * gui/contact-list-editor/e-contact-list-editor.[ch]: Port to GObject/gnome2. * gui/contact-list-editor/e-contact-list-model.[ch]: Port to GObject/gnome2. svn path=/trunk/; revision=18590
* ignore the marshal generated stuff.Chris Toshok2002-11-0611-237/+278
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Chris Toshok <toshok@ximian.com> * gui/contact-editor/.cvsignore: ignore the marshal generated stuff. * gui/contact-editor/Makefile.am: typical port stuff. add marshaller generation foo, dist it... * gui/contact-editor/e-contact-editor-address.[ch]: Port to GObject/gnome2. * gui/contact-editor/e-contact-editor-fullname.c: Port to GObject/gnome2. * gui/contact-editor/e-contact-editor.c: Port to GObject/gnome2. * gui/contact-editor/e-contact-quick-add.c: Port to GObject/gnome2. * gui/contact-editor/e-contact-save-as.[ch]: Port to GObject/gnome2. * gui/contact-editor/test-editor.c: Port to GObject/gnome2. svn path=/trunk/; revision=18589
* Port to GObject/gnome2.Chris Toshok2002-11-0627-922/+1064
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-model.[ch]: Port to GObject/gnome2. * gui/widgets/e-addressbook-reflow-adapter.c: Port to GObject/gnome2. * gui/widgets/e-addressbook-table-adapter.c: Port to GObject/gnome2. * gui/widgets/e-addressbook-util.c: Port to GObject/gnome2. * gui/widgets/e-addressbook-view.[ch]: Port to GObject/gnome2. * gui/widgets/e-minicard-control.c: Port to GObject/gnome2. * gui/widgets/e-minicard-label.[ch]: Port to GObject/gnome2. * gui/widgets/e-minicard-view-widget.[ch]: Port to GObject/gnome2. * gui/widgets/e-minicard-view.[ch]: Port to GObject/gnome2. * gui/widgets/e-minicard-widget-test.c: Port to GObject/gnome2. * gui/widgets/e-minicard-widget.c: Port to GObject/gnome2. * gui/widgets/e-minicard.[ch]: Port to GObject/gnome2. * gui/widgets/gal-view-factory-minicard.c: Port to GObject/gnome2. * gui/widgets/gal-view-minicard.c: Port to GObject/gnome2. * gui/widgets/test-minicard-label.c: Port to GObject/gnome2. * gui/widgets/test-minicard-view.c: Port to GObject/gnome2. * gui/widgets/test-minicard.c: Port to GObject/gnome2. * gui/widgets/test-reflow.c: Port to GObject/gnome2. * gui/widgets/Makefile.am: typical port stuff. add marshaller generation foo, dist it... * gui/widgets/.cvsignore: ignore the marshaller stuff. svn path=/trunk/; revision=18588
* Port to GObject/gnome2.Chris Toshok2002-11-0620-524/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-simple-card-bonobo.[ch]: Port to GObject/gnome2. * gui/component/select-names/e-select-names.[ch]: Port to GObject/gnome2. * gui/component/select-names/e-select-names-text-model.c: Port to GObject/gnome2. * gui/component/select-names/e-select-names-table-model.c: Port to GObject/gnome2. * gui/component/select-names/e-select-names-popup.[ch]: Port to GObject/gnome2. * gui/component/select-names/e-select-names-model.c: Port to GObject/gnome2. * gui/component/select-names/e-select-names-manager.[ch]: Port to GObject/gnome2. * gui/component/select-names/e-select-names-factory.c: Port to GObject/gnome2. * gui/component/select-names/e-select-names-completion.[ch]: Port to GObject/gnome2. * gui/component/select-names/e-select-names-bonobo.[ch]: Port to GObject/gnome2. * gui/component/select-names/Makefile.am: typical port stuff. add marshaller generation foo, dist it, and switch the .oaf to .server * gui/component/select-names/.cvsignore: ignore the marshaller stuff. svn path=/trunk/; revision=18587
* Disconnect from the book's backend_died signal.Dan Winship2002-10-271-1/+5
| | | | | | | * gui/widgets/e-addressbook-model.c (addressbook_destroy): Disconnect from the book's backend_died signal. svn path=/trunk/; revision=18446
* [ fixes #29144 ] use e_table_memory_storage_change instead ofChris Toshok2002-10-251-3/+1
| | | | | | | | | | | 2002-10-24 Chris Toshok <toshok@ximian.com> [ fixes #29144 ] * gui/component/addressbook-config.c (edit_dialog_store_change): use e_table_memory_storage_change instead of remove/insert, so the selection is maintained. svn path=/trunk/; revision=18435
* Set /Addressbook/select_names_uri in the configdb to the selected folder.Dan Winship2002-10-231-17/+19
| | | | | | | | | | | | | | * gui/component/select-names/e-select-names.c (folder_selected): Set /Addressbook/select_names_uri in the configdb to the selected folder. (e_select_names_init): Look for /Addressbook/select_names_uri before /DefaultFolders/contacts_uri for the initial folder. So the select names dialog now starts up using the same folder you used last time, which is useful when you have an LDAP company directory (which can't be your default contacts folder because it's read-only). svn path=/trunk/; revision=18416
* fix the sense of a strcmpDan Winship2002-10-221-1/+1
| | | | | | | * gui/component/addressbook-component.c (IS_CONTACT_TYPE): fix the sense of a strcmp svn path=/trunk/; revision=18408
* [ fix for #23764 ] handle multiple letters associated with a singleChris Toshok2002-10-221-11/+25
| | | | | | | | | | | | | 2002-10-20 Chris Toshok <toshok@ximian.com> [ fix for #23764 ] * gui/widgets/e-addressbook-view.c (jump_to_letters): handle multiple letters associated with a single button. (button_toggled): closure->letter -> closure->letters. (free_closure): free closure->letters. (create_alphabet): init closure->letters. svn path=/trunk/; revision=18407
* [ fixes #32144 ] convert the name to the gtk locale before saving.Chris Toshok2002-10-221-3/+9
| | | | | | | | | | | 2002-10-20 Chris Toshok <toshok@ximian.com> [ fixes #32144 ] * gui/contact-editor/e-contact-save-as.c (e_contact_save_as): convert the name to the gtk locale before saving. (e_contact_list_save_as): same. svn path=/trunk/; revision=18403
* [ probable fix for #25477, and memory leak fix ] if the dialog isn't inChris Toshok2002-10-211-0/+5
| | | | | | | | | | | | | | | 2002-10-19 Chris Toshok <toshok@ximian.com> [ probable fix for #25477, and memory leak fix ] * gui/contact-editor/e-contact-editor.c (supported_fields_cb): if the dialog isn't in the list of all dialogs it's been destroyed so just return here. * backend/ebook/e-book.c (e_book_do_response_get_supported_fields): plug leak of resp->fields. svn path=/trunk/; revision=18396
* [ Fix #7094, #7064, #7095, #31944, #31945 ] Hook up new etspec file.Kjartan Maraas2002-10-1013-146/+113
| | | | | | | | | | | | | | | | | | | | 2002-10-10 Kjartan Maraas <kmaraas@gnome.org> [ Fix #7094, #7064, #7095, #31944, #31945 ] * gui/component/Makefile.am: Hook up new etspec file. * gui/component/addressbook-config.c: Remove ETable spec. * gui/component/addressbook-config.etspec: New file. * gui/component/ldap-config.glade: Fix typo. * gui/component/select-names/e-select-names.c: Remove inline spec. * gui/component/select-names/e-select-names.etspec: New file. * gui/contact-list-editor/Makefile.am: Hook up etspec. * gui/contact-list-editor/e-contact-list-editor.c: Remove inline spec. * gui/contact-list-editor/e-contact-list-editor.etspec: New file. * gui/widgets/Makefile.am: Hook up new spec. * gui/widgets/e-addressbook-view.c: Remove inline spec. * gui/widgets/e-addressbook-view.etspec: New file. svn path=/trunk/; revision=18361
* [ Fix #28392 ] #if 0 out the gal_view submenu, since it's not spec'ed toChris Toshok2002-10-051-0/+2
| | | | | | | | | | | 2002-10-02 Chris Toshok <toshok@ximian.com> [ Fix #28392 ] * gui/widgets/e-addressbook-view.c (do_popup_menu): #if 0 out the gal_view submenu, since it's not spec'ed to be there anyway (as per bug #16250). svn path=/trunk/; revision=18322
* free adapter->priv.Chris Toshok2002-10-021-30/+29
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-23 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-table-adapter.c (addressbook_destroy): free adapter->priv. * gui/widgets/e-addressbook-model.c (addressbook_destroy): free model->query. * gui/component/select-names/e-select-names-manager.c (load_completion_books): use e_book_expand_uri here, and free the expanded uri after calling addressbook_load_uri, plugging a leak. * gui/component/select-names/e-select-names.c (set_book): unref esn->model before we unref esn. fixes an edge case memory corruption bug. (clear_widget): utility function to set a widget's ref to NULL when it's destroyed. (e_select_names_init): hook the status_message, categories option menu, and select_entry to clear_widget. (addressbook_model_set_uri): use e_book_expand_uri. svn path=/trunk/; revision=18292
* It's a grand old string-review! Nitpicky and minor changes; details in the ↵Aaron Weber2002-10-011-2/+2
| | | | | | appropriate ChangeLog files. svn path=/trunk/; revision=18268
* [ fixes #27521 ] always unref the contact editor when we get theChris Toshok2002-09-281-3/+3
| | | | | | | | | | | 2002-09-27 Chris Toshok <toshok@ximian.com> [ fixes #27521 ] * gui/contact-editor/e-contact-quick-add.c (editor_closed_cb): always unref the contact editor when we get the editor_closed signal. svn path=/trunk/; revision=18255
* Change folder type to "contacts/ldap". (addressbook_storage_add_source):Dan Winship2002-09-271-3/+3
| | | | | | | | | | | * gui/component/addressbook-storage.c (load_source_data): Change folder type to "contacts/ldap". (addressbook_storage_add_source): Likewise. (create_ldap_folder): Check for type being "contacts" not ldap contacts, since the ldap-specific type doesn't appear in the menu. svn path=/trunk/; revision=18241
* Rename "ldap-contacts" to "contacts/ldap" and add "contacts/public".Dan Winship2002-09-264-4/+10
| | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (folder_types): Rename "ldap-contacts" to "contacts/ldap" and add "contacts/public". (IS_CONTACT_TYPE): update for new types. * gui/component/select-names/e-select-names.c (e_select_names_init): Use "contacts/*" for selector_types. * gui/widgets/e-addressbook-util.c (e_addressbook_transfer_cards): Likewise. * gui/component/GNOME_Evolution_Addressbook.oaf.in: add "evolution:config_item:type" = "contacts/ldap" to the LDAP sources control so it comes up by default when you open Preferences in an LDAP folder. svn path=/trunk/; revision=18221
* free adapter->priv.Chris Toshok2002-09-263-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-23 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-table-adapter.c (addressbook_destroy): free adapter->priv. * gui/widgets/e-addressbook-model.c (addressbook_destroy): free model->query. * gui/component/select-names/e-select-names-manager.c (load_completion_books): use e_book_expand_uri here, and free the expanded uri after calling addressbook_load_uri, plugging a leak. * gui/component/select-names/e-select-names.c (set_book): unref esn->model before we unref esn. fixes an edge case memory corruption bug. (clear_widget): utility function to set a widget's ref to NULL when it's destroyed. (e_select_names_init): hook the status_message, categories option menu, and select_entry to clear_widget. (addressbook_model_set_uri): use e_book_expand_uri. svn path=/trunk/; revision=18217
* oops, add cached_folder_list to struct _ESelectNamesManager.Chris Toshok2002-09-231-0/+2
| | | | | | | | | 2002-09-22 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.h: oops, add cached_folder_list to struct _ESelectNamesManager. svn path=/trunk/; revision=18161
* [ Fixes #30481 ] initialize the select names dialog with the defaultChris Toshok2002-09-231-7/+22
| | | | | | | | | | | 2002-09-22 Chris Toshok <toshok@ximian.com> [ Fixes #30481 ] * gui/component/select-names/e-select-names.c (e_select_names_init): initialize the select names dialog with the default contacts folder. svn path=/trunk/; revision=18160
* [ Fixes #28165, 29171 ] check to see if the value has really changed. theChris Toshok2002-09-231-25/+47
| | | | | | | | | | | | | | | | | | | | | 2002-09-22 Chris Toshok <toshok@ximian.com> [ Fixes #28165, 29171 ] * gui/component/select-names/e-select-names-manager.c (uris_listener): check to see if the value has really changed. the way the preferences dialog works is such that we'll get called when any of the Folder Options are changed (default folders, offline stuff, etc.) we really only want to tear down and build back up the completion books if the autocomplete folder setting changed. (read_completion_books_from_db): cache the folder list, and call load_completion_books. (load_completion_books): new function, loads from the cached_folder_list. (e_select_names_manager_init): init cached_folder_list to NULL. (e_select_names_manager_destroy): g_free (cached_folder_list). svn path=/trunk/; revision=18154
* [ Fixes #30483 ] argh, contains => beginswith.Chris Toshok2002-09-211-1/+1
| | | | | | | | | | 2002-09-20 Chris Toshok <toshok@ximian.com> [ Fixes #30483 ] * gui/component/select-names/e-select-names-completion.c (name_style_query): argh, contains => beginswith. svn path=/trunk/; revision=18150
* don't add the user creatable item for ldap-contact folders atm, since itChris Toshok2002-09-181-9/+0
| | | | | | | | | | | 2002-09-17 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (add_creatable_item): don't add the user creatable item for ldap-contact folders atm, since it results in their being duplicate New Contact and New Contact List menu items. svn path=/trunk/; revision=18098
* Fix a typo.Kjartan Maraas2002-09-181-1/+1
| | | | | | | | 2002-09-17 Kjartan Maraas <kmaraas@gnome.org> * gui/component/ldap-config.glade: Fix a typo. svn path=/trunk/; revision=18087
* [ Fixes bug #30250 ] handle "Unnamed Lists" here by setting their name toChris Toshok2002-09-131-20/+30
| | | | | | | | | | | | | | | | | | | | | | | 2002-09-13 Chris Toshok <toshok@ximian.com> [ Fixes bug #30250 ] * backend/ebook/e-destination.c (e_destination_get_name): handle "Unnamed Lists" here by setting their name to _("Unnamed List'). * backend/ebook/e-card-simple.c (e_card_simple_get): same. * gui/contact-list-editor/e-contact-list-editor.c (is_named): new function, return TRUE if the name field is filled in. (prompt_to_save_changes): return TRUE if the list isn't named (meaning it's not saveable.) (command_state_changed): saving requires a name. (add_email_cb): always call command_state_changed. (remove_entry_cb): same. (list_name_changed_cb): same. (visible_addrs_toggled_cb): same. (table_drag_data_received_cb): same. svn path=/trunk/; revision=18059
* institute an arbitrary minimum limit on the number of characters before weChris Toshok2002-09-121-0/+6
| | | | | | | | | | | 2002-09-11 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): institute an arbitrary minimum limit on the number of characters before we actually try to autocomplete. It's 3, btw. svn path=/trunk/; revision=18053
* [ fixes the other half of #17336 ] parse the name when we're asked to setChris Toshok2002-09-121-6/+9
| | | | | | | | | | | 2002-09-11 Chris Toshok <toshok@ximian.com> [ fixes the other half of #17336 ] * gui/contact-editor/e-contact-quick-add.c (quick_add_set_name): parse the name when we're asked to set it, so the full name doesn't get stored as (potentially) "Last, First" in the card. svn path=/trunk/; revision=18051
* [ fixes part of #17336 ] get the window title from the .glade file, andChris Toshok2002-09-122-0/+22
| | | | | | | | | | | | | | 2002-09-11 Chris Toshok <toshok@ximian.com> [ fixes part of #17336 ] * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_init): get the window title from the .glade file, and supply a suitable wm icon. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_init): same. svn path=/trunk/; revision=18050
* [ fixes #30208 ] if the user clicked cancel in the password dialog, letChris Toshok2002-09-121-56/+97
| | | | | | | | | | | | | | | | | | | 2002-09-11 Chris Toshok <toshok@ximian.com> [ fixes #30208 ] * gui/component/addressbook.c (load_uri_auth_cb): if the user clicked cancel in the password dialog, let them off the hook and bind anonymously. Otherwise (if they failed to auth), prompt them for the password again. (addressbook_authenticate): new function, split out 99% of the auth machinery here so it can be called multiple times. Also, call the callback with E_BOOK_STATUS_CANCELLED if the user clicked the cancel button in the dialog. (load_uri_cb): call addressbook_authenticate if the book has auth enabled. (addressbook_load_uri): use g_new0. svn path=/trunk/; revision=18049
* Changed the description of the Directory Servers page of the settingsAnna Dirks2002-09-061-1/+1
| | | | | | | | | | 2002-09-05 Anna Dirks <anna@ximian.com> * gui/component/GNOME_Evolution_Addressbook.oaf.in : Changed the description of the Directory Servers page of the settings dialog to be a little less wordy {This page can be used to configure blah--> Configure blah.} svn path=/trunk/; revision=17990
* [ Fixes #29904 ] we need to activate either a contact list editor orChris Toshok2002-09-051-3/+10
| | | | | | | | | | | | 2002-09-04 Chris Toshok <toshok@ximian.com> [ Fixes #29904 ] * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_activate_obj): we need to activate either a contact list editor or contact editor depending on if it's a list (this screams for a utility function.) svn path=/trunk/; revision=17980
* Pass FALSE to evolution_storage_new: the Other Contacts storage doesn'tDan Winship2002-09-051-1/+1
| | | | | | | | | * gui/component/addressbook-storage.c (addressbook_get_other_contact_storage): Pass FALSE to evolution_storage_new: the Other Contacts storage doesn't support shared folders. svn path=/trunk/; revision=17978
* Pass NULL as @unpopulate_folder_context_menu_fn toEttore Perazzoli2002-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * gui/component-factory.c (create_object): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * mail-account-gui.c (mail_account_gui_save): Remove unused variable. * component-factory.c (unpopulate_folder_context_menu): New. (create_component): Pass it to evolution_shell_component_new(). * component-factory.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * e-storage-set-view.c (popup_folder_menu): Remove the context menu items using evolution_shell_component_client_unpopulate_folder_context_menu() instead of doing it ourself, since BonoboUI sucks. * evolution-shell-component-client.c (evolution_shell_component_client_unpopulate_folder_context_menu): New. * evolution-test-component.c (register_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * evolution-shell-component.c: New member unpopulate_folder_context_menu_fn in EvolutionShellComponentPrivate. New member uic in EvolutionShellComponentPrivate. (init): Init new members to NULL. (destroy): bonobo_object_unref() priv->uic if not NULL. (evolution_shell_component_new): New arg @unpopulate_folder_context_menu_fn. (evolution_shell_component_construct): Likewise. (impl_populateFolderContextMenu): Set priv->uic to the newly created UIComponent. (impl_unpopulateFolderContextMenu): New, implementation for the ::unpopulateFolderContextMenu CORBA method. (class_init): Install. * Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New method. (AlreadyPopulated): New exception. (populateFolderContextMenu): Can raise it. (NotPopulated): New exception. svn path=/trunk/; revision=17963
* unref the "without", adapter, and model, then chain up the GnomeDialogMike Kestner2002-09-041-0/+5
| | | | | | | | | | 2002-09-03 Mike Kestner <mkestner@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_destroy): unref the "without", adapter, and model, then chain up the GnomeDialog destroy function. svn path=/trunk/; revision=17960
* Use ldap-settings.png instead of evolution-contacts.png.Ettore Perazzoli2002-09-041-1/+1
| | | | svn path=/trunk/; revision=17956
* [ fixes #29699 ] call _set_source with a NULL source to fill in dialogChris Toshok2002-09-041-0/+3
| | | | | | | | | | | | 2002-09-03 Chris Toshok <toshok@ximian.com> [ fixes #29699 ] * gui/component/addressbook-config.c (addressbook_add_server_druid): call _set_source with a NULL source to fill in dialog settings that are set from the option menus (like the SSL setting). svn path=/trunk/; revision=17954
* (delete_contact_cb): Fix typoEttore Perazzoli2002-09-041-1/+1
| | | | | | | [`view>view' instead of `view->view']. Also, cast to GTK_WINDOW instead of GTK_WIDGET as it should be. svn path=/trunk/; revision=17951
* add QueryRefused, for when the backend refuses to perform a query. (partDan Winship2002-08-311-0/+3
| | | | | | | | | | | | | | * backend/idl/addressbook.idl (CallStatus): add QueryRefused, for when the backend refuses to perform a query. (part of #25782) * backend/ebook/e-book-view-listener.c (e_book_view_listener_convert_status): translate GNOME_Evolution_Addressbook_BookViewListener_QueryRefused. * gui/component/addressbook.c (search_result): Handle E_BOOK_VIEW_STATUS_QUERY_REFUSED. svn path=/trunk/; revision=17934
* call evolution_shell_component_add_user_creatable_item twice here, onceChris Toshok2002-08-301-0/+10
| | | | | | | | | | 2002-08-29 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (add_creatable_item): call evolution_shell_component_add_user_creatable_item twice here, once for the "contacts" folder type, and once for "ldap-contacts". svn path=/trunk/; revision=17929
* [ fixes #20347 ] hook up the backend_died signal. (backend_died): newChris Toshok2002-08-293-2/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-29 Chris Toshok <toshok@ximian.com> [ fixes #20347 ] * gui/widgets/e-addressbook-view.c (e_addressbook_view_init): hook up the backend_died signal. (backend_died): new function, pop up an error dialog saying the backend died. * gui/widgets/e-addressbook-model.c (backend_died): new function, emit the backend_died signal. (e_addressbook_model_class_init): create the backend_died signal. (e_addressbook_model_init): init backend_died_id (e_addressbook_model_set_arg): disconnect the backend_died signal from the old book and hook it up to the new book. * gui/widgets/e-addressbook-model.h: add the backend_died signal. * backend/ebook/e-book.c (backend_died_cb): new function, emit the backend_died signal. (e_book_do_response_open): create the component listener and hook up the backend_died signal. (e_book_destroy): disconnect the component listener and unref it. * backend/ebook/e-book.h: add backend_died signal. svn path=/trunk/; revision=17918
* [ fixes #25038 ] need to have EVOLUTION_ICONSDIR defined.Chris Toshok2002-08-295-1/+21
| | | | | | | | | | | | | | | | | | | | | | 2002-08-29 Chris Toshok <toshok@ximian.com> [ fixes #25038 ] * gui/contact-editor/Makefile.am (INCLUDES): need to have EVOLUTION_ICONSDIR defined. * gui/contact-list-editor/Makefile.am (INCLUDES): same. * gui/contact-editor/e-contact-editor.c (e_contact_editor_init): set the window icon to the contact mini icon. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_init): set the window icon to the new contact list icon. * gui/widgets/e-minicard.c (LIST_ICON_FILENAME): change to (the prettier, imo) "contact-list-16.png" svn path=/trunk/; revision=17915
* stop the EBookViews before unreffing.Mike Kestner2002-08-291-2/+8
| | | | | | | | | 2002-08-28 Mike Kestner <mkestner@ximian.com> * gui/component/select-names/e-select-names-completion.c : stop the EBookViews before unreffing. svn path=/trunk/; revision=17910
* Add an evolution:shell_component_launch_order and renameDan Winship2002-08-291-1/+3
| | | | | | | | * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an evolution:shell_component_launch_order and rename evolution:shell_component_icon. svn path=/trunk/; revision=17906
* [ oops, merged the .h and .glade file back to the HEAD from the 1-0Chris Toshok2002-08-281-0/+16
| | | | | | | | | | | | | 2002-08-28 Chris Toshok <toshok@ximian.com> [ oops, merged the .h and .glade file back to the HEAD from the 1-0 branch, but missed the .c file. ] * gui/component/select-names/e-select-names.c (status_message): set the status label's text. (e_select_names_init): get the status message widget from the glade ui. svn path=/trunk/; revision=17889
* [ fixes #19286 ] confirm deletion of contacts when using the menubar orChris Toshok2002-08-281-2/+4
| | | | | | | | | | 2002-08-28 Chris Toshok <toshok@ximian.com> [ fixes #19286 ] * gui/component/addressbook.c (delete_contact_cb): confirm deletion of contacts when using the menubar or toolbar. svn path=/trunk/; revision=17888
* [ fixes #28897 ] set book_data to NULL after clearing/freeing the list.Chris Toshok2002-08-281-0/+1
| | | | | | | | | | | 2002-08-28 Chris Toshok <toshok@ximian.com> [ fixes #28897 ] * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_clear_book_data): set book_data to NULL after clearing/freeing the list. fixes a crash. svn path=/trunk/; revision=17887
* [ fixes #20348 ] deprecate "categories" in favor of "category". evolutionChris Toshok2002-08-281-1/+1
| | | | | | | | | | | | | | | | | | | | 2002-08-28 Chris Toshok <toshok@ximian.com> [ fixes #20348 ] * backend/pas/evolutionperson.schema: deprecate "categories" in favor of "category". evolution no longer uses "categories". * backend/pas/pas-backend-ldap.c (category_populate): new function, "category" is the new name, and it's multivalued so we need the complex-prop stuff.. (category_ber): new function, same. (category_compare): new function, same. * gui/component/addressbook.c (addressbook_search_activated): the text is "Category is" so we should use "is" instead of "contains" for the query. svn path=/trunk/; revision=17885
* [ fixes #26907 ] use beginswith for email.Chris Toshok2002-08-281-2/+2
| | | | | | | | | | 2002-08-27 Chris Toshok <toshok@ximian.com> [ fixes #26907 ] * gui/component/addressbook.c (addressbook_search_activated): use beginswith for email. svn path=/trunk/; revision=17882
* [ fixes #29446 ] searching_modify_func can be NULL (since we don't requireChris Toshok2002-08-271-1/+2
| | | | | | | | | | | | 2002-08-26 Chris Toshok <toshok@ximian.com> [ fixes #29446 ] * gui/component/addressbook-config.c (scope_optionmenu_activated): searching_modify_func can be NULL (since we don't require changes to enable the "Next" button on this page when you create a directory server.) svn path=/trunk/; revision=17871
* stop the view before unref, in case the listener has pending events.Mike Kestner2002-08-271-0/+1
| | | | | | | | | 2002-08-25 Mike Kestner <mkestner@ximian.com> * gui/widgets/e-addressbook-view.c (remove_book_view): stop the view before unref, in case the listener has pending events. svn path=/trunk/; revision=17867
* not sure what i was thinking here... the EBook isn't valid if we couldn'tChris Toshok2002-08-211-7/+3
| | | | | | | | | | 2002-08-20 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (book_open_cb): not sure what i was thinking here... the EBook isn't valid if we couldn't open it, so we can't turn around and query it for its capabilities. svn path=/trunk/; revision=17827
* add the listener_id slot.Chris Toshok2002-08-202-11/+10
| | | | | | | | | | | | | | | | | 2002-08-19 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.h: add the listener_id slot. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_new): store off the listener_id. (e_select_names_manager_destroy): remove the bonobo listener - fixes a crash when modifying the completion folders after you bring up a compose window. (e_select_names_manager_entry_new): another random timeout change - make the completion at 100ms. svn path=/trunk/; revision=17815
* take and pass the CallStatus to our listener.Chris Toshok2002-08-206-2/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-19 Chris Toshok <toshok@ximian.com> * backend/pas/pas-book-view.c (pas_book_view_notify_complete): take and pass the CallStatus to our listener. * backend/pas/pas-book-view.h: change the prototype for notify_complete to include the CallStatus. * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_seq_complete_cb): add the status arg. * gui/widgets/e-addressbook-view.c (e_addressbook_view_class_init): init the search_result signal. (e_addressbook_view_init): connect to the model's search_result signal. (emit_search_result): emit our search_result signal. (search_result): call emit_search_result. * gui/widgets/e-addressbook-view.h (struct _EAddressbookViewClass): add the search_result signal. * gui/widgets/e-addressbook-model.c (sequence_complete): emit both a "search_result" as well as the "stop_state_changed" signal. (e_addressbook_model_class_init): init the search_result signal. * gui/widgets/e-addressbook-model.h: add search_result signal. * gui/component/addressbook.c (search_result): pop up a dialog telling the user why the search failed or was truncated. (addressbook_factory_new_control): connect to the "search_result" signal on the view. * conduit/address-conduit.c (sequence_complete): add the status parameter to sequence_complete. * backend/idl/addressbook.idl: add BookViewListener_CallStatus, and change notifySequenceComplete to take a CallStatus. * backend/pas/pas-backend-ldap.c (create_card_handler): pass status back in the notify_complete call. (remove_card_handler): same. (modify_card_modify_handler): same (ldap_search_handler): same, and parse out the ldap return code so we can report limits being properly. * backend/pas/pas-backend-file.c (do_summary_query): pass status back in the notify_complete call. (pas_backend_file_search): same, and get rid of the status_message, as the status is passed back properly. (pas_backend_file_search): pass status back in the notify_complete call. (pas_backend_file_changes): same. (pas_backend_file_process_create_card): same. (pas_backend_file_process_remove_card): same. (pas_backend_file_process_modify_card): same. * backend/ebook/e-book-util.c (simple_query_sequence_complete_cb): add status parameter. * backend/ebook/e-book-view-listener.c (e_book_view_listener_queue_status_event): change name from _queue_empty_event, and take a status arg. (e_book_view_listener_queue_id_event): init resp->status (to SUCCESS). (e_book_view_listener_queue_sequence_event): same. (e_book_view_listener_queue_message_event): same. (impl_BookViewListener_notify_sequence_complete): call queue_status_event, and convert the corba status to EBookViewStatus. (e_book_view_listener_convert_status): new function, conver the corba status to EBookViewStatus. * backend/ebook/e-book-view-listener.h: add a "status" slot to EBookViewListenerResponse. * backend/ebook/e-book-view.h: change prototype for sequence_complete signal. * backend/ebook/e-book-view.c (e_book_view_do_complete_event): sequence_complete takes a parameter now (EBookViewStatus). (e_book_view_class_init): add the enum arg to the signal. * backend/ebook/e-book-types.h: add EBookViewStatus enum. svn path=/trunk/; revision=17814
* add an "addresses" property, to get the "Dan Winship <danw@ximian.com>"Dan Winship2002-08-201-0/+19
| | | | | | | | | | | | * gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): add an "addresses" property, to get the "Dan Winship <danw@ximian.com>" form, as opposed to "text", which gets you what's displayed, which might be just "Dan Winship". (entry_set_property_fn): When setting, just reuse the "text" code, since it should properly cardify everything for us anyway. (impl_SelectNames_get_entry_for_section): Add the property. svn path=/trunk/; revision=17803
* fix c&p error that was losing the ssl setting.Chris Toshok2002-08-171-1/+1
| | | | | | | | | | 2002-08-16 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (addressbook_source_dialog_set_source): fix c&p error that was losing the ssl setting. svn path=/trunk/; revision=17792
* [ fix 27333 ] "local" -> "do-initial-query".Chris Toshok2002-08-162-18/+33
| | | | | | | | | | | | | | | | | | | | | | 2002-08-16 Chris Toshok <toshok@ximian.com> [ fix 27333 ] * gui/widgets/e-addressbook-model.c (get_view): "local" -> "do-initial-query". * backend/pas/pas-backend-file.c (pas_backend_file_get_static_capabilities): "local" -> "local,do-initial-query". * gui/widgets/e-addressbook-model.c (get_view): "local" -> "do-initial-query". * gui/component/addressbook.c (book_open_cb): Only assume the addressbook is local if "local" appears in its static capabilities. We still use the ldap special case, but be nicer to other networked backends. svn path=/trunk/; revision=17782
* If invoked from a non-contact folder, add the contact to the defaultDan Winship2002-08-134-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (user_create_new_item_cb): If invoked from a non-contact folder, add the contact to the default contact folder, not the local one. If invoked from a contact folder, don't append "addressbook.db" to the URI, let ebook do the right thing. Fixes #28327 and #28325. * backend/idl/addressbook.idl (CallStatus): Add NoSuchBook. (Initially intended as part of a fix for #28327, but the other changes make it so the error code never ends up getting used any more, but it's still good to have.) * gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog): Handle NO_SUCH_BOOK. * backend/ebook/e-book-types.h (EBookStatus): Add E_BOOK_STATUS_NO_SUCH_BOOK. * backend/ebook/e-book-listener.c (e_book_listener_convert_status): add case for NoSuchBook. * backend/ebook/e-book-util.c (e_book_load_local_address_book): Kill this. Nothing should ever explicitly load the local addressbook. (e_book_use_default_book): Replaces e_book_use_local_address_book, using the default book instead. (e_book_default_book_open): Fall back to local contact folder on E_BOOK_STATUS_NO_SUCH_BOOK too. (e_book_query_address_default): Use default book, not local. * gui/component/e-address-widget.c (query_idle_fn): Use the default book, not the local book. * gui/component/select-names/e-select-names-popup.c (edit_contact_info_cb): Use the default book, not the local book. * backend/ebook/e-destination.c (e_destination_cardify): Use the default book, not the local book. (e_destination_touch): Query the default book, not the local book. * backend/ebook/e-card-compare.c (e_card_locate_match, e_card_locate_match_full): Use the default book, not the local book. svn path=/trunk/; revision=17764
* [ fixes bug #25958 ] use FULL_NAME in the case where we're untoggling aChris Toshok2002-08-021-2/+2
| | | | | | | | | | | | 2002-08-01 Chris Toshok <toshok@ximian.com> [ fixes bug #25958 ] * gui/component/addressbook.c (alphabet_state_changed): use FULL_NAME in the case where we're untoggling a letter, and... well use FULL_NAME in the other case too - we should never pop up the advanced dialog. svn path=/trunk/; revision=17683
* no more search_entry.Chris Toshok2002-08-022-13/+9
| | | | | | | | | | | | | | | | 2002-08-01 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names.h (struct _ESelectNames): no more search_entry. * gui/component/select-names/e-select-names.c (update_query): no more search_entry, search_entry => select_entry, and add file_as to the query since some entries don't have names (like the Ximian, Inc. default card.) (e_select_names_init): no more search_entry, and add an "activate" handler on select_entry that updates the query. svn path=/trunk/; revision=17682
* remove folders and folders_by_uri, and the 2 listeners.Chris Toshok2002-08-022-17/+0
| | | | | | | | | | | | | | | 2002-08-01 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names.h (struct _ESelectNames): remove folders and folders_by_uri, and the 2 listeners. * gui/component/select-names/e-select-names.c (e_select_names_destroy): remove the hash_table_destroys of folders and folders_by_uri, since they no longer exist. same for other_contacts_listener and local_listener. svn path=/trunk/; revision=17681
* (create_component): UseEttore Perazzoli2002-08-021-1/+1
| | | | | | "contact-list-16.png" for the "New Contact List" item. svn path=/trunk/; revision=17678
* Change the order so that "New Contact" is first and "New Contact List" isEttore Perazzoli2002-08-011-4/+4
| | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Change the order so that "New Contact" is first and "New Contact List" is next. * gui/component-factory.c (create_object): Change the order of the user creatable items a bit so that "New Appointment" and "New Meeting" are at the top when in a calendar folder. * component-factory.c (create_component): Put "New Mail Message" before "New Message Post" instead of vice versa. * evolution-mail-global.xml: Remove "New Mail Message" and "Post Message" items. svn path=/trunk/; revision=17661
* Pass "contacts" as the @folder_type toEttore Perazzoli2002-08-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): Pass "contacts" as the @folder_type to evolution_shell_component_add_user_creatable_item(). * gui/component-factory.c (add_creatable_item): New arg @folder_type, pass it to evolution_shell_component_add_user_creatable_item(). (create_object): Set the right folder types for the various user-creatable items. * component-factory.c (create_component): Pass "mail" as @folder_type to evolution_shell_component_add_user_creatable_item(). * evolution-test-component.c (register_component): Pass NULL for @folder_type to evolution_shell_component_add_user_creatable_item(). * e-shell-user-creatable-items-handler.c: New member folder_type in struct MenuItem. (ensure_menu_items): Initialize ->folder_type. (item_is_default): New helper function. (create_menu_xml): New arg @folder_type. Put the items on the top using item_is_default(). (shell_view_view_changed_callback): Pass the folder type to create_menu_xml(). * evolution-shell-component.c: New member folder_type in UserCreatableItemType. (user_creatable_item_type_new): New arg @folder_type. (user_creatable_item_type_free): Free ->folder_type. (evolution_shell_component_add_user_creatable_item): New arg @folder_type. (impl__get_userCreatableItemTypes): Set ->folderType in the returned CORBA structs. * Evolution-ShellComponent.idl: New member folderType in struct UserCreatableItemType. * e-shell-user-creatable-items-handler.c: New member component_id in struct MenuItem. Removed member menu_xml from EShellUserCreatableItemsHandlerPrivate. (init): No need to initialize menu_xml here anymore. (impl_destroy): ...And no need to free here, either. (setup_menu_xml): New, derived from ensure_menu_xml(). This orders the menu so that the items for the current component go at the top. (create_menu_xml): Removed. (e_shell_user_creatable_items_handler_attach_menus): Set up properly for the current component ID, using setup_menu_xml(). svn path=/trunk/; revision=17658
* Don't set up the ContactNew andEttore Perazzoli2002-07-271-48/+0
| | | | | | | | | | ContactNewList verbs. (update_command_state): Don't set the sensitivity of /commands/ContactNew and /commands/ContactNewList anymore. (new_contact_cb): Removed. (new_contact_list_cb): Removed. svn path=/trunk/; revision=17614
* remove the option menu and browse button, and add a custom widgetChris Toshok2002-07-172-377/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-16 Chris Toshok <toshok@ximian.com> * gui/component/select-names/select-names.glade: remove the option menu and browse button, and add a custom widget placeholder for the folder-selector. * gui/component/select-names/e-select-names.c (addressbook_model_set_uri): move the "append /addressbook.db" stuff here. (e_addressbook_create_ebook_table): remove the code setting initial uri from here. (e_select_names_folder_free): gone. (e_select_names_option_activated): gone. (add_menu_item): gone. (update_option_menu): gone. (new_folder): gone. (removed_folder): gone. (folder_browse): gone. (hookup_listner): gone. (add_additional_select_names_uris): gone. (e_select_names_hookup_listners): gone. (e_addressbook_create_folder_selector): new function, create the folder selector button. (folder_selected): new function, callback for the folder selector. just calls addresbook_model_set_uri. (e_select_names_init): get the folder selector and initialize it to show /local/Contacts. also, set the model's uri here to the same folder. nuke the code involving the old option menu and browse button. svn path=/trunk/; revision=17484
* Forgot part of the patchPeter Williams2002-07-171-1/+2
| | | | svn path=/trunk/; revision=17478
* Install the SelectNames IDL and ancillary changes.Peter Williams2002-07-171-4/+5
| | | | | | | | | 2002-07-08 Peter Williams <peterw@ximian.com> * gui/component/select-names/Makefile.am (idl_DATA): Install the SelectNames IDL and ancillary changes. svn path=/trunk/; revision=17477
* Make the ENTRY_PROPERTY_ID_SIMPLE_CARD_LIST case not crash, althoughDan Winship2002-07-131-1/+1
| | | | | | | | | * gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): Make the ENTRY_PROPERTY_ID_SIMPLE_CARD_LIST case not crash, although there's still something wrong. svn path=/trunk/; revision=17446
* e_book_get_book_view => e_book_get_completion_view, so the backends haveChris Toshok2002-07-111-3/+4
| | | | | | | | | | | 2002-07-10 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): e_book_get_book_view => e_book_get_completion_view, so the backends have the option of using a pregenerated summary. svn path=/trunk/; revision=17417
* Add include lines to get ebook headers relative to <ebook/foo.h>, notPeter Williams2002-07-115-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * tools/Makefile.am (INCLUDES): Add include lines to get ebook headers relative to <ebook/foo.h>, not "foo.h". addressbook: 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/e-book.h: Normalize includes to <ebook/foo.h>, so that the installed headers will work sanely. * backend/ebook/e-card-cursor.h: * backend/ebook/e-book-view.h: * backend/ebook/e-card-simple.h: * backend/ebook/e-card.h: * backend/ebook/e-destination.h: Same. * printing/Makefile.am (INCLUDES): add -Iaddressbook/backend to access the ebook headers. Also the builddir version to get the generated addressbook.h * gui/widgets/Makefile.am (INCLUDES): Same builddir fix. * gui/merging/e-card-merging.c: Fix an ebook #include. * gui/merging/Makefile.am (INCLUDES): Same idea. * gui/contact-list-editor/Makefile.am (INCLUDES): Same. * gui/contact-editor/Makefile.am (INCLUDES): Same builddir change. calendar: 2002-07-08 Peter Williams <peterw@ximian.com> * gui/Makefile.am (INCLUDES): Change the -I flags to get it to play nicely with the new Ebook header paradigm. * gui/dialogs/Makefile.am: Same. * gui/e-meeting-model.c: More of the same. * gui/dialogs/e-delegate-dialog.c: * gui/dialogs/e-meeting-model.c: * gui/dialogs/comp-editor-util.c: Fix include lines to get ebook headers. * pcs/Makefile.am: Same. composer: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Fix cflags for ebook header namespacing. importers: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Fix cflags to get at ebook headers correctly. * pine-importer.c: Fix include lines to get ebook headers the "right" way. * evolution-gnomecard-importer.c: Same. mail: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I flags to get the ebook headers. svn path=/trunk/; revision=17411
* Pass zero as the @sorting_priority to evolution_storage_new_folder().Ettore Perazzoli2002-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-storage.c (load_source_data): Pass zero as the @sorting_priority to evolution_storage_new_folder(). (addressbook_storage_add_source): Likewise. * subscribe-dialog.c (recursive_add_folder): Pass zero as @sorting_priority to evolution_storage_new_folder(). * mail-folder-cache.c (real_flush_updates): Pass zero as @sorting_priority to evolution_storage_new_folder(). * evolution-test-component.c (setup_custom_storage): Pass @sorting_priority to evolution_storage_new_folder() so we test it. Also make /FirstFolder have an "inbox" custom icon. * e-local-storage.c (new_folder): Pass zero as @sorting_priority to evolution_storage_new_folder(). * evolution-storage.c (evolution_storage_new_folder): New arg @sorting_priority; put it in the CORBA folder struct. * evolution-shell-client.c (impl_FolderSelectionListener_selected): Copy the sortingPriority as well. * e-folder.c (e_folder_to_corba): Set sortingPriority. * e-corba-storage-registry.c (impl_StorageRegistry_getFolderByUri): Set sortingPriority in the new CORBA Folder struct. * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): Set the custom_icon if folder->customIconName is not an empty string. Likewise, set the sorting_priority * Evolution-common.idl: New member sortingPriority in struct Folder. * e-storage-set-view.c (folder_sort_callback): Sort according to the sorting_priorities. * e-folder.c: New member sorting_priority in EFolderPrivate. (init): Init to zero. (e_folder_set_custom_icon): Emit "changed" if required. (e_folder_set_sorting_priority): New. svn path=/trunk/; revision=17404
* Pass NULL @custom_icon_name to evolution_storage_new_folder().Ettore Perazzoli2002-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-storage.c (load_source_data): Pass NULL @custom_icon_name to evolution_storage_new_folder(). (addressbook_storage_add_source): Likewise. [Note we could be passing a nice custom here. ;-)] * subscribe-dialog.c (recursive_add_folder): Pass NULL for @custom_icon_name to evolution_storage_new_folder(). * mail-folder-cache.c (real_flush_updates): Pass NULL for @custom_icon_name to evolution_storage_new_folder(). * evolution-test-component.c (setup_custom_storage): Pass NULL for @custom_icon_name to evolution_storage_new_folder(). * e-local-storage.c (new_folder): Pass the custom_icon_name here to evolution_storage_new_folder(). * evolution-shell-client.c (impl_FolderSelectionListener_selected): Set customIconName here too. * e-folder.c (e_folder_to_corba): Set customIconName too. * e-corba-storage-registry.c (impl_StorageRegistry_getFolderByUri): Set customIconName. Also, use e_safe_corba_string() to clean up the code a bit. * evolution-storage.c (evolution_storage_new_folder): New arg @custom_icon_name. * Evolution-common.idl: New member customIconName in struct Folder. svn path=/trunk/; revision=17397
* New arg @tooltip; pass it toEttore Perazzoli2002-07-021-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (add_creatable_item): New arg @tooltip; pass it to evolution_shell_component_add_user_creatable_item() [which now has a @tooltip arg]. * gui/component-factory.c (add_creatable_item): New arg @tooltip. Pass it to evolution_shell_component_add_user_creatable_item(), which now has a @tooltip arg. (create_object): Added tooltips. * component-factory.c (create_component): Pass a tooltip to evolution_shell_component_add_user_creatable_item. * e-shell-user-creatable-items-handler.c: New member tooltip in struct MenuItem. (ensure_menu_items): Initialize the tooltip member. (shell_view_view_changed_callback): Set the tooltip for the "New" button. (ensure_menu_xml): Set up the tooltip here as well. * evolution-shell-component.c: Add tooltip member to struct UserCreatableItemType. (user_creatable_item_type_new): New arg @tooltip. (evolution_shell_component_add_user_creatable_item): New arg @tooltip. (impl__get_userCreatableItemTypes): Put the tooltip in the struct as well. * e-shell-user-creatable-items-handler.c (setup_toolbar_button): Create a GtkTooltips object and attach it to the combo_button using gtk_object_set_data(). (shell_view_view_changed_callback): Set up a tooltip for the button, according to the default. * Evolution-ShellComponent.idl: Add a tooltip member to struct UserCreatableItemType. svn path=/trunk/; revision=17343
* don't unref selection_model (otherwise 3 clicks of "Show Supported Bases"Sean Atkinson2002-07-011-2/+0
| | | | | | | | | | 2002-06-27 Sean Atkinson <sean@cantab.net> * gui/component/addressbook-config.c (query_for_supported_bases): don't unref selection_model (otherwise 3 clicks of "Show Supported Bases" crashes if LDAP server isn't running). svn path=/trunk/; revision=17333
* reorder the adding of creatable items so the default is a new contact, notChris Toshok2002-06-261-3/+3
| | | | | | | | | | 2002-06-25 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (create_component): reorder the adding of creatable items so the default is a new contact, not a new contact list. svn path=/trunk/; revision=17279
* remove source argument (get it from the dialog). (edit_source_clicked):Sean Atkinson2002-06-251-6/+17
| | | | | | | | | | | | 2002-06-21 Sean Atkinson <sean@cantab.net> * gui/component/addressbook-config.c (addressbook_edit_server_dialog): remove source argument (get it from the dialog). (edit_source_clicked): same. (sources_table_double_click): added to edit server by double-clicking. (ldap_dialog_new): use sources_table_double_click. svn path=/trunk/; revision=17272
* pass NULL to e_contact_list_save_as. modality sucks. fixes broken build.Chris Toshok2002-06-181-2/+2
| | | | | | | | | | | 2002-06-17 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-view.c (e_addressbook_view_save_as): pass NULL to e_contact_list_save_as. modality sucks. fixes broken build. (save_as): same. svn path=/trunk/; revision=17212
* [ fixes bug #26130 ] pass ce->app as parent_window.Chris Toshok2002-06-164-8/+20
| | | | | | | | | | | | | | | | | | | | | 2002-06-15 Chris Toshok <toshok@ximian.com> [ fixes bug #26130 ] * gui/contact-editor/e-contact-editor.c (file_save_as_cb): pass ce->app as parent_window. * gui/contact-list-editor/e-contact-list-editor.c (file_save_as_cb): same . * gui/contact-editor/e-contact-save-as.c (e_contact_list_save_as): if a parent_window is specified, the file selector should be modal/transient for that window. (e_contact_save_as): same. * gui/contact-editor/e-contact-save-as.h: track prototype changes (addition of GtkWindow *parent_window to both calls.) svn path=/trunk/; revision=17199
* Don't enable fields if the editor isn't editable and theChristopher James Lahey2002-06-141-0/+4
| | | | | | | | | | | 2002-06-13 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Don't enable fields if the editor isn't editable and the widget_field_mappings lists this field as being desensitize for read only. svn path=/trunk/; revision=17184
* Made double clicking on read only folders not do anything.Christopher James Lahey2002-06-121-8/+9
| | | | | | | | | 2002-06-11 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-minicard-view.c (e_minicard_view_event): Made double clicking on read only folders not do anything. svn path=/trunk/; revision=17171
* Made expand_uri a bit more robust and readable.Christopher James Lahey2002-06-111-0/+5
| | | | | | | | | | | | | | 2002-06-10 Christopher James Lahey <clahey@ximian.com> * backend/ebook/e-book-util.c (e_book_expand_uri): Made expand_uri a bit more robust and readable. (e_book_get_default_book_uri): Made e_book_get_default_book_uri use e_book_expand_uri if using the bonobo_config value. * gui/component/e-address-popup.c (start_query): Handle the failure state here by acting as if there are no matches. svn path=/trunk/; revision=17159
* Call e_minicard_selected in the GDK_BUTTON_RELEASE case here.Christopher James Lahey2002-06-061-0/+7
| | | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-minicard.c (e_minicard_event): Call e_minicard_selected in the GDK_BUTTON_RELEASE case here. (e_minicard_drag_begin): Set E_REFLOW (parent)->maybe_in_drag = FALSE if it's an EReflow. svn path=/trunk/; revision=17124
* Commented out this unused function.Christopher James Lahey2002-06-042-3/+5
| | | | | | | | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_book_ready): Commented out this unused function. * gui/component/select-names/e-select-names-manager.c (open_book_cb): Ref if we're keeping the book. Don't unref if we're not keeping the book. (clean_cb): Commented out this unused function. svn path=/trunk/; revision=17105
* Set the title of our GalVIewCollection.Christopher James Lahey2002-06-041-0/+2
| | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-addressbook-view.c (init_collection): Set the title of our GalVIewCollection. svn path=/trunk/; revision=17102
* Changed some spacing and expanding behavior to make this dialog behaveAnna Marie Dirks2002-05-301-73/+83
| | | | | | | | | | 2002-05-29 Anna Marie Dirks <anna@ximian.com> * gui/component/select-names/select-names.glade: Changed some spacing and expanding behavior to make this dialog behave more like I intended to. svn path=/trunk/; revision=17037
* put this back in, accidentally got snipped with the hacking going on inChris Toshok2002-05-251-0/+1
| | | | | | | | | | 2002-05-24 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (CONFIG_CONTROL_FACTORY_ID): put this back in, accidentally got snipped with the hacking going on in here. svn path=/trunk/; revision=17010
* [ part of #25047 ] remove the autocompletion config control from here, asChris Toshok2002-05-242-105/+0
| | | | | | | | | | | | 2002-05-24 Chris Toshok <toshok@ximian.com> [ part of #25047 ] * gui/component/addressbook-config.c: remove the autocompletion config control from here, as it lives in the shell now. * gui/component/GNOME_Evolution_Addressbook.oaf.in: same. svn path=/trunk/; revision=17001
* [ #24189 ] ifdef out the body of this because it only works with a singleChris Toshok2002-05-246-50/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-24 Chris Toshok <toshok@ximian.com> [ #24189 ] * gui/component/select-names/e-select-names-manager.c (focus_out_cb): ifdef out the body of this because it only works with a single completion book. not sure what to do here, but it doesn't impact most usage scenarios. (completion_popup_cb): same. (e_select_names_manager_entry_new): add the books that have been loaded successfully by the time this entry is created. (open_book_cb): add the opened book to the entries that have already been created, and store it in our list so that entries that are created in the future can catch up. (read_completion_books_from_db): slurp in the folder list from the config db and load all the uris. (uris_listener): listener function - when there's a change it calls _clear_books on all the created entries, and clears our list. It then re-reads the books from the db. (e_select_names_manager_new): create our bonobo listener and call read_completion_books_from_db. (e_select_names_manager_init): init completion_books. (e_select_names_manager_destroy): free our list of completion_books. * gui/component/select-names/e-select-names-manager.h: switch from a single EBook to a GList of completion_books here. * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_add_book): deal with the case where there's an active query (by effectively restarting it.) This is quite a contrived edge case. (e_select_names_completion_clear_books): stop the current query and clear our list of books. (e_select_names_completion_new): track change to prototype, and axe the majority of this method since an EBook* isn't passed anymore. (e_select_names_completion_clear_book_data): split this code out from the destroy method so it can be called from _clear_books. * gui/component/select-names/e-select-names-completion.h: the constructor no longer takes an EBook -- pass in as many as you want using _add_book. Also, add prototype for _clear_books. * gui/component/addressbook.c (load_uri_cb): when storing/retrieving passwords, use the cleaned (without params) version of the uri, so changing things like download limit don't cause the user to be prompted for a password again. * gui/component/addressbook-component.c (ensure_completion_uris_exist): new function - probably doesn't belong in this file. Make sure the basic local Contacts folder exists in the completion uris. (addressbook_component_factory_init): call ensure_completion_uris_exist. * backend/ebook/e-book-util.h: add prototype for e_book_get_default_book_uri. * backend/ebook/e-book-util.c (e_book_get_default_book_uri): new function, just return the default contacts uri. (e_book_load_default_book): change to use e_book_get_default_book_uri. svn path=/trunk/; revision=16999
* fix parameter/local variable overloading.Chris Toshok2002-05-241-3/+3
| | | | | | | | | 2002-05-23 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (addressbook_root_dse_query): fix parameter/local variable overloading. svn path=/trunk/; revision=16996
* Don't try to invoke e_book_get_uri() on NULL. Fixes #20069.Ettore Perazzoli2002-05-221-3/+3
| | | | | | | * gui/component/addressbook.c (load_uri_cb): Don't try to invoke e_book_get_uri() on NULL. Fixes #20069. svn path=/trunk/; revision=16968
* make sure we map status -> string correctly (add missing strings).Chris Toshok2002-05-211-0/+3
| | | | | | | | | | | | | | | | 2002-05-17 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog): make sure we map status -> string correctly (add missing strings). * backend/ebook/e-book-types.h (EBookStatus): add the missing AUTHENTICATION_REQUIRED status code, to map to the idl response. * backend/ebook/e-book-listener.c (e_book_listener_convert_status): make sure we map all idl status codes to EBookStatus statuses. svn path=/trunk/; revision=16958
* Set the can_sync_offline property on the EFolder based on theEttore Perazzoli2002-05-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-corba-storage.c (impl_StorageListener_notifyFolderCreated): Set the can_sync_offline property on the EFolder based on the canSyncOffline value on the CORBA folder. * evolution-test-component.c (setup_custom_storage): Pass FALSE for @sync_offline to evolution_storage_new_folder(). * e-local-storage.c (new_folder): Pass FALSE for @sync_offline to evolution_storage_new_folder(). * evolution-storage.h (evolution_storage_new_folder): New arg @can_sync_offline. * subscribe-dialog.c (recursive_add_folder): Pass TRUE for @sync_offline to evolution_storage_new_folder(). * mail-folder-cache.c (real_flush_updates): Pass TRUE for @sync_offline to evolution_storage_new_folder(). * gui/component/addressbook-storage.c (load_source_data): Pass FALSE for @sync_offline to evolution_storage_new_folder(). (addressbook_storage_add_source): Pass FALSE for @sync_offline to evolution_storage_new_folder(). svn path=/trunk/; revision=16947
* New, quit handler for the EvolutionShellComponent. (add_creatable_item):Ettore Perazzoli2002-05-176-20/+113
| | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (request_quit): New, quit handler for the EvolutionShellComponent. (add_creatable_item): Set it up. * gui/contact-editor/e-contact-list-editor.c (e_contact_list_editor_request_close_all): New. (e_contact_list_editor_new): Put the contact editor in a static list and gtk_object_weakref() it. (contact_list_editor_destroy_notify): New, GtkDestroyNotify function for the contact editors. * gui/contact-editor/e-contact-editor.c (e_contact_editor_request_close_all): New. (e_contact_editor_new): Put the contact editor in a static list and gtk_object_weakref() it. (contact_editor_destroy_notify): New, GtkDestroyNotify function for the contact editors. svn path=/trunk/; revision=16934
* Check with e_shell_prepare_for_quit() before quitting.Ettore Perazzoli2002-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view-menu.c (command_quit): Check with e_shell_prepare_for_quit() before quitting. * e-shell.c (e_shell_prepare_for_quit): New. * evolution-test-component.c (request_quit_fn): New function asking for confirmation to quit. * evolution-shell-component.c (evolution_shell_component_new): New arg @request_quit_fn. (impl_requestQuit): New, implementation for EvolutionShellComponent::requestQuit. (evolution_shell_component_result_to_string): Handle EVOLUTION_SHELL_COMPONENT_CANCEL. (evolution_shell_component_client_request_quit): New. * Evolution-ShellComponent.idl (requestQuit): New. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * component-factory.c (create_component): Pass NULL as @request_quit_fn. * gui/component-factory.c (create_object): Pass NULL as @request_quit_fn. * gui/component/addressbook-component.c (create_component): Pass NULL as @request_quit_fn. svn path=/trunk/; revision=16925
* Enable the dropdown widgets even if the contact is not editable so thatChristopher James Lahey2002-05-141-1/+1
| | | | | | | | | | | 2002-05-13 Christopher James Lahey <clahey@ximian.com> * gui/contact-editor/e-contact-editor.c (enable_writable_fields): Enable the dropdown widgets even if the contact is not editable so that you can view any email address, phone number, or postal address on read only contacts. svn path=/trunk/; revision=16767
* Added SimpleCard interface.Christopher James Lahey2002-05-115-12/+440
| | | | | | | | | | | | | | | | | | | 2002-05-10 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/Evolution-Addressbook-SelectNames.idl: Added SimpleCard interface. * gui/component/select-names/Makefile.am: Added e-simple-card-bonobo.c and e-simple-card-bonobo.h. * gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): Added SIMPLE_CARD_LIST arg. * gui/component/select-names/e-simple-card-bonobo.c, gui/component/select-names/e-simple-card-bonobo.h: New class to represent an ECardSimple across Bonobo. svn path=/trunk/; revision=16757
* Added "first_email" property.Christopher James Lahey2002-05-101-0/+21
| | | | | | | | | 2002-05-09 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names-bonobo.c (entry_get_property_fn): Added "first_email" property. svn path=/trunk/; revision=16734
* Pass %FALSE as @has_shared_folders to evolution_storage_new().Ettore Perazzoli2002-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-local-storage.c (construct): Pass %FALSE as @has_shared_folders to evolution_storage_new(). * evolution-storage.c: New member has_shared_folders in EvolutionStoragePrivate. (init): Initialize to FALSE. (evolution_storage_new): New arg @has_shared_folders. (evolution_storage_construct): Likewise. (impl_Storage__get_folderList): Renamed from impl_Storage__get_folder_list. (impl_Storage__get_hasSharedFolders): New, implementation for ::hasSharedFolders. (evolution_storage_get_epv): Install the CORBA method implementation. * Evolution-Storage.idl: Make Storage::name a readonly attribute. New attribute Storage:: * component-factory.c (add_storage): Pass %FALSE as @has_shared_folders to evolution_storage_new(). * gui/component/addressbook-storage.c (addressbook_get_other_contact_storage): Pass %FALSE as @has_shared_folders to evolution_storage_new(). svn path=/trunk/; revision=16733
* oops, add the NULL back at the end of possible_types.Chris Toshok2002-05-081-1/+1
| | | | | | | | | | 2002-05-07 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (addressbook_config_control_new): oops, add the NULL back at the end of possible_types. svn path=/trunk/; revision=16714
* bleah, need to pass the GtkWindow here so we can pop up the a modalChris Toshok2002-05-081-22/+37
| | | | | | | | | | | | | | | 2002-05-07 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-config.c (addressbook_ldap_init): bleah, need to pass the GtkWindow here so we can pop up the a modal parented dialog (gtk modal dialogs suck?). (addressbook_ldap_auth): same. (addressbook_root_dse_query): same. (do_ldap_root_dse_query): same. (addressbook_config_control_new): add "ldap-contacts" to the list of possible types. svn path=/trunk/; revision=16711
* s/ldap_config/addressbook_config/ so this compiles again.Dan Winship2002-05-071-1/+1
| | | | | | | * gui/component/addressbook-storage.c (create_ldap_folder): s/ldap_config/addressbook_config/ so this compiles again. svn path=/trunk/; revision=16703
* Call evolution_config_control_changed when the EFolderList changes.Christopher James Lahey2002-05-041-0/+10
| | | | | | | | | | 2002-05-03 Christopher James Lahey <clahey@ximian.com> * gui/component/addressbook-config.c (addressbook_folder_list_changed_callback): Call evolution_config_control_changed when the EFolderList changes. svn path=/trunk/; revision=16680
* Updated this to have the ConfigControlFactory have an addressbookwideChristopher James Lahey2002-05-047-36/+147
| | | | | | | | | | | | | | | | | | | | | | | | 2002-05-03 Christopher James Lahey <clahey@ximian.com> * gui/component/GNOME_Evolution_Addressbook.oaf.in: Updated this to have the ConfigControlFactory have an addressbookwide generic name and added OAFIID:GNOME_Evolution_Addressbook_ConfigControl. * gui/component/Makefile.am (evolution_addressbook_SOURCES), gui/component/addressbook-component.c, gui/component/addressbook-storage.c, gui/component/addressbook.c: Replaced ldap-config.c and ldap-config.h with addressbook-config.c andaddressbook-config.h. * gui/component/addressbook-config.c, gui/component/addressbook-config.h: Based on ldap-config.c and ldap-config.h. Added a folder list control. Made this a multi factory. * gui/component/ldap-config.c, gui/component/ldap-config.h: Replaced these with addressbook-config.c and addressbook-config.h. svn path=/trunk/; revision=16679
* Desensitize the to, cc, and bcc buttons if there's no selection here.Christopher James Lahey2002-05-031-0/+28
| | | | | | | | | | 2002-05-02 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c (selection_change): Desensitize the to, cc, and bcc buttons if there's no selection here. Fixes Ximian bug #21482. svn path=/trunk/; revision=16671
* Changed some of these to bind to the ContactListEditor verbs since they'reChristopher James Lahey2002-05-031-3/+3
| | | | | | | | | | 2002-05-01 Christopher James Lahey <clahey@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (verbs): Changed some of these to bind to the ContactListEditor verbs since they're marked as that in the ui file. Fixes Ximian bug #13034. svn path=/trunk/; revision=16665
* fixJP Rosevear2002-05-011-4/+3
| | | | | | | | 2002-04-30 JP Rosevear <jpr@ximian.com> * gui/component/Makefile.am (EXTRA_DIST): fix svn path=/trunk/; revision=16652
* Added this function so that there would be less duplication of cardsChristopher James Lahey2002-05-013-61/+104
| | | | | | | | | | | | | | | | | | | 2002-04-30 Christopher James Lahey <clahey@ximian.com> * gui/widgets/e-addressbook-model.c, gui/widgets/e-addressbook-model.h (e_addressbook_model_peek_card): Added this function so that there would be less duplication of cards during run time when duplication is unnecessary. * gui/widgets/e-addressbook-view.c: Cleaned up get_card_list and a number of associated functions to be much more uniform and simpler. (get_has_email_address): Don't show the "Send Message to Contact" menu item if there are no email addresses in the listed contacts. Fixes bug #1298. svn path=/trunk/; revision=16649
* Don't link to libibex anymore.Jeffrey Stedfast2002-04-271-1/+0
| | | | | | | | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * printing/Makefile.am: Don't link to libibex anymore. * conduit/Makefile.am: Same. * backend/ebook/Makefile.am: Again here. * gui/component/Makefile.am: And finally here. svn path=/trunk/; revision=16612
* Unref the text_model here instead of the model, since the model never getsChristopher James Lahey2002-04-261-4/+3
| | | | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c (e_select_names_child_free): Unref the text_model here instead of the model, since the model never gets set. Removed the model field since it's no longer used. svn path=/trunk/; revision=16592
* Updated this for the new e_table_memory_store_insert function prototype.Christopher James Lahey2002-04-251-20/+8
| | | | | | | | | 2002-04-24 Christopher James Lahey <clahey@ximian.com> * gui/component/ldap-config.c: Updated this for the new e_table_memory_store_insert function prototype. svn path=/trunk/; revision=16582
* Added a "Browse..." button to switch to a different addressbook folder.Christopher James Lahey2002-04-254-17/+100
| | | | | | | | | | | | | | | | 2002-04-24 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c, gui/component/select-names/e-select-names.h, gui/component/select-names/select-names.glade (folder_browse): Added a "Browse..." button to switch to a different addressbook folder. * gui/widgets/e-addressbook-util.c (e_addressbook_transfer_cards): Moved extern EvolutionShellClient out of this function so that it'd be more readable. svn path=/trunk/; revision=16574
* Coded handling of the select_entry to search within the displayedChristopher James Lahey2002-04-243-68/+90
| | | | | | | | | | | | | 2002-04-23 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/e-select-names.c, gui/component/select-names/e-select-names.h: Coded handling of the select_entry to search within the displayed contacts. * gui/component/select-names/select-names.glade: Updated this dialog to have an entry-select instead of an entry-find. svn path=/trunk/; revision=16570
* Updated this dialog to match the redesign.Christopher James Lahey2002-04-241-205/+259
| | | | | | | | | 2002-04-23 Christopher James Lahey <clahey@ximian.com> * gui/component/select-names/select-names.glade: Updated this dialog to match the redesign. svn path=/trunk/; revision=16569