aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tag 'GGV_2_6_2'.GGV_2_6_2nobody2003-12-0944-13704/+0
| | | | svn path=/tags/GGV_2_6_2/; revision=23746
* change prototype to fix warning, and change the comment to readChris Toshok2003-12-079-102/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-06 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-manager.c (open_book_cb): change prototype to fix warning, and change the comment to read load_source instead of load_uri (which isn't what we use anymore.) (update_completion_books): just use our source list for this. check the "completion" source property. (source_list_changed): recreate the completion books. (e_select_names_manager_init): connect to the source_list's changed signal. (e_select_names_manager_dispose): don't need to free the completion_uids list anymore. * gui/component/select-names/e-select-names-config.c (e_select_names_config_get_completion_books, e_select_names_config_set_completion_books, e_select_names_config_add_notification_completion_books): remove. * gui/component/select-names/e-select-names-config.h: remove the completion books calls, since we can just use the source list. * gui/component/component-factory.c (factory): create the autocompletion control. * gui/component/autocompletion-config.[ch]: new config control for selecting completion folders. Uses e-source-selector. Could probably be beautified a bit. * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): add autocompletion-config.[ch] * gui/component/GNOME_Evolution_Addressbook.server.in.in: remove the ldap config control server, and add the autocompletion one. svn path=/trunk/; revision=23663
* Remove hard coded disable deprecated flagsJP Rosevear2003-12-072-7/+1
| | | | | | | | 2003-12-06 JP Rosevear <jpr@ximian.com> * */Makefile.am: Remove hard coded disable deprecated flags svn path=/trunk/; revision=23658
* no more custom widget for the selection of the search sourceJP Rosevear2003-12-0611-209/+393
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-05 JP Rosevear <jpr@ximian.com> * gui/component/select-names/select-names.glade: no more custom widget for the selection of the search source * gui/component/select-names/e-select-names.h: add member * gui/component/select-names/e-select-names.etspec: update model column * gui/component/select-names/e-select-names.c (find_first_source): find the first source in the list (addressbook_model_set_source): we have the source to set directly now (source_selected): listen for the source item to change (e_select_names_init): create a source option menu and hook it up (e_select_names_dispose): destroy the source list (e_select_names_new): do away with the config setup here * gui/component/select-names/e-select-names-manager.h: update members * gui/component/select-names/e-select-names-manager.c (update_completion_books): add books based on source uid (config_completion_books_changed_cb): handle the completion list changing (config_min_query_length_changed_cb): handle minimum query length changing (e_select_names_manager_new): we don't do the settings stuff here any more (e_select_names_manager_init): do the initial set up here for the book loaded and listen for changes (e_select_names_manager_dispose): destroy the new stuff * gui/component/select-names/e-select-names-config.[hc]: config information * gui/component/select-names/e-select-names-config-keys.h: the config keys * gui/component/select-names/e-select-names-bonobo.c (impl_SelectNames_activate_dialog): do away with the shell client stuff * gui/component/select-names/Makefile.am: build new files svn path=/trunk/; revision=23654
* (retrieve_shell_view_interface_from_control): Remove.Ettore Perazzoli2003-12-041-60/+0
| | | | | | | (set_folder_bar_label): Remove. (addressbook_new_control): Don't connect. svn path=/trunk/; revision=23613
* Do not depend on e-folder-list.Ettore Perazzoli2003-12-036-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-config.c: Do not depend on e-folder-list. * gui/component/select-names/e-select-names.c: Remove dependency on evolution-folder-selector-button. (e_addressbook_create_folder_selector): Just return a FIXME label for now. (folder_selected): #if 0 out. (e_select_names_init): Do not connect. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_activate_dialog): Don't get a shell_client arg anymore. (load_completion_books): Stub out. * gui/component/select-names/e-select-names.c (e_select_names_new): Don't get an EvolutionShellClient anymore. Don't create the folder selector button for now. * gui/component/select-names/e-select-names.h: Remove dependency on evolution-shell-client. * gui/component/select-names/e-select-names-bonobo.c: Remove dependency on evolution-shell-client. (impl_SelectNames_activate_dialog): Stub out. * gui/widgets/eab-gui-util.c: Remove dependency on evolution-shell-client. (eab_transfer_contacts): Stub out. * gui/main.c: Do not #include <evolution-shell-client.h>. * gui/e-itip-control.c: Do not #include <e-folder-selector-button.h> nor <evolution-shell-client.h>. (start_default_server): Return FALSE. (default_server_started_cb): Do not connect the "selected" signal on the button since it's now NULL. (button_selected_cb): #if 0 out. * gui/e-cal-list-view.h: Do not #include "evolution-activity-client.h". * gui/tasks-component.c (impl_createControls): Give an empty label for the status bar. * gui/e-day-view.h: Remove all deps on evolution-activity-client. svn path=/trunk/; revision=23596
* Version the schemas Removed AddedRodney Dawes2003-12-022-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-02 Rodney Dawes <dobey@ximian.com> * gui/component/Makefile.am: Version the schemas * gui/component/apps_evolution_addressbook.schemas: Removed * gui/component/apps_evolution_addressbook.schemas.in.in: Added 2003-12-02 Rodney Dawes <dobey@ximian.com> * gui/Makefile.am: Version the schemas * gui/apps_evolution_calendar.schemas: Removed * gui/apps_evolution_calendar.schemas.in.in: Added 2003-12-02 Rodney Dawes <dobey@ximian.com> * Makefile.am: Version the schemas * evolution-mail.schemas: Removed * evolution-mail.schemas.in.in: Added 2003-12-02 Rodney Dawes <dobey@ximian.com> * Makefile.am: Version the schemas * apps_evolution_shell.schemas: Removed * apps_evolution_shell.schemas.in.in: Added svn path=/trunk/; revision=23579
* (set_status_message): CallEttore Perazzoli2003-12-021-1/+4
| | | | | | | e_activity_handler_operation_finished() on the current activity ID when done. svn path=/trunk/; revision=23564
* Fix silly.Ettore Perazzoli2003-12-021-2/+1
| | | | svn path=/trunk/; revision=23561
* Replace activity_client with activity_id. (set_status_message): Use theEttore Perazzoli2003-12-023-29/+47
| | | | | | | | | | | | | | | | | * gui/component/addressbook.c (struct AddressbookView): Replace activity_client with activity_id. (set_status_message): Use the EActivityHandler from the AddressbookComponent. * gui/component/addressbook-component.c (struct _AddressbookComponentPrivate): New member activity_handler. (addressbook_component_init): Init. (impl_dispose): Unref. (addressbook_component_peek_activity_handler): New. (impl_createControls): Return an ETaskBar as the statusbar control and attach it to the activity handler. svn path=/trunk/; revision=23560
* Pass a label for the status bar control for now.Ettore Perazzoli2003-12-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/calendar-component.c (impl_createControls): Pass a label for the status bar control for now. * gui/tasks-component.c (impl_createControls): Pass a label for the status bar control for now. * mail-component.c (impl_createControls): Pass a label for the status bar control for now. * e-shell.c (struct _EShellPrivate): Remove member activity_handler. (setup_activity_interface): Remove. (e_shell_init): Don't call. (create_window): Don't attach the task bar to the activity handler. * e-shell-window.c (struct _ComponentView): New member statusbar_widget. (struct _EShellWindowPrivate): Remove member task_bar. (init_view): Get the status bar control from createControls and put it in the ComponentView struct. (setup_task_bar): New. (setup_statusbar_notebook): New. (switch_view): Switch the statusbar notebook too. (impl_dispose): Add missing GTK_OBJECT() cast. (e_shell_window_peek_task_bar): Remove. * Evolution-Component.idl (Component::createControls): New out arg "statusbar_control"; this way components can provide their own status bar. * e-activity-handler.c, e-activity-handler.h: Turn into a plain GObject; translate all the CORBA methods into plain C methods. * Makefile.am: Move e-activity-handler to libeshell instead of it being in the shell. svn path=/trunk/; revision=23555
* remove GTK_DISABLED_DEPRECATED so that we can build with gtk-2.3.Larry Ewing2003-12-021-1/+0
| | | | | | | | | 2003-12-01 Larry Ewing <lewing@ximian.com> * gui/component/Makefile.am (INCLUDES): remove GTK_DISABLED_DEPRECATED so that we can build with gtk-2.3. svn path=/trunk/; revision=23553
* Use BASE_VERSION for repo_ids and OAFIIDs Update killev to kill theRodney Dawes2003-12-027-38/+38
| | | | | | | | | | 2003-12-01 Rodney Dawes <dobey@ximian.com> * Use BASE_VERSION for repo_ids and OAFIIDs * Update killev to kill the correct versions of gnome-spell and the GtkHTML Editor svn path=/trunk/; revision=23543
* Fix start page text.Hans Petter Jansson2003-12-021-3/+4
| | | | | | | | 2003-12-01 Hans Petter Jansson <hpj@ximian.com> * gui/component/ldap-config.glade: Fix start page text. svn path=/trunk/; revision=23541
* Remove this too.Hans Petter Jansson2003-12-012-194/+1
| | | | | | | | | | 2003-12-01 Hans Petter Jansson <hpj@ximian.com> * gui/component/new-addressbook.glade: Remove this too. * gui/component/Makefile.am (glade_DATA): Remove new-addressbook.glade. svn path=/trunk/; revision=23522
* Remove addressbook-storage.[ch] and new-addressbook.[ch].Hans Petter Jansson2003-12-0114-2073/+888
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-01 Hans Petter Jansson <hpj@ximian.com> * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): Remove addressbook-storage.[ch] and new-addressbook.[ch]. * gui/component/addressbook-storage.[ch]: Removed from repository. * gui/component/new-addressbook.[ch]: Removed from repository. * gui/component/addressbook-component.c (load_uri_for_selection): Set source_uid property on view control, not folder_uri. (new_addressbook_cb): Call addressbook_config_create_new_source (). (edit_addressbook_cb): Implement. (fill_popup_menu_callback): Hook up edit_addressbook_cb (). (addressbook_component_init): Create the LDAP source group. * gui/component/addressbook-config.c (AddressbookSourceDialog): Take out the NEW_ADVANCED_UI stuff and add ESource related vars. (ldap_unparse_auth) (ldap_parse_auth) (ldap_unparse_scope) (ldap_unparse_ssl) (ldap_parse_ssl): Moved here from addressbook-storage.c. (addressbook_dialog_get_source) (addressbook_dialog_set_source) (objectclasses_create_server_table) (objectclasses_create_evolution_table) (objectclasses_add_foreach) (objectclasses_add) (objectclasses_sever_double_click) (objectclasses_remove_foreach) (objectclasses_remove) (objectclasses_evolution_double_click) (objectclasses_restore_default) (server_selection_model_changed) (evolution_selection_model_changed) (setup_objectclasses_tab): Nuke aging, unfinished NEW_ADVANCED_UI. (add_source_clicked) (edit_source_clicked) (delete_server) (delete_source_clicked) (ldap_config_control_destroy_callback) (ldap_config_control_apply_callback) (sources_selection_changed) (sources_table_row_activated) (ldap_dialog_new) (addressbook_dialog_create_sources_table) (ldap_config_control_new) (addressbook_config_control_new): Nuke config control. (create_source_dir) (dialog_to_source) (dialog_to_temp_source) (source_to_uri_parts) (source_to_dialog) (source_group_changed_cb) (source_group_menu_add_groups) (folder_page_forward) (finish_page_back): Implement. (addressbook_ldap_init): Take ESource instead of AddressbookSource. (addressbook_ldap_auth): Don't take a source, not needed. (addressbook_root_dse_query): Ditto. (addressbook_source_dialog_destroy): Clean up destroy function. (addressbook_add_server_druid_finish): Clean up, create ESource. (general_tab_check): If it's not LDAP, these options don't matter. (do_ldap_root_dse_query): Source no longer needed here. (query_for_supported_bases): Use a temp source generated from current dialog settings. (display_name_page_prepare): Renamed to folder_page_prepare (). (druid_display_name_page_modify_cb): Renamed to druid_folder_page_modify_cb (). (addressbook_add_server_druid): Set up source list, group selector. Make LDAP pages optional, dependent on selected group. Use ESource. (edit_dialog_store_change): Remove config control list stuff, export settings to ESource. (addressbook_edit_server_dialog): Renamed to addressbook_config_edit_source (), which takes an ESource. Remove config control list stuff, make LDAP pages show up only if we have an LDAP source. Remove NEW_ADVANCED_UI cruft. (addressbook_config_create_new_source): Just call addressbook_add_server_druid (). * gui/component/addressbook-config.h: Move LDAP enums here, from addressbook-storage.h. * gui/component/addressbook.c (control_activate_cb): uri -> source (addressbook_view_clear): Unref source list. (book_open_cb): Use ESource. (load_uri_auth_cb): Renamed to load_source_auth_cb (), manipulate ESource instead of URI. (get_remember_password): Implement. (set_remember_password): Implement. (addressbook_authenticate): Use ESource properties. (load_uri_cb): Renamed to load_source_cb (), ESource adaptation. (addressbook_load_uri): Renamed to addressbook_load_source (), takes ESource. (addressbook_load_default_book): ESource adaptation. (get_prop): folder_uri property -> source_uid property. (set_prop): folder_uri property -> source_uid property. Find ESource by UID. (addressbook_new_control): Set up source_uid property and ESourceList. * gui/component/component-factory.c (factory): Disable config control. * gui/component/ldap-config.glade: Druid and notebook dialogs generalized to deal with local sources as well as LDAP. This file should probably be renamed... * gui/component/select-names/e-select-names-manager.c (load_completion_books): Use addressbook_load_source (). However, this needs a bit more work to get source UIDs instead of URIs. * gui/component/select-names/e-select-names.c (addressbook_model_set_uri): Use addressbook_load_source (). However, this needs a bit more work to get source UIDs instead of URIs. svn path=/trunk/; revision=23521
* turn on deprecated gtk and libgnomeui stuffJP Rosevear2003-11-261-1/+0
| | | | | | | | | | | | | | 2003-11-26 JP Rosevear <jpr@ximian.com> * gui/widgets/Makefile.am: turn on deprecated gtk and libgnomeui stuff * gui/component/select-names/Makefile.am: turn on deprecated gtk stuff * gui/contact-editor/Makefile.am: ditto svn path=/trunk/; revision=23492
* Store a ref to the source selector. (impl_requestCreateItem): Implement.Hans Petter Jansson2003-11-181-2/+94
| | | | | | | | | | | | | | | | 2003-11-17 Hans Petter Jansson <hpj@ximian.com> * gui/component/addressbook-component.c (impl_createControls): Store a ref to the source selector. (impl_requestCreateItem): Implement. (impl_dispose): Unref the source selector. (addressbook_component_init): Set up default sources. * gui/widgets/e-addressbook-model.c (eab_model_set_property): If the 'book' property is set, and editability changes, emit a signal to that effect. svn path=/trunk/; revision=23404
* use the server.mk file to get rules for building versioned .server filesJP Rosevear2003-11-172-4/+2
| | | | | | | | | | | 2003-11-17 JP Rosevear <jpr@ximian.com> * configure.in: use the server.mk file to get rules for building versioned .server files * */Makefile.am: use simplified rule subst svn path=/trunk/; revision=23387
* include e-source from e-d-sJP Rosevear2003-11-151-1/+1
| | | | | | | | 2003-11-14 JP Rosevear <jpr@ximian.com> * gui/component/new-addressbook.c: include e-source from e-d-s svn path=/trunk/; revision=23365
* (impl__get_userCreatableItems): New, implementation for theEttore Perazzoli2003-11-131-1/+42
| | | | | | | | | userCreatableItems property. (impl_requestCreateItem): New, implementation for the requestCreateItem method. (addressbook_component_class_init): Install. svn path=/trunk/; revision=23325
* Add component_alias of "contacts".Ettore Perazzoli2003-11-131-0/+2
| | | | | | | Add component_alias of "contacts". svn path=/trunk/; revision=23301
* Add new-addressbook.[ch]. (glade_DATA): Add new-addressbook.glade.Hans Petter Jansson2003-11-095-1/+441
| | | | | | | | | | | | | | | | | | | | | 2003-11-08 Hans Petter Jansson <hpj@ximian.com> * gui/component/Makefile.am (libevolution_addressbook_la_SOURCES): Add new-addressbook.[ch]. (glade_DATA): Add new-addressbook.glade. * gui/component/addressbook-component.c (add_popup_menu_item): Implement. (new_addressbook_cb): Implement. (delete_addressbook_cb): Implement (skeletal). (fill_popup_menu_callback): Implement. (impl_createControls): Hook up fill_popup_menu_callback(). * gui/component/new-addressbook.[ch]: New files. * gui/component/new-addressbook.glade: New file. svn path=/trunk/; revision=23238
* make sure the marshal header is in the source listJP Rosevear2003-11-071-1/+1
| | | | | | | | | | | | | | | 2003-11-07 JP Rosevear <jpr@ximian.com> * gui/widgets/Makefile.am: make sure the marshal header is in the source list * gui/component/select-names/Makefile.am: ditto * gui/contact-editor/Makefile.am: ditto * gui/contact-list-editor/Makefile.am: ditto svn path=/trunk/; revision=23219
* Shush.JP Rosevear2003-11-072-4/+4
| | | | svn path=/trunk/; revision=23215
* Various changes to merge in evolution-data-server reliance.JP Rosevear2003-11-0710-13/+9
| | | | svn path=/trunk/; revision=23206
* Update factory ID.Ettore Perazzoli2003-11-043-4/+4
| | | | | | | | | | * gui/component/select-names/e-select-names-factory.c: Update factory ID. * gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in: Version the SelectNames server IDs by appending a "_2". svn path=/trunk/; revision=23175
* Change "evolution:config_item" into "evolution2:config_item".Ettore Perazzoli2003-11-041-9/+9
| | | | | | | Change "evolution:config_item" into "evolution2:config_item". svn path=/trunk/; revision=23173
* set up vars and rules for versioning the .server filesJP Rosevear2003-10-312-11/+9
| | | | | | | | | | | | 2003-10-31 JP Rosevear <jpr@ximian.com> * configure.in: set up vars and rules for versioning the .server files * Makefile.am's: use rules for versioning .server file, ensure built files are removed before disting svn path=/trunk/; revision=23149
* add the S/MIME config control here.Chris Toshok2003-10-301-0/+24
| | | | | | | | | 2003-10-29 Chris Toshok <toshok@ximian.com> * gui/component/GNOME_Evolution_Addressbook.server.in.in: add the S/MIME config control here. svn path=/trunk/; revision=23126
* ifdef the smime code with HAVE_NSS.Chris Toshok2003-10-302-2/+9
| | | | | | | | | | | | 2003-10-29 Chris Toshok <toshok@ximian.com> * gui/component/component-factory.c (factory): ifdef the smime code with HAVE_NSS. * gui/component/Makefile.am (libevolution_addressbook_la_LIBADD): conditionally include libevolution-smime.la. svn path=/trunk/; revision=23124
* convert 8 spaces to a tab.Chris Toshok2003-10-242-0/+5
| | | | | | | | | | | | | | | | | | | 2003-10-23 Chris Toshok <toshok@ximian.com> * tools/Makefile.am: convert 8 spaces to a tab. * tools/.cvsignore: ignore evolution-addressbook-abuse and evolution-addressbook-clean. * gui/component/Makefile.am (libevolution_addressbook_la_LIBADD): add libevolution-smime.la. * gui/component/component-factory.c (factory): add the certificate manager config control stuff here, at least for now. * gui/component/GNOME_Evolution_Addressbook.server.in.in: same. svn path=/trunk/; revision=23048
* fixed typo in variable name.Rodrigo Moya2003-10-231-1/+1
| | | | | | | | | 2003-10-23 Rodrigo Moya <rodrigo@ximian.com> * gui/component/addressbook-config.c (addressbook_dialog_create_source_table): fixed typo in variable name. svn path=/trunk/; revision=23028
* Add an "evolution:button_icon" attribute.Ettore Perazzoli2003-10-231-0/+1
| | | | | | | Add an "evolution:button_icon" attribute. svn path=/trunk/; revision=23024
* Add an "evolution:button_sort_order" property.Ettore Perazzoli2003-10-231-0/+1
| | | | | | | Add an "evolution:button_sort_order" property. svn path=/trunk/; revision=23016
* Make the the scrolled window have an "in" shadow. Likewise. Likewise.Ettore Perazzoli2003-10-232-0/+2
| | | | | | | | | | | * gui/component/addressbook-component.c (impl_createControls): Make the the scrolled window have an "in" shadow. * gui/component/addressbook-config.c (addressbook_dialog_create_sources_table): Likewise. * gui/widgets/e-addressbook-view.c (create_minicard_view): Likewise. (create_treeview_view): Likewise. svn path=/trunk/; revision=22996
* (impl_createControls): SetEttore Perazzoli2003-10-231-0/+2
| | | | | | | the GtkScrolledWindow scrollbar policy to "automatic" for both the horizontal and the vertical scrollbar. svn path=/trunk/; revision=22990
* Add an "evolution:button_label" property on the component for use in theEttore Perazzoli2003-10-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/GNOME_Evolution_Addressbook.server.in.in: Add an "evolution:button_label" property on the component for use in the shell. * gui/GNOME_Evolution_Calendar.server.in.in: Add an "evolution:button_label" property on the component for use in the shell. * GNOME_Evolution_Mail.server.in.in: Add an "evolution:button_label" attribute to the Component for use in the shell. * e-shell-window.c (struct _ComponentView): New member button_id. (struct _EShellWindowPrivate): New member sidebar. (component_new_new): Get a button_id arg. (component_button_clicked_callback): Removed. (sidebar_button_selected_callback): New. (create_component_button): Removed. (setup_widget): Set up the sidebar using ESidebar and hook up its "button_selected" signal. Also get the component name from a property on the server info. (e_shell_window_new): Use BASE_VERSION for the version in the app name instead of hardcoding "1.5". * e-sidebar.c: New. * e-sidebar.h: New. svn path=/trunk/; revision=22988
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-2230-3832/+606
| | | | svn path=/trunk/; revision=22965
* remove the "addressbook.db.summary" correctly. #48538Gilbert Fang2003-09-191-3/+6
| | | | | | | | | 2003-09-19 Gilbert Fang <gilbert.fang@sun.com> * addressbook/gui/component/addressbook-component.c (xfer_folder): remove the "addressbook.db.summary" correctly. #48538 svn path=/trunk/; revision=22624
* Chain.Hans Petter Jansson2003-08-142-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-08-12 Hans Petter Jansson <hpj@ximian.com> * backend/ebook/e-destination.c (e_destination_dispose): Chain. * gui/component/e-address-widget.c (e_address_widget_destroy): Chain. Prevent double frees. Prevent double GSource removal. * gui/component/e-cardlist-model.c (e_cardlist_model_class_init): Store parent class. (e_cardlist_model_dispose): Chain. Prevent double frees and unrefs. * gui/contact-editor/e-contact-editor-address.c (e_contact_editor_address_dispose): Chain. * gui/contact-editor/e-contact-editor-fullname.c (e_contact_editor_fullname_dispose): Chain. * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_dispose): Chain. * gui/contact-list-editor/e-contact-list-model.c (contact_list_model_destroy): Chain. Prevent double frees and unrefs. * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_dispose): Chain. (addressbook_finalize): Chain. * gui/widgets/e-addressbook-table-adapter.c (addressbook_dispose): Chain. * gui/widgets/e-addressbook-treeview-adapter.c (addressbook_destroy): Chain. Prevent double free. * gui/widgets/gal-view-minicard.c (gal_view_minicard_dispose): Chain. Prevent double free and detach. * gui/widgts/gal-view-treeview.c (gal_view_treeview_dispose): Chain. Prevent double free and detach. * printins/e-contact-print-style-editor.c (e_contact_print_stule_editor_destroy): Chain. Prevent double unref. svn path=/trunk/; revision=22229
* use EVO_MARSHAL_RULE Likewise Likewise Likewise Likewise LikewiseDan Winship2003-07-241-12/+1
| | | | | | | | | | | | | | | | | | * backend/ebook/Makefile.am: use EVO_MARSHAL_RULE * backend/pas/Makefile.am: Likewise * gui/component/select-names/Makefile.am: Likewise * gui/contact-editor/Makefile.am: Likewise * gui/contact-list-editor/Makefile.am: Likewise * gui/widgets/Makefile.am: Likewise * gui/contact-editor/e-contact-editor.c (e_contact_editor_class_init): s/ece_marshal/e_contact_editor_marshal/ * gui/contact-list-editor/e-contact-list-editor.c (e_contact_list_editor_class_init): Likewise for ecle_marshal svn path=/trunk/; revision=21913
* disconnect from model signals to prevent a race condition at shutdownDan Winship2003-07-183-6/+20
| | | | | | | | | | | | | | | | | | | | | | * gui/widgets/e-addressbook-view.c (e_addressbook_view_dispose): disconnect from model signals to prevent a race condition at shutdown where the view gets destroyed and then the model notices the backend dying before being destroyed itself. * gui/widgets/e-addressbook-reflow-adapter.c (addressbook_finalize): add, to free priv. (e_addressbook_reflow_adapter_class_init): set it up * gui/component/e-address-popup.c (e_address_popup_set_free_form): Don't leak strings * gui/component/addressbook-storage.c (load_source_data): don't leak xml data. * gui/component/addressbook-component.c (new_item_cb): don't leak the new card. svn path=/trunk/; revision=21858
* Fix lots of leaks, update for correct use of g_object_get. Some miscLarry Ewing2003-06-143-8/+13
| | | | | | | | | | | | | | | | | | | 2003-06-13 Larry Ewing <lewing@ximian.com> * gui/component/addressbook.c: * gui/component/e-cardlist-model.c: * gui/component/select-names/e-select-names-text-model.c: * gui/contact-editor/e-contact-editor.c: * gui/contact-editor/e-contact-save-as.c: * gui/contact-list-editor/e-contact-list-editor.c: * gui/widgets/e-addressbook-table-adapter.c: * gui/widgets/e-addressbook-util.c: * gui/widgets/e-addressbook-view.c: * gui/widgets/e-minicard-view.c: * gui/widgets/e-minicard.c: Fix lots of leaks, update for correct use of g_object_get. Some misc cleanups. svn path=/trunk/; revision=21442
* ** For #42691.Not Zed2003-06-112-4/+6
| | | | | | | | | | | | | | | | | | | 2003-06-05 Not Zed <NotZed@Ximian.com> ** For #42691. * gui/component/select-names/Makefile.am (%.server.in): implicit rule for .in file. (BUILT_SOURCES): added server_DATA. * gui/component/Makefile.am (%.server.in): use implicit rule for .in file. (BUILT_SOURCES): added, just server_DATA. (CLEANFILES): added * backend/ebook/Makefile.am (BUILT_SOURCES): add server_DATA. svn path=/trunk/; revision=21400
* fix the initial run case. the config upgrade code creates all elements soChris Toshok2003-05-201-0/+5
| | | | | | | | | | | 2003-05-19 Chris Toshok <toshok@ximian.com> * gui/component/addressbook-component.c (ensure_completion_uris_exist): fix the initial run case. the config upgrade code creates all elements so we can't just check for NULL - we have to check if the string is empty. Fixes #43213. svn path=/trunk/; revision=21263
* HIG-ified the various dialogs (including the settings pages, the configAnna Marie Dirks2003-05-191-41/+43
| | | | | | | | | | 2003-05-19 Anna Marie Dirks <anna@ximian.com> * gui/component/ldap-config.glade: HIG-ified the various dialogs (including the settings pages, the config druid, and the edit dialog) in this glade file. This fixes bugs #41140, #41137, #41130 svn path=/trunk/; revision=21252
* i2003-05-19 Sean Gao <sean.gao@sun.com>Chris Toshok2003-05-191-1/+9
| | | | | | | * gui/component/addressbook-component.c (xfer_folder): remove the summary if @remove_source is TRUE. Fixes 38084. svn path=/trunk/; revision=21240
* Revert the patch I didn't mean to commit anywayRodney Dawes2003-05-171-2/+1
| | | | svn path=/trunk/; revision=21217
* Check for libgcc stuff to make solaris happyRodney Dawes2003-05-161-1/+2
| | | | | | | | | | 2003-05-15 Rodney Dawes <dobey@ximian.com> * configure.in: Check for libgcc stuff to make solaris happy * gui/component/Makefile.am: libgcc fix for Solaris __eprintf issue svn path=/trunk/; revision=21212
* backing out a tiny porting of jpr's fix - we need to set the book on theChris Toshok2003-05-161-0/+3
| | | | | | | | | | | 2003-05-15 Chris Toshok <toshok@ximian.com> * gui/component/addressbook.c (book_open_cb): backing out a tiny porting of jpr's fix - we need to set the book on the EAddressbookView, or else it won't do queries, and it won't show any cards. Fixes #43023, #43090. svn path=/trunk/; revision=21201
* clear the view (book_open_cb): track the book in the view, don't unref theJP Rosevear2003-05-154-61/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-14 JP Rosevear <jpr@ximian.com> * gui/component/addressbook.c (addressbook_view_unref): clear the view (book_open_cb): track the book in the view, don't unref the book (set_prop): set the book (retrieve_shell_view_interface_from_control): get the shell view every time (set_folder_bar_label): release and unref the shell view * gui/component/addressbook-storage.h: add proto * gui/component/addressbook-storage.c (addressbook_storage_cleanup): unref the storage * gui/component/addressbook-component.c (owner_unset_cb): clean up storage * backend/ebook/e-book.c (e_book_load_uri): track the listener signal (e_book_dispose): unref the listener and disconnect the signal svn path=/trunk/; revision=21179
* strlen -> g_utf8_strlen. (e_select_names_text_model_insert): same.Chris Toshok2003-05-142-31/+75
| | | | | | | | | | | | | | | | | | | | | | | 2003-05-13 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_set_separator): strlen -> g_utf8_strlen. (e_select_names_text_model_insert): same. (e_select_names_text_model_insert_length): big change, make this work with multibyte utf8. (e_select_names_text_model_delete): same. this could possibly use a tighter loop + a memmove, but this works. * gui/component/select-names/e-select-names-model.c (e_select_names_model_get_textification): make sure our truncation to MAX_LENGTH characters uses utf8 characters, not bytes. (e_select_names_model_name_pos): track e-text-model change. pos/length are now in utf8 character terms, so use g_utf8_strlen instead of strlen. (e_select_names_model_text_pos): same. svn path=/trunk/; revision=21165
* [ fixes bug #41245 ] fix spacing/border widths as per HIG.Chris Toshok2003-05-122-151/+154
| | | | | | | | | | | | | | 2003-05-11 Chris Toshok <toshok@ximian.com> [ fixes bug #41245 ] * gui/component/select-names/select-names.glade: fix spacing/border widths as per HIG. * gui/component/select-names/e-select-names.c (e_select_names_init): set the border width/spacing on widgets we create here. svn path=/trunk/; revision=21144
* Use glib macro to case from pointer to int.Jeremy Katz2003-05-091-1/+1
| | | | | | | | | | | | | | | 2003-05-09 Jeremy Katz <katzj@redhat.com> * printing/e-contact-print.c (e_contact_print_response): Use glib macro to case from pointer to int. * printing/e-contact-print-envelope.c: Add missing #include. * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): Use E_SELECT_NAMES_COMPLETION to avoid warning svn path=/trunk/; revision=21138
* [ fixes bug #41144 ] use stock buttons for the Add/Delete buttons. SwitchChris Toshok2003-04-301-6/+59
| | | | | | | | | | | | 2003-04-29 Chris Toshok <toshok@ximian.com> [ fixes bug #41144 ] * gui/component/ldap-config.glade: use stock buttons for the Add/Delete buttons. Switch from "Delete" to "Remove", though, as "Remove" fits much better with the one for "Add". Also, add our stock-edit-24.png icon for "Edit". svn path=/trunk/; revision=21028
* [ fixes bug #41211 ] call e_button_new_with_stock_icon to create ourChris Toshok2003-04-301-1/+2
| | | | | | | | | | | 2003-04-29 Chris Toshok <toshok@ximian.com> [ fixes bug #41211 ] * gui/component/e-address-popup.c (e_address_popup_no_matches): call e_button_new_with_stock_icon to create our button and give it the right icon. svn path=/trunk/; revision=21023
* [ fixes bug #41779 ] we don't need to call gtk_widget_destroy on the oldChris Toshok2003-04-281-1/+1
| | | | | | | | | | | 2003-04-28 Chris Toshok <toshok@ximian.com> [ fixes bug #41779 ] * gui/component/e-address-popup.c (mini_wizard_container_add): we don't need to call gtk_widget_destroy on the old child, since gtk_container_remove will unref it for us. svn path=/trunk/; revision=20977
* [ either mostly or entirely fixes #33708 ] new function, factor it out ofChris Toshok2003-04-241-20/+29
| | | | | | | | | | | | | | | | | | | | | | | 2003-04-23 Chris Toshok <toshok@ximian.com> [ either mostly or entirely fixes #33708 ] * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_done): new function, factor it out of _seq_complete_cb because we need to run the same code in a couple of places. (e_select_names_completion_got_book_view_cb): treat an error from a book as getting a "sequence_complete", and decrement the count of pending complete signals. (e_select_names_completion_got_book_view_cb): remove the increment of pending_completion_seq from here. (e_select_names_completion_seq_complete_cb): factor out the body of e_select_names_completion_done from here, and call it. (e_select_names_completion_start_query): increment pending_completion_seq here. remove the async variable, as we can now use pending_completion_seq for that purpose (it's > 0 iff async would have been TRUE). svn path=/trunk/; revision=20943
* [ fixes #40694 ] just grab focus if @activate == TRUE. we'll do allChris Toshok2003-04-201-9/+15
| | | | | | | | | | | | | | 2003-04-16 Chris Toshok <toshok@ximian.com> [ fixes #40694 ] * gui/component/select-names/e-select-names-bonobo.c (control_activate_cb): just grab focus if @activate == TRUE. we'll do all merging/unmerging in the focus handler. (widget_focus_cb): handle the merging here. (e_bonobo_control_automerge_ui): store off the widget (so we can grab focus on it) and connect to "activate". svn path=/trunk/; revision=20897
* Add missing -DPREFIXRodney Dawes2003-04-191-0/+1
| | | | | | | | 2003-04-18 Rodney Dawes <dobey@ximian.com> * gui/component/select-names/Makefile.am: Add missing -DPREFIX svn path=/trunk/; revision=20893
* [ fixes #21499 ]Rodney Dawes2003-04-193-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-18 Rodney Dawes <dobey@ximian.com> [ fixes #21499 ] * gui/component/Makefile.am: * gui/component/addressbook.c: * gui/component/select-names/e-select-names-bonobo.c: * gui/contact-editor/Makefile.am: * gui/contact-editor/e-contact-editor.c: * gui/contact-list-editor/Makefile.am: * gui/contact-list-editor/e-contact-list-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * gui/Makefile.am: * gui/calendar-commands.c: * gui/tasks-control.c: * gui/dialogs/Makefile.am: * gui/dialogs/comp-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * Makefile.am: * e-msg-composer.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * folder-browser-ui.c: * mail-signature-editor.c: * message-browser.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * e-summary-factory.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * e-shell-view.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () [#21499] svn path=/trunk/; revision=20888
* [ fixes #40727 ] if the query text is either shorter than the cachedChris Toshok2003-04-091-5/+9
| | | | | | | | | | | | | 2003-04-09 Chris Toshok <toshok@ximian.com> [ fixes #40727 ] * gui/component/select-names/e-select-names-completion.c (e_select_names_completion_start_query): if the query text is either shorter than the cached query_text or they don't match, don't just set can_reuse_cached_cards to FALSE. we also need to invalidate the cache. svn path=/trunk/; revision=20780
* kill an old e_utf8_gtk usageMike Kestner2003-04-091-1/+0
| | | | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * e-search-bar.c (set_option): kill an old e_utf8_gtk usage and remove some straggling e-font.h includes. svn path=/trunk/; revision=20769
* Remove color specifications from the druid so it will use theme colors.Dan Winship2003-04-082-30/+8
| | | | | | | | | | | * gui/component/ldap-config.glade: Remove color specifications from the druid so it will use theme colors. * gui/component/addressbook-config.c (addressbook_add_server_druid): Use g_signal_connect_after for "prepare" signal (to work around b.g.o 81869) svn path=/trunk/; revision=20756
* [ fixes bug #40901 ] HIG-ify the ldap server edit dialog's button layout.Chris Toshok2003-04-081-13/+13
| | | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> [ fixes bug #40901 ] * gui/component/ldap-config.glade: HIG-ify the ldap server edit dialog's button layout. svn path=/trunk/; revision=20737
* [ fixes bug #39763 ] verb callback for EditCopy (cut_cb): verb callbackChris Toshok2003-04-081-0/+160
| | | | | | | | | | | | | | | | | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> [ fixes bug #39763 ] * gui/component/select-names/e-select-names-bonobo.c (copy_cb): verb callback for EditCopy (cut_cb): verb callback for EditCut. (paste_cb): verb callback for EditPaste. (select_all_cb): verb callback for SelectAll. (free_closure): new function (merge_menu_items): same (unmerge_menu_items): same (control_set_frame_cb): same (control_activate_cb): same (widget_focus_cb): same (e_bonobo_control_automerge_ui): new function, sets up focus signals on the widget passed in to merge/unmerge the passed in ui/verbs. (impl_SelectNames_get_entry_for_section): call e_bonobo_control_automerge_ui for this entry. svn path=/trunk/; revision=20735
* change the ok/cancel button layout to be higified.Chris Toshok2003-04-081-5/+11
| | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> * gui/component/e-address-popup.c (mini_wizard_new): change the ok/cancel button layout to be higified. svn path=/trunk/; revision=20720
* [ last portion of #40046 fix ] ifdef this out to quiet the compiler.Chris Toshok2003-04-081-141/+35
| | | | | | | | | | | | | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> [ last portion of #40046 fix ] * gui/component/select-names/e-select-names-popup.c (remove_recipient_cb): ifdef this out to quiet the compiler. (remove_all_recipients_cb): same. (toggle_html_mail_cb): same. (populate_popup_card): change the #if 0 to #if TOO_MANY_MENU_ITEMS. (popup_menu_list): nuke, as it's handled by populate_popup_card. (populate_popup_nocard): rename popup_menu_nocard to this, and implement it as in populate_popup_card. (e_select_names_populate_popup): we don't need the card, since we don't check if it's a list here anymore. also, remove the #if 0 surrounding the nocard case. svn path=/trunk/; revision=20718
* Clean up server names.Dan Winship2003-04-082-19/+17
| | | | | | | | | | | | | | | | * gui/component/GNOME_Evolution_Addressbook.server.in.in: Clean up server names. * gui/component/select-names/GNOME_Evolution_Addressbook_SelectNames.server.in.in: Likewise * backend/ebook/GNOME_Evolution_Addressbook_LDIF_Importer.server.in.in: Likewise. Also mark the evolution:menu_name for i18n. * backend/ebook/GNOME_Evolution_Addressbook_VCard_Importer.server.in.in: Likewise svn path=/trunk/; revision=20704
* [ fixes bug #40715 ] add this callback, to unref the book/free the closureChris Toshok2003-04-041-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-03 Chris Toshok <toshok@ximian.com> [ fixes bug #40715 ] * gui/merging/e-card-merging.c (final_id_cb): add this callback, to unref the book/free the closure after calling the user's callback. (final_cb): same. (doit): use final{_id}_cb (cancelit): same. (response): don't free the lookup struct here. (match_query_callback): same. (e_card_merging_book_add_card): ref the book. (e_card_merging_book_commit_card): same. * gui/component/e-address-popup.c (card_picker_init): make sure to set the "text" attribute on the cell renderer so the text actually shows up. also, g_object_connect -> g_signal_connect *sigh*. Lastly, get rid of the scrolled window and just make the window size to show the text. * gui/widgets/e-minicard.c (e_minicard_style_set): only call set_selected if we're realized (we create all the canvas objects that set_selected manipulates in our realize method.) svn path=/trunk/; revision=20662
* add EVOLUTION_IMAGESDIRChris Toshok2003-04-031-0/+3
| | | | | | | | | 2003-04-03 Chris Toshok <toshok@ximian.com> * gui/component/select-names/Makefile.am (INCLUDES): add EVOLUTION_IMAGESDIR svn path=/trunk/; revision=20658
* change all this around so that we populate the existing popup. This meansChris Toshok2003-04-033-179/+122
| | | | | | | | | | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gui/component/select-names/e-select-names-popup.c: change all this around so that we populate the existing popup. This means we get the select names popup stuff on top of the normal EEntry popup foo. * gui/component/select-names/e-select-names-popup.h (e_select_names_populate_popup): rename e_select_names_popup to this. * gui/component/select-names/e-select-names-manager.c (populate_popup_cb): rename popup_cb here, and e_select_names_popup -> e_select_names_populate_popup. (e_select_names_manager_entry_new): popup -> populate_popup. svn path=/trunk/; revision=20654
* Remove folder-selector button initialization. (e_select_names_new):Dan Winship2003-03-315-61/+63
| | | | | | | | | | | | | | | | | | | | * gui/component/select-names/e-select-names.c (e_select_names_init): Remove folder-selector button initialization. (e_select_names_new): Initialize folder-selector button here, using the passed-in EvolutionShellClient rather than depending on a global variable. * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_activate_dialog): take an EvolutionShellClient and pass it to e_select_names_new(). * gui/component/select-names/e-select-names-bonobo.c (impl_SelectNames_activate_dialog): get a pointer to the shell from bonobo-activation, create a shell_client, and pass it to e_select_names_manager_activate_dialog. svn path=/trunk/; revision=20597
* [ fixes bug #39381 (again) ] add "GtkWidget *button" first arg, so weChris Toshok2003-03-311-1/+1
| | | | | | | | | | 2003-03-30 Chris Toshok <toshok@ximian.com> [ fixes bug #39381 (again) ] * gui/component/e-address-popup.c (edit_contact_info_cb): add "GtkWidget *button" first arg, so we don't crash. svn path=/trunk/; revision=20585
* [ fixes bug #34651 ] strcmp -> g_utf8_collate. (update_query): encode theChris Toshok2003-03-271-6/+13
| | | | | | | | | | | 2003-03-26 Chris Toshok <toshok@ximian.com> [ fixes bug #34651 ] * gui/component/select-names/e-select-names.c (select_entry_changed): strcmp -> g_utf8_collate. (update_query): encode the string we pass for the query. svn path=/trunk/; revision=20541
* [ fixes bug #31786 ] fix some gtk warnings. (set_advanced_button_state):Chris Toshok2003-03-242-3248/+23
| | | | | | | | | | | | | | | | 2003-03-23 Chris Toshok <toshok@ximian.com> [ fixes bug #31786 ] * gui/component/addressbook-config.c (addressbook_source_dialog_set_source): fix some gtk warnings. (set_advanced_button_state): the advanced dialog isn't present in the glade file anymore, so ifdef everything dealing with it. (addressbook_edit_server_dialog): same. * gui/component/ldap-config.glade: remove all the unused Advanced UI stuff to lessen the amount of strings needing translation. svn path=/trunk/; revision=20472
* [ fixes bug #32113 ] add include_email arg to e_destination_get_textrep.Chris Toshok2003-03-232-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-23 Chris Toshok <toshok@ximian.com> [ fixes bug #32113 ] * backend/ebook/e-destination.h: add include_email arg to e_destination_get_textrep. * backend/ebook/e-destination.c (e_destination_get_textrep): add include_email arg. if it's TRUE, and if there's an email address to add * gui/contact-list-editor/e-contact-list-model.c (contact_list_value_at): use e_destination_get_textrep so we don't display QP text, and pass TRUE for include_email. * gui/widgets/e-minicard.c (add_field): same. (remodel): same. * gui/widgets/e-addressbook-treeview-adapter.c (adapter_get_value): same. * gui/widgets/e-addressbook-table-adapter.c (addressbook_value_at): same. * gui/component/select-names/e-select-names-text-model.c (e_select_names_text_model_insert_length): pass FALSE for include_email. * gui/component/select-names/e-select-names-model.c (e_select_names_model_get_textification): pass FALSE for include_email. (e_select_names_model_get_string): same. (e_select_names_model_replace): same. (e_select_names_model_name_pos): same. (e_select_names_model_text_pos): same. svn path=/trunk/; revision=20467
* 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
* [ 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
* 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
* (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-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | * 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
* use g_signal_connect here, not swapped... although since we pass theChris Toshok2003-02-282-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | 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-222-4/+4
| | | | | | some LDADDs in the process svn path=/trunk/; revision=19994
* Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamicDan Winship2003-02-211-1/+1
| | | | | | | 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-201-5/+5
| | | | svn path=/trunk/; revision=19968
* Build the subparts as (noinst) shared libraries rather than staticDan Winship2003-02-201-5/+5
| | | | | | | | | | | | | * 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
* [ 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
* 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
* 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-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-073-41/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Replace deprecated glade_gnome_init() with glade_init().Dan Winship2003-02-061-1/+1
| | | | | | | | | | | | | * 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
* 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
* 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-251-2/+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
* 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-233-35/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Change dialog from Yes/No/Cancel to Discard/Cancel/Save to match the HIG.Ettore Perazzoli2003-01-152-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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
* 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
* $(datadir)/evolution/images instead of $(datadir)/images/evolution.Ettore Perazzoli2003-01-091-2/+2
| | | | | | | | | | * 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
* 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
* drop use of "font" arg. (get_left_width): use pango to calculate thisChris Toshok2002-12-198-33/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* #include <string.h>.Ettore Perazzoli2002-12-0717-299/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [ 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 redundant setting of y2.Chris Toshok2002-11-273-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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 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
* 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
* 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-171-0/+2
| | | | | | | | | | | | | | 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
* push_in = FALSE, no clue why... :) (_arrow_pressed): callChris Toshok2002-11-135-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-125-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* oops, missed these casts.Chris Toshok2002-11-091-4/+0
| | | | | | | | | | | | | | | | 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
* 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
* 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
* 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-074-5810/+6282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-067-210/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* 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
* [ 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 #7094, #7064, #7095, #31944, #31945 ] Hook up new etspec file.Kjartan Maraas2002-10-107-35/+36
| | | | | | | | | | | | | | | | | | | | 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
* 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
* 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-263-3/+9
| | | | | | | | | | | | | | | | | | | * 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-261-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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 #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
* 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
* 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-202-2/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-161-17/+32
| | | | | | | | | | | | | | | | | | | | | | 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-133-23/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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
* 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
* 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
* 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
* 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-172-2/+17
| | | | | | | | | | | | | | | | | | | | | | * 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
* 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
* 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
* 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