* 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
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
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
* 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
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
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
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
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
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
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
* 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
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
* 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
* 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
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
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
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
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
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
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
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
* 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
* 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
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
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
* 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
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
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
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
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
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
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