2004-08-12 Carlos Garnacho Parro <carlosg@gnome.org>
* gui/widgets/eab-gui-util.c: Optionally use GtkFileChooser if
compiled against Gtk+ >= 2.4.0
svn path=/trunk/; revision=26904
2004-08-12 Carlos Garnacho Parro <carlosg@gnome.org>
* gui/widgets/eab-gui-util.c: Optionally use GtkFileChooser if
compiled against Gtk+ >= 2.4.0
svn path=/trunk/; revision=26900
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 Hans Petter Jansson <hpj@ximian.com>
Fixes#60529.
* gui/contact-list-editor/e-contact-list-editor.c
(table_drag_drop_cb): Make sure to get the text/x-vcard target.
2004-08-02 Hans Petter Jansson <hpj@ximian.com>
Fixes#62085.
* gui/contact-list-editor/e-contact-list-editor.c
(e_contact_list_editor_class_init): Set the save_contact method.
(e_contact_list_editor_save_contact): Implement.
svn path=/trunk/; revision=26816
2004-08-02 JP Rosevear <jpr@novell.com>
* conduit/address-conduit.c (addrconduit_load_configuration): get
source uid
(addrconduit_dupe_configuration): copy source_uid
(addrconduit_destroy_configuration): free source_uid
(e_addr_context_new): get the source list
(e_addr_context_destroy): unref the source list
(pre_sync): open the source that was set earlier
(fill_widgets): set the source option menu value
(create_settings_window): pass source list to pilot settings
(save_settings): save source uid
* conduit/Makefile.am: link to and include misc. widgets
svn path=/trunk/; revision=26799
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-19 Radek Doulik <rodo@ximian.com>
* gui/widgets/eab-vcard-control.c (eab_vcard_control_new): but
buttons to button box, use vbox instead of table
* gui/widgets/eab-contact-display.c: base this widget directly on
gtkhtml
* gui/widgets/e-addressbook-view.c (eab_view_new): put contact
display in scrolled window
svn path=/trunk/; revision=26703
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-21 Rodney Dawes <dobey@novell.com>
* gui/contact-editor/contact-editor.glade:
Give a reasonable name to the widget for the _Where label
* gui/contact-editor/e-contact-editor.c (e_contact_editor_init):
Set the mnemonic widget for the _Where label
Fixes#61544
svn path=/trunk/; revision=26691
2004-07-16 Hans Petter Jansson <hpj@ximian.com>
* gui/contact-editor/e-contact-editor.c (contact_added_cb)
(save_contact)
(app_delete_event_cb): Check source book writeability directly instead
of relying on stored state.
(e_contact_editor_init): Don't init source_editable.
(e_contact_editor_dispose): We don't listen for source writeability
anymore.
(writable_changed): Source writeability doesn't affect widget
status; remove code to check for it.
(e_contact_editor_set_property): Do nothing if book being set is
the same as currently set book; previously we would end up
unreffing then reffing it. Don't watch for source writeability, but
do so for target; fixes a warning. Only call sensitize_all() if
writeability on target changed.
* gui/contact-editor/e-contact-editor.h (EContactEditor): We don't
need the source_editable and source_editable_id vars anymore.
svn path=/trunk/; revision=26674
2004-07-14 Chris Toshok <toshok@ximian.com>
[ fixes#60873, and possibly other crashes ]
* gui/widgets/e-addressbook-model.c (get_view): don't call
free_data before potentially making an async call. Or rather,
don't call free_data without ensure we'll be emitting
MODEL_CHANGED shortly after.
svn path=/trunk/; revision=26661
2004-07-14 Chris Toshok <toshok@ximian.com>
* gui/contact-list-editor/.cvsignore: ignore
Evolution-Addressbook-SelectNames.h.
* gui/contact-list-editor/e-contact-list-editor.c: include our
local (in this directory) generated
Evolution-Addressbook-SelectNames.h
* gui/contact-list-editor/Makefile.am: add stuff to generate (and
clean up) the select names header we need to include.
svn path=/trunk/; revision=26657
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
2004-07-12 Chris Toshok <toshok@ximian.com>
[ part of fix for bug #56520 ]
* gui/contact-list-editor/e-contact-list-editor.c
(e_contact_list_editor_init): init allows_contact_lists to TRUE.
(list_deleted_cb): nuke, it's unused.
(e_contact_list_editor_set_property): check if the book supports
contact lists, and desensitize things if it doesn't.
(select_names_ok_cb): this isn't valid C. declarations must come
before code.
(set_editable): the editable state of the dialog depends on
whether or not the backend supports contact lists.
(command_state_changed): the ok button needs to depend on
allows_contact_lists.
(extract_info): quiet compiler warning.
* gui/contact-list-editor/e-contact-list-editor.h (struct
_EContactListEditor): add allow_contact_lists.
svn path=/trunk/; revision=26625
* 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-07-02 Hans Petter Jansson <hpj@ximian.com>
* gui/contact-list-editor/e-contact-list-editor.c
(command_state_changed): Set the source option menu sensitivity here.
svn path=/trunk/; revision=26569
2004-06-30 Chris Toshok <toshok@ximian.com>
* gui/contact-editor/e-contact-editor.c
(e_contact_editor_dispose): disconnect source/target_editable
signal ids.
(e_contact_editor_set_property): disconnect/connect editable
signals.
(writable_changed): new function - we need this since writable
status is generally communicated asynchronously with the async
interface.
* gui/contact-editor/e-contact-editor.h (struct _EContactEditor):
add source/target_editable_id slots.
svn path=/trunk/; revision=26554
2004-06-25 Hans Petter Jansson <hpj@ximian.com>
* gui/meging/eab-contact-compare.[ch] (eab_contact_compare_file_as):
Implement.
(eab_contact_compare_name): Don't leak if only one of the strings is
NULL.
(use_common_book_cb): Include file_as in query.
svn path=/trunk/; revision=26527
2004-06-25 Hans Petter Jansson <hpj@ximian.com>
* gui/contact-editor/e-contact-editor.c (fill_in_address_textview): Add
a newline between street line and rest of extended address.
(extract_address_textview): Omit the newline trailing the street line.
svn path=/trunk/; revision=26526
2004-06-24 Hans Petter Jansson <hpj@ximian.com>
* util/eab-book-util.c (eab_contact_list_from_string): Don't accept
input that doesn't have at least a "BEGIN:VCARD" in it.
svn path=/trunk/; revision=26505
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/contact-editor/contact-editor.glade: Set window to be invisible
initially.
* gui/contact-editor/e-contact-editor.c (e_contact_editor_init): Set
the type hint to "normal", and show the window after init.
svn path=/trunk/; revision=26487
2004-06-23 Not Zed <NotZed@Ximian.com>
* gui/widgets/eab-gui-util.c
(eab_send_contact_list_as_attachment): use memcpy not strcpy to
copy to memory buffer. Fixes a UMW. See #60532.
svn path=/trunk/; revision=26486
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-22 Hans Petter Jansson <hpj@ximian.com>
* gui/contact-editor/contact-editor.glade: Name the labels.
* gui/contact-editor/e-contact-editor.c (sensitize_email_record)
(sensitize_phone_record)
(sensitize_im_record)
(sensitize_address_textview)
(sensitize_address_field)
(simple_field_map)
(sensitize_simple_field): Make entries uneditable and labels
insensitive, if field is disabled or read-only.
svn path=/trunk/; revision=26464
2004-06-22 Hans Petter Jansson <hpj@ximian.com>
Fixes#59622.
* gui/widgets/e-minicard-view.c (e_minicard_view_init): Clear drag_list
and canvas_drag_data_delete_id.
(e_minicard_view_dispose): Clear drag_list. Disconnect drag_data_delete
signal if connected.
(e_minicard_view_drag_begin): Set up drag_data_delete signal if
necessary. Clear old data before drag starts.
(clear_drag_data): Implement.
(e_minicard_view_drag_data_delete): Implement.
(e_minicard_view_drag_data_get): Don't clear drag_list here.
svn path=/trunk/; revision=26459
2004-06-22 Chris Toshok <toshok@ximian.com>
[ should fix#60495, #58635 ]
* gui/widgets/eab-popup-control.c (name_only_query_cb): don't free
the list of contacts - libebook still owns it.
(query_cb): same.
svn path=/trunk/; revision=26453
2004-06-22 Larry Ewing <lewing@ximian.com>
* gui/contact-list-editor/e-contact-list-editor.c (add_email_cb):
don't set the changed flag unless we actually add something.
svn path=/trunk/; revision=26451
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 Federico Mena Quintero <federico@ximian.com>
* gui/contact-editor/contact-editor.glade: Make the scrolled
windows around text views use GTK_SHADOW_IN, for consistency with
the GtkEntries.
svn path=/trunk/; revision=26446
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 Jeffrey Stedfast <fejj@novell.com>
* conduit/address-conduit.c (ecard_from_remote_record): Always set
the File_As attribute in case the pilot attrib changed. Fixes bug
#59723.
svn path=/trunk/; revision=26426
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