2004-08-25 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/addressbook-config.c (source_to_dialog) :
disbale the display name widget in case of groupwise as we can not handle renames as
of now
(dialog_to_source) also copy "use_ssl" property to new source so that
new books also use ssl
svn path=/trunk/; revision=27023
2004-08-25 Hans Petter Jansson <hpj@ximian.com>
May fix#61833.
* gui/component/select-names/e-select-names-table-model.c
(fill_in_info): Get E_CONTACT_NAME_OR_ORG (first found from File As,
Full Name, Organization, Email 1) for the "name" field. Hopefully
will prevent most cases of blank entries.
svn path=/trunk/; revision=27022
2004-08-20 Chris Toshok <toshok@ximian.com>
* gui/component/component-factory.c (factory): remove the dead
ldap config control stuff.
svn path=/trunk/; revision=26984
2004-08-19 Chris Toshok <toshok@ximian.com>
[ likely fixes#61500 ]
* addressbook-errors.xml (remove-addressbook): remove the
secondary text, since we don't have the gerror text to supply it
anymore.
* gui/component/addressbook-view.c (book_removed): new function,
move the error handling here.
(delete_addressbook_cb): create a closure with necessary data, and
call the e_book_async_remove instead of e_book_remove.
svn path=/trunk/; revision=26975
2004-08-18 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/select-names/e-select-names.c (e_select_names_init) :
select names dialog can not be modal as password dialogs can come up while
user is in this dialog for address books which require authentication
like groupwise and LDAP
FIxes#63257
svn path=/trunk/; revision=26971
2004-08-10 Not Zed <NotZed@Ximian.com>
* gui/component/addressbook.c (addressbook_authenticate): e
passwords api change/reprompt if we need to.
svn path=/trunk/; revision=26881
2004-08-12 Sivaiah nallagatla <snallagatla@novell.com>
* gui/compoent/addressbook.c : just revering a local change
gone in in the commit i just made
svn path=/trunk/; revision=26877
2004-08-12 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/addresbook.c (load_source_auth_cb) :
when user cancels auth dialog send the anonoymous query
only in case of ldap
*gui/component/addresbook-view.c (book_open_cb) : no need to
display the error dialog when user cancels that
svn path=/trunk/; revision=26876
2004-08-02 Rodney Dawes <dobey@novell.com>
* gui/component/ldap-config.glade: Make the main dialog here be
an actual GtkDialog instead of a GtkWindow
Fix up a few small spacing issues with the UI
Change "Contacts Group" to "Address Book"
* gui/component/addressbook-config.c (query_for_supported_bases):
Use gtk_widget_ensure_style instead of gtk_widget_realize
(addressbook_add_server_dialog):
Use gtk_widget_ensure_style on the dialog and fix the spacing and
border width of the dialog containers
Fixes#61365
svn path=/trunk/; revision=26795
2004-07-30 Chris Toshok <toshok@ximian.com>
[ fixes#61365 and other misc issues with the addressbook source
editors ]
* gui/component/ldap-config.glade: change the
supported-bases-dialog to be initially hidden.
* gui/component/addressbook-view.c (editor_weak_notify): new
function, remove the editor from our hash.
(source_list_changed_cb): destroy the editors for given sources if
they're up when the source disappears.
(edit_addressbook_cb): add the editor (and some other misc info we
need) to our uid_to_editor hash so we can look it up later. only
create the editor if one doesn't exist for the given source.
(destroy_editor): GHFunc that destroys the widgets.
(addressbook_view_dispose): destroy uid_to_editor.
(addressbook_view_init): init uid_to_editor.
* gui/component/addressbook-config.h: change return values for
_edit_source and _new_source - they both return GtkWidget*s now.
* gui/component/addressbook-config.c (addressbook_ldap_init):
attempt set the protocol version to LDAPv3. This makes the
ldap_auth stuff work if the server requires v3.
(addressbook_root_dse_query): we don't need the separate window
arg, since all of this now happens *before* the supported bases
dialog is shown. we just use the source dialog's window for the
various error dialogs.
(do_ldap_root_dse_query): same.
(query_for_supported_bases): same, and set the supported bases
dialog as transient-for the source dialog, and make it modal.
Lastly, don't make the editor modal.
(addressbook_config_edit_source): return the editor's window.
(addressbook_config_create_new_source): same.
svn path=/trunk/; revision=26778
2004-07-21 Chris Toshok <toshok@ximian.com>
[ fixes#60508 ]
* gui/component/addressbook-config.h: reorder the Scopes so that
they match the option menu.
* gui/component/ldap-config.glade: change the scope option menu to
only display One and Sub, and also set the Login field to Lo_gin
in both dialogs. Add accelerators for the details page as well.
svn path=/trunk/; revision=26692
2004-07-13 Rodney Dawes <dobey@novell.com>
[ fixes#56657 ]
* gui/component/addressbook-migrate.c (get_source_by_uri):
Replace this call with get_source_by_name ()
(migrate_completion_folders): Fix the non-local folder migration
to look up sources for the migrated folders based on name, instead
of using the URI
svn path=/trunk/; revision=26643
2004-07-12 Chris Toshok <toshok@ximian.com>
[ fixes#61299 ]
* gui/component/addressbook.c (addressbook_load_default_book):
don't pass @closure to load_source_cb, since that expects to get a
LoadSourceData*. also, don't always call e_book_async_open. only
do that when the book is non-NULL.
svn path=/trunk/; revision=26626
* gui/component/Makefile.am:
tarball should ship .schemas.in.in files, not generated files.
* gui/component/apps_evolution_addressbook.schemas.in.in:
Don't set empty default value on an int, this causes gconf warning.
(bug #60859)
svn path=/trunk/; revision=26604
2004-06-24 Radek Doulik <rodo@ximian.com>
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_get_textification): do not limit the text
len to 2047 characters
See bug #60366
svn path=/trunk/; revision=26497
2004-06-23 Hans Petter Jansson <hpj@ximian.com>
* gui/component/addressbook-view.c: Add an x-source-vcard target entry
that includes the source book URI.
(destroy_merge_context): Implement.
(removed_contact_cb): Implement.
(merged_contact_cb): Implement.
(selector_tree_drag_data_received): Get the source and target books,
and see if we need to remove contacts from source after they're added
to target. Copy contacts sequentially, not in parallel, with a
callback.
* gui/widgets/e-addressbook-view.c: Add an x-source-vcard target entry
that includes the source book URI.
(table_drag_data_delete): Remove. This is handled by the drag target.
(table_drag_data_get): Handle more than one contact. Supply source.
(create_table_view): Don't connect to the delete signal.
* gui/widgets/e-minicard-view.c: Add an x-source-vcard target entry
that includes the source book URI.
(e_minicard_view_drag_data_delete): Remove. This is handled by the
drag target.
(e_minicard_view_drag_data_get): Handle x-source-vcard target.
(e_minicard_view_drag_begin): Don't connect to the delete signal.
(e_minicard_view_dispose): Don't disconnect from the delete signal.
(e_minicard_view_init): Don't init delete_id.
* gui/widgets/e-minicard-view.h: Remove delete_id from struct.
* util/eab-book-util.[ch] (eab_contact_list_from_string): Skip the
source URI if present.
(eab_book_and_contact_list_from_string): Create the source book from
the provided URI, if present.
(eab_book_and_contact_list_to_string): Include the book URI in
generated string.
svn path=/trunk/; revision=26485
2004-06-23 Rodney Dawes <dobey@novell.com>
* gui/component/select-names/select-names.glade:
Move the search bar to the top and add a label _Search so that the
entry has a mnemonic for keyboard accessibility
Fixes#52914 and #58448
svn path=/trunk/; revision=26476
2004-06-21 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-completion.c
(e_select_names_completion_start_query): make completion respect
your download limit for a given source. speeds up completion
substantially (or rather, speeds up switching of queries) when the
ldap server has tons of entries.
svn path=/trunk/; revision=26449
2004-06-21 Chris Toshok <toshok@ximian.com>
* gui/component/ldap-config.glade: remove the auth-entry-notebook
in the edit dialog, and rename the auth entry to... auth-entry.
* gui/component/addressbook-config.c (source_to_dialog_new): nuke
- it's identical to source_to_dialog.
(dialog_to_source): we only have one auth entry now. fill it in
properly.
(source_to_dialog): fill in the auth entry properly based on the
auth type, and remove auth_entry_notebook references.
(auth_optionmenu_activated): remove auth_entry_notebook
references.
(setup_general_tab): same, and use auth-entry instead of
email-entry/dn-entry.
(general_tab_check): use auth_principle instead of email/binddn.
(add_folder_modify): same.
(addressbook_add_server_dialog): put setup_connecting_tab inside
the ifdef HAVE_LDAP, and call source_to_dialog instead of
source_to_dialog_new.
(addressbook_config_edit_source): always call setup_general_tab.
* gui/component/addressbook-config.h (AddressbookLDAPScopeType):
reorder to match order in option menu (we should really remove
BASE altogether.. it's useless for searching.)
* gui/component/addressbook-view.c (update_command_state):
macroize this, annoying seeing the same 4 lines repeated 15 times.
svn path=/trunk/; revision=26445
2004-06-19 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/addressbook-config.c (dialog_to_source) :
set auth-domain property on groupwise sources, so that
newly created contact groups can share remembered passwords
svn path=/trunk/; revision=26434
2004-06-18 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-model.c
(e_select_names_model_load_contacts): only go through the process
of creating/loading the EBook if the model has some data in it.
svn path=/trunk/; revision=26424
2004-06-18 Chris Toshok <toshok@ximian.com>
[ fixes bug #59376 ]
* gui/component/addressbook-view.c (fill_popup_menu_callback):
make this work with absolute uris in sources. Thanks to Sushma
Rai for the initial patch to fix this.
svn path=/trunk/; revision=26421
2004-06-16 Not Zed <NotZed@Ximian.com>
* gui/component/autocompletion-config.c
(autocompletion_config_control_new): set the source selector to be
able to toggle the current selection. Fix for #55614.
svn path=/trunk/; revision=26362
2004-06-07 Hans Petter Jansson <hpj@ximian.com>
Fixes#57795.
* gui/component/addressbook-migrate.c (migrate_contacts): Change
the "POSTAL" address in 1.4 to "OTHER" in 1.5.
svn path=/trunk/; revision=26243
2004-06-04 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-model.c
(name_and_email_simple_query_cb): only resolve destinations
against persons, not contact lists.
svn path=/trunk/; revision=26219
2004-06-02 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook-migrate.c (addressbook_migrate):
remove hidden field migration, and add in a phase to clear the
absolute_uri properties on ESources.
svn path=/trunk/; revision=26160
2004-06-02 Rodney Dawes <dobey@novell.com>
* gui/component/addressbook-config.c (focus_help, add_focus_handler):
Don't need these two functions any more
(source_to_dialog, auth_optionmenu_func):
Don't try to change the notebook page or set the widget sensitive,
for a notebook that doesn't exist any more
(reparent_to_vbox): Don't need this function any more, as the
widgets are all contained in the same dialog in the glade now
(setup_general_tab, setup_connecting_tab, setup_searching_tab):
We don't need to do the focus-based "tooltip" stuff any more
We just use tooltips on the widgets now
(ssl_optionmenu_selected, add_ssl_activate_cb):
We don't need the ssl_optionmenu_selected callback any more, as the
tooltips are just set on the necessary widgets now
(query_for_supported_bases): Set the border widths on the dialog's
vbox and action_area to be compliant with the HIG
(addressbook_add_server_dialog): Unref the GConfClient object
(addressbook_config_edit_source): Create the source_list so that
we can actually save the changes that we make here
Create the GladeXML with only the widget subtree that we need to
use here, to avoid popping up other visible dialogs
Set the border widths on the dialog's vbox and action_area to be
compliant with the HIG
We don't need to reparent widgets to vboxes any more, as the widgets
are now part of the dialog's widget tree
If we are without LDAP or not in LDAP mode, then hide the notebook
borders, and change the border size of its child to appear as though
we are a normal non-LDAP dialog
We don't need to set the type hint on the window as we are no a
real GtkDialog
* gui/component/ldap-config.glade: Update the properties dialogs to
be compliant with the HIG layout
Get rid of some of the extra windows and put their children in the
appropriate places in the properties dialog
Make the properties dialog be a real GtkDialog
Fixes#41141
svn path=/trunk/; revision=26153
2004-05-28 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-bonobo.c
(entry_set_property_fn): call e_select_names_model_load_contacts
after setting text/addresses/destinations.
* gui/component/select-names/e-select-names-model.c
(name_and_email_simple_query_cb): new function, ripped from the
1.4 e-destination stuff.
(book_opened): new function, fire off eab_name_and_email_query for
each item in our model (that doesn't represent a contact already).
(e_select_names_model_load_contacts): new function, open the
default addressbook (yeah yeah, i know we should open something
different/more.)
(e_select_names_cancel_contacts_load): new (unimplemented, and how
do we implement it?) function.
* gui/component/select-names/e-select-names-model.h: add
prototypes for e_select_names_model_load_contacts and
e_select_names_cancel_contacts_load.
* gui/component/select-names/e-select-names.c (set_book): call
get_query_string and set the book and query in a single call to
g_object_set, just because we can/should.
(update_query): reimplement in terms of get_query_string.
(get_query_string): new function, build up the query string.
* gui/component/select-names/Makefile.am (INCLUDES): add
$(top_srcdir)/addressbook/util to INCLUDES.
svn path=/trunk/; revision=26129
2004-05-25 Chris Toshok <toshok@ximian.com>
* gui/component/select-names/e-select-names-text-model.c
(e_select_names_text_model_activate_obj): reenable this function,
in a slightly broken manner. we don't have e_contact_get_book
anymore (well, we never had it really... but we lost
e_card_get_book). load the system addressbook and supply that to
the editors. shouldn't be a problem, since it's a read-only
editor anyway.
svn path=/trunk/; revision=26082
2004-05-25 Chris Toshok <toshok@ximian.com>
[ fixes#58654 ]
* gui/component/select-names/e-select-names.c (update_query):
build up the query using e_book_query calls so we're insulated
from field name changes. also, conjoin if we have more than 1
query element, not more than 2 (i *hope* this was an off by 1
error...)
svn path=/trunk/; revision=26081
2004-05-25 Sivaiah Nallagatla <snallagatla@novell.com>
* gui/component/addressbook.c (load_source_auth_cb )
(load_source_auth_cb ) : read the "auth-domain" property
from e-source and use it as the component name for e_password_*
calls if it exists
svn path=/trunk/; revision=26078
2004-05-20 Hans Petter Jansson <hpj@ximian.com>
* gui/component/addressbook-migrate.c (add_to_notes): Implement.
(migrate_contacts_hidden_fields): Implement.
(migrate_contacts): Copy fields that are now hidden in the UI,
to the notes field.
svn path=/trunk/; revision=26024
2004-05-20 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook-component.c (impl_requestCreateItem):
use the new ebook api here. missed this one in my earlier commit.
svn path=/trunk/; revision=26018
2004-05-19 Chris Toshok <toshok@ximian.com>
* importers/evolution-vcard-importer.c (load_file_fn): use the new
e_book_new and e_book_open apis.
* importers/evolution-ldif-importer.c (load_file_fn): use the new
e_book_new and e_book_open apis.
* gui/widgets/eab-gui-util.c (eab_transfer_contacts): use the new
e_book_new and e_book_async_open apis.
* gui/contact-editor/e-contact-editor.c (cancel_load):
addressbook_load_source_cancel -> addressbook_load_cancel.
(source_selected): use the new e_book_new and addressbook_load.
* gui/component/select-names/e-select-names.c
(addressbook_model_set_source): use the new e_book_new and
addressbook_load.
* gui/component/select-names/e-select-names-manager.c
(update_completion_books): use the new e_book_new and
addressbook_load.
* gui/component/addressbook.h: rename
addressbook_load_source{_cancel} to addressbook_load{_cancel}, and
remove the source arg.
* gui/component/addressbook.c (addressbook_load): rename since we
aren't passing a source anymore.
(addressbook_load_cancel): same.
(addressbook_load_default_book): use the new e_book_new_* apis.
* gui/component/addressbook-view.c (delete_addressbook_cb): just
use e_book_new, not e_book_load_source.
(selector_tree_drag_data_received): switch to new
e_book_new_*/e_book_open apis.
(activate_source): same, and addressbook_load_source ->
addressbook_load.
* gui/component/addressbook-migrate.c
(migrate_contact_folder_to_source): switch to new
e_book_new_*/e_book_open apis.
(migrate_contact_lists_for_local_folders): same.
(migrate_company_phone_for_local_folders): same.
* conduit/address-conduit.c (pre_sync): switch to new
e_book_new_*/e_book_open apis.
svn path=/trunk/; revision=25999