Commit Graph

776 Commits

Author SHA1 Message Date
b9fa53b613 added $(BONOBO_CONF_LIBS) to get it to compile.
2001-07-03  Damon Chaplin  <damon@ximian.com>

	* backend/ebook/Makefile.am (evolution_vcard_importer_LDADD):
	added $(BONOBO_CONF_LIBS) to get it to compile.

svn path=/trunk/; revision=10734
2001-07-03 07:09:54 +00:00
e981cabe35 Added $(BONOBO_CONF_LIBS).
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/Makefile.am (evolution_addressbook_LDADD): Added
	$(BONOBO_CONF_LIBS).

	* gui/component/select-names/e-select-names.c
	(e_select_names_create_categories),
	gui/contact-editor/e-contact-editor.c (categories_clicked):
	Switched to an ECategoriesMasterListWombat instead of an
	ECategoriesMasterListArray here.

svn path=/trunk/; revision=10722
2001-07-03 03:33:54 +00:00
55938df2d4 srcdir != builddir compile fix.
2001-07-02  Peter Williams  <peterw@ximian.com>

        * gui/contact-editor/Makefile.am (INCLUDES): srcdir !=
        builddir compile fix.

        * gui/contact-list-editor/Makefile.am (INCLUDES): Same.

        * gui/widgets/Makefile.am (INCLUDES): Same.

        * gui/search/Makefile.am (INCLUDES): Same.

svn path=/trunk/; revision=10680
2001-07-02 14:39:10 +00:00
761983a717 Turned off wombatification of the categories master list here.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* gui/contact-editor/e-contact-editor.c (categories_clicked):
	Turned off wombatification of the categories master list here.

svn path=/trunk/; revision=10668
2001-07-02 06:23:04 +00:00
d10adfea7a use ECARD_UID_LINK_PREFIX.
2001-07-01  Chris Toshok  <toshok@ximian.com>

	* gui/contact-list-editor/e-contact-list-editor.c (fill_in_info):
	use ECARD_UID_LINK_PREFIX.

	* gui/contact-list-editor/e-contact-list-model.c
	(e_contact_list_model_get_email): use ECARD_UID_LINK_PREFIX.

	* backend/ebook/e-destination.h: add prototype for
	e_destination_importv_list.

	* backend/ebook/e-destination.c (e_destination_importv_list): new
	function, take an ECard corresponding to an address list and
	resolve any linked cards, returning an EDestination vector.

	* backend/ebook/e-card.h (ECARD_UID_LINK_PREFIX): #define this here,
	since we need to use it in a few places.

svn path=/trunk/; revision=10667
2001-07-02 05:24:44 +00:00
353946a818 Added related_contacts field.
2001-07-02  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-card.c, backend/ebook/e-card.h: Added
	related_contacts field.

	* gui/component/select-names/e-select-names-model.c,
	gui/component/select-names/e-select-names-model.h
	(e_select_names_model_import_destinationv): Added this function.

	* gui/contact-editor/contact-editor.glade: Replaced the entry here
	for related contacts with a table which is filled in in the C code.

	* gui/contact-editor/e-contact-editor.c,
	gui/contact-editor/e-contact-editor.h (add_lists): Added a select
	names entry here for the related contacts field.

	* gui/widgets/Makefile.am: Removed all the test programs here
	since there are circular dependencies now.

svn path=/trunk/; revision=10666
2001-07-02 04:54:22 +00:00
e6191dc02e Fall back to use the name field if all else fails (which can happen with
2001-07-01  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-destination.c (e_destination_get_string): Fall
	back to use the name field if all else fails (which can happen
	with imported EDestinations).

svn path=/trunk/; revision=10665
2001-07-02 04:32:58 +00:00
00e3b9af8a Fix for the "recipient not specified" bug --- we were not correctly
2001-07-01  Jon Trowbridge  <trow@ximian.com>

        * backend/ebook/e-destination.c (e_destination_is_empty): Fix for the
        "recipient not specified" bug --- we were not correctly checking
        for whether or not an EDestination was actually empty.

svn path=/trunk/; revision=10664
2001-07-02 04:23:15 +00:00
675b94a4f5 Check args. Somewhere in the code (somewhere in the minicard stuff) this
2001-06-30  Jon Trowbridge  <trow@ximian.com>

        * backend/ebook/e-card.c (e_card_evolution_list): Check args.
        Somewhere in the code (somewhere in the minicard stuff) this can
	be called with a NULL arg, which was causing crashes.
        (e_card_evolution_list_show_addresses): Check args.

svn path=/trunk/; revision=10644
2001-07-01 00:44:31 +00:00
effc7ac8c0 I was accidentally comparing characters and strings here, and didn't see
2001-06-30  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-destination.c (build_field): I was accidentally
	comparing characters and strings here, and didn't see the compiler
	warning.  Fixed.
	(e_destination_exportv): Don't export any empty destinations.
	(bug#3825).

svn path=/trunk/; revision=10635
2001-06-30 20:28:52 +00:00
a03b5cb797 Marked strings for translation.
* gui/component/e-address-popup.c (e_address_popup_construct): Marked
strings for translation.

svn path=/trunk/; revision=10628
2001-06-30 12:07:06 +00:00
7c5dd95cd7 Make the standard for considering two cards to be match stricter.
2001-06-30  Jon Trowbridge  <trow@ximian.com>

        * gui/merging/e-card-merging.c (match_query_callback): Make the
        standard for considering two cards to be match stricter.

        * gui/component/select-names/e-select-names-completion.c
        (make_match): Use the card's use-score to set the match's
        sort_major value.
        (match_name): Removed obsolete code.
        (e_select_names_completion_begin): Added (double) cast to make
        match->score calculation come out properly.

        * backend/ebook/e-card.c: Added X-EVOLUTION-LAST-USE and
        X-EVOLUTION-USE-SCORE to attribute_jump_array.
        (e_card_get_today): Added.  A convenience routine for getting
        today's date and putting it in a GDate.
        (e_card_get_use_score): Added.  Compute the current, time-decayed,
        use-score for the card.
        (e_card_touch): Increment the use-score by one; update the last
        used date.
        (e_card_date_to_string): Added as a convenience routine, getting
        rid of some code duplication.
        (e_card_get_vobject): Add handlers for X-EVOLUTION-USE-SCORE and
        X-EVOLUTION-LAST-USE.
        (parse_last_use): Added.
        (parse_use_score): Added.
        (e_card_class_init): Added args for last-use and use-score.
        (e_card_get_arg): Added handlers for last-use and use-score.
        o
        (e_card_set_arg): Added handlers for last-use and use-score.

        * backend/ebook/e-destination.c: Added pending_card_id to
        EDestinationPrivate struct.
        (e_destination_copy): Copy the pending_card_id.
        (e_destination_is_empty): Check for a pending_card_id.  We are
        non-empty if we have one.
        (e_destination_clear_card): Clear pending_card_id.
        (e_destination_set_card): Clear pending_card_id.
        (e_destination_has_pending_card): Added.
        (e_destination_use_card): Added.  An asynchronous way to load a
        pending card and then apply a callback to it.
        (build_field): Be paranoid, map our special characters to '_'.
        (e_destination_export): Use EXPORT_MAX_FIELDS symbol rather than a
        hard-wired array size.  Added the "card" entry.
        (e_destination_import): Fix bug in handling of the "name" field.
        Process the "card" field.
        (e_destination_touch): "Touch" and commit the ECard corresponding
        to the e-mail address in the destination.  (A query against the
        local addressbook is actually performed, in case the destination
        isn't cardified.

        * backend/ebook/e-card-compare.c (e_card_compare_name): Revamp the
        way E_CARD_MATCH_FOO results are mapped to comparison results.
        Report better matches when the family name is matched.

svn path=/trunk/; revision=10626
2001-06-30 05:23:09 +00:00
028af96877 Added a search field to the query here. (e_select_names_init): Update the
2001-06-29  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names.c (update_query):
	Added a search field to the query here.
	(e_select_names_init): Update the query on a number of signals here.

	* gui/component/select-names/e-select-names.h: Added search_entry
	here.

	* gui/component/select-names/select-names.glade: Added the search
	entry here.  Added some labels.  Removed the update button.

svn path=/trunk/; revision=10624
2001-06-30 03:27:33 +00:00
a0619157c2 Change the uri here to have addressbook.db at the end.
2001-06-29  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names.c
	(e_select_names_option_activated): Change the uri here to have
	addressbook.db at the end.

	* gui/component/select-names/select-names.glade: Changed the name
	of the folder option menu here to match the name used in the code.

svn path=/trunk/; revision=10623
2001-06-30 02:56:45 +00:00
e464ef3034 Change the query when the "Update List" button is pushed.
2001-06-29  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names.c (update_query):
	Change the query when the "Update List" button is pushed.

	* gui/component/select-names/e-select-names.h: Removed
	currently_selected field.  Added categories_entry field.

	* gui/component/select-names/select-names.glade: Added "Update
	List" button.

svn path=/trunk/; revision=10622
2001-06-30 02:40:27 +00:00
8093ffc805 add EVOLUTION_IMAGESDIR define.
2001-06-29  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/Makefile.am (INCLUDES): add EVOLUTION_IMAGESDIR
	define.

	* gui/widgets/e-minicard.h (struct _EMinicard): add our pixbuf and
	pixbuf size.

	* gui/widgets/e-minicard.c (e_minicard_init): init the icon pixbuf
	and its size.
	(e_minicard_destroy): unref the list_icon_pixbuf.
	(e_minicard_realize): create the list_icon GnomeCanvasPixbuf.
	(e_minicard_resize_children): clip the header_text by the
	list_icon, and place the list_icon in the right spot.
	(remodel): show the list_icon if we're a list, and hide it
	otherwise.

svn path=/trunk/; revision=10596
2001-06-29 09:47:11 +00:00
8febdbc078 s
svn path=/trunk/; revision=10593
2001-06-29 06:24:55 +00:00
9b19b1d618 pop up list editor for lists, contact editor otherwise.
2001-06-28  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-view.c (table_double_click): pop up
	list editor for lists, contact editor otherwise.

	* gui/widgets/e-minicard.c (e_minicard_event): same.

	* gui/widgets/e-minicard.h (struct _EMinicard): change "editor" to
	GtkOjbect, since it can be either a contact editor or contact list
	editor.

	* gui/widgets/e-addressbook-table-adapter.c
	(addressbook_is_cell_editable): don't allow editting of any fields
	except the name and file_as for lists.

svn path=/trunk/; revision=10590
2001-06-29 04:31:39 +00:00
51da89cf51 remove ancient e-table include, and add include for contact-editor so we
2001-06-28  Chris Toshok  <toshok@ximian.com>

	* gui/contact-list-editor/Makefile.am (INCLUDES): remove ancient
	e-table include, and add include for contact-editor so we can
	reuse the confirm_delete dialog.

	* gui/contact-list-editor/e-contact-list-editor.h (struct
	_EContactListEditor): remove prototype for
	e_contact_list_editor_close, since the function no longer exists.

	* gui/contact-list-editor/e-contact-list-editor.c
	(list_deleted_cb): new function, emit our "list_deleted" signal.
	(delete_cb): new function, called from the Delete toolbar item.
	(e_contact_list_editor_raise): flesh out function.
	(extract_info): "evolution_list" => "list".
	(fill_in_info): same.

svn path=/trunk/; revision=10587
2001-06-29 03:53:11 +00:00
18cd58aabe add support for X-EVOLUTION-LIST and X-EVOLUTION-LIST-SHOW-ADDRESSES.
2001-06-28  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-card.c (e_card_get_vobject): add support for
	X-EVOLUTION-LIST and X-EVOLUTION-LIST-SHOW-ADDRESSES.
	(parse_list): new function, parse the boolean X-EVOLUTION-LIST.
	(parse_list_show_addresses): new function, parse the boolean
	X-EVOLUTION-LIST-SHOW-ADDRESSES.
	(e_card_class_init): add args for "list" and
	"list_show_addresses".
	(e_card_set_arg): add support for list and list_show_addresses.
	(e_card_get_arg): same.
	(e_card_init): init list and list_show_addresses.

svn path=/trunk/; revision=10585
2001-06-29 03:49:24 +00:00
d82d5a7997 Add method `ShellComponent::handleExternalURI' and an
`external_uri_schemas' attribute.  Update the EvolutionShellComponent
GTK+ wrapper accordingly.  Update all the components to pass a NULL
`external_uri_schemas' list when initializing themselves as
EvolutionShellComponents.

svn path=/trunk/; revision=10548
2001-06-27 23:17:41 +00:00
780e047c04 track storage change - we're only using 1 array now.
2001-06-27  Chris Toshok  <toshok@ximian.com>

	* gui/contact-list-editor/e-contact-list-model.c
	(contact_list_row_count): track storage change - we're only using
	1 array now.
	(contact_list_value_at): same.
	(contact_list_model_destroy): same.
	(e_contact_list_model_init): same.
	(e_contact_list_model_add_email): same.
	(e_contact_list_model_add_card): same.
	(e_contact_list_model_remove_row): same.
	(e_contact_list_model_remove_all): new function - just free/unref
	all existing rows.
	(e_contact_list_model_get_email): new function, returns the
	alloc'ed string containing either an email address or an encoded
	ECardId.

	* gui/contact-list-editor/e-contact-list-model.h: remove the 2
	separate arrays for email and cards, and store them in the same
	array.

	* gui/contact-list-editor/e-contact-list-editor.h (struct
	_EContactListEditor): add the visible_addr_checkbutton widget.

	* gui/contact-list-editor/e-contact-list-editor.c
	(visible_addrs_toggled_cb): new function.
	(e_contact_list_editor_init): connect to "toggled" on
	visible_addrs_checkbutton.
	(file_save_cb): new function.
	(tb_save_and_close_cb): new function.
	(verbs): add Save and Save & Close.
	(list_added_cb): new function.
	(list_modified_cb): new function.
	(save_card): new function - we do *not* use e_card_merging_* calls
	here.
	(e_contact_list_editor_get_arg): un-#if 0 code in the "card"
	getter.
	(e_contact_list_editor_set_arg): same for the "card" setter.
	(extract_info): new function.
	(fill_in_info): new function.

	* gui/contact-list-editor/contact-list-editor.glade: add a
	checkbutton at the bottom to determine whether to visibly include
	mail addresses in mail sent to this list.

svn path=/trunk/; revision=10542
2001-06-27 21:04:44 +00:00
202810cc38 Oops. Can't use the wombat version of the master categories list yet.
2001-06-26  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names.c
	(e_select_names_create_categories): Oops.  Can't use the wombat
	version of the master categories list yet.

svn path=/trunk/; revision=10527
2001-06-27 03:23:53 +00:00
8cb9e29ae5 memmove counts were off in this function. (remove_card, modify_card):
2001-06-26  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-addressbook-table-adapter.c (create_card): memmove
	counts were off in this function.
	(remove_card, modify_card): Moved the table notifications around a
	bit here.

svn path=/trunk/; revision=10525
2001-06-27 03:17:29 +00:00
2ac2af6d4b Added a categories combo here. It's not used yet.
2001-06-26  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names.c,
	gui/component/select-names/e-select-names.h,
	gui/component/select-names/select-names.glade
	(e_select_names_create_categories): Added a categories combo here.
	It's not used yet.

svn path=/trunk/; revision=10524
2001-06-27 03:15:53 +00:00
4627fb4bea Added category searching to the advanced search dialog here.
2001-06-26  Christopher James Lahey  <clahey@ximian.com>

	* gui/search/addresstypes.xml: Added category searching to the
	advanced search dialog here.

svn path=/trunk/; revision=10521
2001-06-27 00:32:29 +00:00
7728e7dbd2 Added category searching to the file backend.
2001-06-26  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/pas-backend-file.c (compare_category): Added
	category searching to the file backend.

	* gui/component/addressbook.c (addressbook_query_changed): Added
	category searching to the search bar.

svn path=/trunk/; revision=10520
2001-06-27 00:22:02 +00:00
abec8da192 Capitalized fields. Added X-EVOLUTION-RELATED-CONTACTS field.
Capitalized fields.
Added X-EVOLUTION-RELATED-CONTACTS field.

svn path=/trunk/; revision=10519
2001-06-27 00:17:55 +00:00
7f184616bd libwombat:
2001-06-25  Peter Williams  <peterw@ximian.com>

        * Makefile.am (libwombat_static_la_SOURCES): Create a static
        libwombat for the conduits.

calendar:

2001-06-25  Peter Williams  <peterw@ximian.com>

        * conduits/calendar/Makefile.am (INCLUDES): Fixes for
        srcdir != builddir. Link to the static libwombat.

        * conduits/todo/Makefile.am (INCLUDES): Here too.

addressbook:

2001-06-25  Peter Williams  <peterw@ximian.com>

        * conduit/Makefile.am (INCLUDES): Fix for srcdir != builddir.

svn path=/trunk/; revision=10511
2001-06-26 22:32:38 +00:00
b44b57aa7e Added a note about the use of this file.
svn path=/trunk/; revision=10497
2001-06-25 23:09:55 +00:00
1dc87e4ada Added this file for fields we need to add to ECard.
svn path=/trunk/; revision=10496
2001-06-25 23:08:57 +00:00
9a1c55ede5 change layout slightly, the icon no longer pushes everything to the left,
2001-06-25  Chris Toshok  <toshok@ximian.com>

	* gui/contact-list-editor/contact-list-editor.glade: change layout
	slightly, the icon no longer pushes everything to the left, and
	make the buttons on the right smaller and more in line with the
	other widgets.

	* gui/contact-list-editor/e-contact-list-model.c
	(contact_list_value_at): return the SimpleAndString->string
	instead of querying the ecardsimple.
	(e_contact_list_model_init): initially allocate 10 of each type
	(email and simple).
	(e_contact_list_model_add_email): realloc if need be.
	(e_contact_list_model_add_card): same, and initialize the string
	displayed to be "[Name] [<email>]".
	(e_contact_list_model_remove_row): change for SimpleAndString.
	(contact_list_model_destroy): free our 2 arrays.

	* gui/contact-list-editor/e-contact-list-model.h: add alloc counts
	and the SimpleAndString struct.

	* gui/contact-list-editor/e-contact-list-editor.c: Helix Code =>
	Ximian.
	(e_contact_list_editor_init): hook up d&d destination signals, and
	un-#if 0 the delete_event signal.
	(table_drag_motion_cb): new function.
	(table_drag_drop_cb): new function.
	(table_drag_data_received_cb): new function.
	(file_close_cb): new function.
	(verbs) uncomment the close verb.
	(close_dialog): new function.
	(app_delete_event_cb): new function.

	* gui/contact-list-editor/e-contact-list-editor.h: Helix Code =>
	Ximian.

svn path=/trunk/; revision=10494
2001-06-25 21:51:17 +00:00
d11dd5c6a7 Add a huge steaming pile of code to handle the case of single-address
2001-06-25  Jon Trowbridge  <trow@ximian.com>

        * gui/component/e-address-popup.c: Add a huge steaming pile of
        code to handle the case of single-address merging.  In other
        words, if you go to "harvest" an address by right-clicking on it
        in the mail viewer, and you already have a closely-matching
        contact (w/ a different e-mail address), this gives you the
        option of editting that contact's e-mail addresses to add the
        one you just clicked on.

        * backend/ebook/e-card-compare.c (match_search_info_free): It is
        amazing how much better things work when you don't try to
        dereference the pointer you just freed.

svn path=/trunk/; revision=10469
2001-06-25 05:48:45 +00:00
8cb68557ae correct path to libecontacteditor.a. (minicard_widget_test_LDADD): same.
2001-06-24  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/Makefile.am (minicard_test_LDADD): correct path to
	libecontacteditor.a.
	(minicard_widget_test_LDADD): same.
	(INCLUDES): same, for the includes.

	* gui/widgets/e-minicard.h: correct e-contact-editor.h path.

	* gui/widgets/e-addressbook-util.h: correct path to
	e-contact-editor.h, and add e-contact-list-editor.h.  Add
	prototype for e_addressbook_show_contact_list_editor.

	* gui/widgets/e-addressbook-util.c: remove #include
	"e-contact-editor.h" (our header includes it.)
	(added_cb): rename card_added_cb to this, and make it so it can be
	reused in both the list and card cases.  remove the g_print too.
	(modified_cb): same for modified case.
	(deleted_cb): same for deleted case.
	(editor_closed_cb): change first arg to GtkObject* so we can reuse
	this for both list and card.
	(e_addressbook_show_contact_editor): use added_cb, modified_cb,
	deleted_cb, and pass FALSE as user_data.
	(e_addressbook_show_contact_list_editor): new function, same as
	above but creating a contact-list-editor, and pass TRUE as
	user_data.

	* gui/component/e-address-popup.c: correct path to contact-editor.

	* gui/component/e-address-widget.c: same.

	* gui/component/select-names/e-select-names-popup.c: same.

	* gui/component/select-names/e-select-names-text-model.c: same.

	* gui/component/addressbook.c (new_contact_list_cb): new function.
	(update_command_state): update ContactNewList command.
	(verbs): remove ViewAll from the toolbar from the verb list.  Add
	ContactNewList.
	(pixmaps): same for pixmaps.

	* gui/component/Makefile.am (evolution_addressbook_LDADD): new
	path for contact-editor.
	(INCLUDES): same.

	* gui/contact-list-editor/e-contact-list-model.h:
	* gui/contact-list-editor/e-contact-list-model.c:
	* gui/contact-list-editor/e-contact-list-editor.h:
	* gui/contact-list-editor/e-contact-list-editor.c:
	* gui/contact-list-editor/Makefile.am: Initial contact-list editor
	  commit.

	* gui/Makefile.am (SUBDIRS): add contact-editor.

	* Makefile.am: (SUBDIRS): remove contact-editor.

svn path=/trunk/; revision=10463
2001-06-25 01:09:43 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
e061c100c7 Renamed. (The old name, edit_contact_info_have_book_cb was a hold-over
2001-06-21  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-popup.c
	(make_contact_editor_cb): Renamed.  (The old name,
	edit_contact_info_have_book_cb was a hold-over from before, when
	we weren't using e_book_use_local_address_book.)

	* gui/component/e-address-popup.c
	(e_address_popup_schedule_refresh): A Added.  We now do the name
	refreshes in an idle function, rather than in the setters.
	(e_address_popup_set_free_form): Added.  Properly handle inputs of
	the form "Foo <bar@zar.com>", extracting the name and e-mail
	address.
	(e_address_popup_set_name): Check to make sure that the free-form
	handler shouldn't be used to handle the input.  Schedule a refresh
	after making any changes.
	(e_address_popup_set_email): Check to make sure that the free-form
	handler shouldn't be used to handle the input.  Schedule a refresh
	after making any changes.
	(e_address_popup_name_only_matches): Temporary place-holder for
	handling name-only matches.
	(query_cb): If our initial query fails (and included e-mail
	information), do a name-only query.  This is to handle the case of
	adding new e-mail addresses to existing contacts.
	(e_address_popup_query): Eliminated the "common_book" crap; using
	e_book_use_local_address_book instead.

	* backend/ebook/e-card-compare.c (match_search_info_free): Make
	sure that the ->avoid list gets properly freed.

svn path=/trunk/; revision=10374
2001-06-21 18:58:15 +00:00
536c03eb04 fix a refcounting memleak.
2001-06-20  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_supported_fields): fix a refcounting
	memleak.

svn path=/trunk/; revision=10351
2001-06-21 06:39:28 +00:00
67961cf692 fix memory leak.
2001-06-20  Chris Toshok  <toshok@ximian.com>

	* backend/ebook/e-book-listener.c
	(e_book_listener_queue_get_supported_fields_response): fix memory
	leak.

svn path=/trunk/; revision=10350
2001-06-21 04:30:06 +00:00
7b529b4df2 add prototype for close_dialog to remove warnings.
2001-06-20  Chris Toshok  <toshok@ximian.com>

	* contact-editor/e-contact-editor.c: add prototype for
	close_dialog to remove warnings.

svn path=/trunk/; revision=10349
2001-06-20 22:58:48 +00:00
90aba2dbfd Changed attachData to accept a sequence of chars rather than a string.
2001-06-20  Dave Camp  <dave@ximian.com>

	* Evolution-Composer.idl: Changed attachData to accept a sequence of
	chars rather than a string.

	* evolution-composer.c (impl_Composer_attach_data): Changed the 'data'
	argument to a GNOME_Evolution_Composer_AttachmentData, and pass
	data->_buffer and data->_length to camel_mime_part_set_content().

2001-06-20  Dave Camp  <dave@ximian.com>

	* gui/itip-utils.c (itip_send_comp): Changed attach_data
	to be a GNOME_Evolution_Composer_AttachmentData rather than a
	CORBA_char*.

2001-06-20  Dave Camp  <dave@ximian.com>

	* backend/ebook/e-card.c (e_card_list_send): Changed attach_data
	to be a GNOME_Evolution_Composer_AttachmentData rather than a
	CORBA_char*.

svn path=/trunk/; revision=10343
2001-06-20 18:29:03 +00:00
649bc025db track change to e_addressbook_show_contact_editor signature.
2001-06-19  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-view.c (table_double_click): track
	change to e_addressbook_show_contact_editor signature.

	* gui/widgets/e-minicard-view.c (e_minicard_view_event): same.

	* gui/widgets/e-minicard.c (e_minicard_event): same.

	* gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog):
	add an entry for "Card ID already exists".
	(e_addressbook_show_contact_editor): track the change to signal
	names and e_contact_editor_new signature here.

	* gui/widgets/e-addressbook-util.h: change
	e_addressbook_show_contact_editor's signature to match
	e_contact_editor_new more closely.

	* gui/widgets/e-addressbook-table-adapter.c (unlink_model): free
	up the simple mapping to plug a potentially sizeable memory leak.

	* gui/component/select-names/e-select-names-text-model.c
	(e_select_names_text_model_activate_obj): call
	e_addressbook_show_contact_editor here.

	* gui/component/select-names/e-select-names-popup.c
	(edit_contact_info_have_book_cb): remove the get_supported_fields
	stuff, since the contact editor handles it for us now, and call
	e_addressbook_show_contact_editor.

	* gui/component/e-address-popup.c (edit_contact_info_cb): same.

	* gui/component/addressbook.c (new_contact_cb): track change to
	e_addressbook_show_contact_editor.

svn path=/trunk/; revision=10318
2001-06-20 00:45:48 +00:00
68a1984433 rename ce_book_found_fields to this, remove the fetching of fields (the
2001-06-19  Chris Toshok  <toshok@ximian.com>

	* contact-editor/e-contact-quick-add.c (ce_have_book): rename
	ce_book_found_fields to this, remove the fetching of fields (the
	contact editor code handles that now.), and change the add_card
	signal to card_added.
	(card_added_cb): copied somewhat from merge_cb above.  we don't
	need to do the merge here, just call the callback.

	* contact-editor/e-contact-editor.c (e_contact_editor_class_init):
	track signal change.  add book arg, and is_read_only -> editable.
	(wants_html_changed): if the card isn't already changed, flag it
	as such (and update the commands.)
	(phone_entry_changed): same.
	(email_entry_changed): same.
	(address_text_changed): same.
	(name_entry_changed): same.
	(company_entry_changed): same.
	(full_name_clicked): is_read_only -> editable.
	(full_addr_clicked): same.
	(card_added_cb): new function, emit our card_added signal, and
	close the dialog if we're supposed to.  properly deal with error
	status here.
	(card_modified_cb): same, modulo card_added -> card_modified.
	(save_card): actually call e_card_merging_book_{add/commit}_card
	instead of using a signal.  Also, add a gboolean arg to tell
	whether or not to close the dialog after saving the card.
	(card_deleted_cb): new function, just emit our "card_deleted"
	signal.
	(delete_cb): actually call e_book_remove_card here, instead of
	using a signal.
	(tb_save_and_close_cb): call save_card with TRUE for should_close.
	(e_contact_editor_init): init changed = FALSE;
	(e_contact_editor_destroy): unref our book if we have one.
	(e_contact_editor_new): new signature, set the "book" arg, and
	call e_book_get_supported_fields here.
	(supported_fields_cb): new function, show the contact editor.
	(e_contact_editor_set_arg): initialize changed to FALSE when
	setting the card (but *after*, since the changed callbacks will
	set it to TRUE.)  also, call command_state_changed if editable
	changes.  also handle setting "book".  oh, and is_read_only ->
	editable.
	(command_state_changed): new function - set the state of the
	commands we care about.
	(e_contact_editor_get_arg): add "book" handling, and is_read_only
	-> editable.
	(_phone_arrow_pressed): is_read_only -> editable.
	(_email_arrow_pressed): same.
	(_address_arrow_pressed): same.
	(enable_writable_fields): same.
	(set_editable): rename set_read_only to this, and is_read_only ->
	editable.

	* contact-editor/e-contact-editor.h (struct _EContactEditor):
	is_read_only -> editable, add a "changed" flag so we can sensitize
	commands correctly, and add an EBook* arg to e_contact_editor_new
	and to the EContactEditor struct.  Also, change all the signals to
	past tense, and send the EBookStatus in them.

	* contact-editor/e-contact-editor-address.c
	(e_contact_editor_address_class_init): is_read_only -> editable.
	(e_contact_editor_address_set_arg): same.
	(e_contact_editor_address_get_arg): same.

	* contact-editor/e-contact-editor-address.h (struct
	_EContactEditorAddress): same.

	* contact-editor/e-contact-editor-fullname.c
	(e_contact_editor_fullname_class_init): same.
	(e_contact_editor_fullname_set_arg): same.
	(e_contact_editor_fullname_get_arg): same.

	* contact-editor/e-contact-editor-fullname.h (struct
	_EContactEditorFullname): same.

	* contact-editor/Makefile.am: don't build contact-editor-test now,
	until contact-editor gets moved to gui/ and we can more easily
	depend on the e_card_merging_* calls.

	* backend/pas/pas-backend-ldap.c (ldap_error_to_response): return
	CardIdAlreadyExists for LDAP_ALREADY_EXISTS.

	* backend/idl/addressbook.idl: Add CardIdAlreadyExists to the
	BookListener status enum.

	* backend/ebook/e-book-types.h: add
	E_BOOK_STATUS_CARD_ID_ALREADY_EXISTS.

	* backend/ebook/e-book-listener.c
	(e_book_listener_convert_status): add support for
	CardIdAlreadyExists.

svn path=/trunk/; revision=10317
2001-06-20 00:34:24 +00:00
3674905a0e Oops --- wrong e-mail address in ChangeLog entry.
svn path=/trunk/; revision=10291
2001-06-19 15:38:05 +00:00
8e7415029b Serious de-crufting, removal of gtk_object_set_data() hacks, simplified by
2001-06-19  Jon Trowbridge  <trow@gnu.org>

	* contact-editor/e-contact-quick-add.c: Serious de-crufting,
	removal of gtk_object_set_data() hacks, simplified by using
	some of the newer ebook convenience routines, etc.
	(ce_book_found_fields):
	s/e_contact_editor_raise/e_contact_editor_show/, to accomodate the
	small changes in the contact editor API.

svn path=/trunk/; revision=10289
2001-06-19 15:37:08 +00:00
15d3afd9d6 tweaked for some gnome-pilot api changes
svn path=/trunk/; revision=10284
2001-06-19 02:14:34 +00:00
bba6af69b9 implement this properly, using base and (objectclass=*).
2001-06-15  Chris Toshok  <toshok@ximian.com>

	* backend/pas/pas-backend-ldap.c (search_for_dn): implement this
	properly, using base and (objectclass=*).

svn path=/trunk/; revision=10249
2001-06-15 07:25:56 +00:00
fbb323c3d1 save ourselves a function call - call close_dialog instead of
2001-06-14  Chris Toshok  <toshok@ximian.com>

	* contact-editor/e-contact-editor.c (delete_cb): save ourselves a
	function call - call close_dialog instead of file_close_cb.

svn path=/trunk/; revision=10238
2001-06-14 20:46:49 +00:00
681b9172bc Set the "expoted_dnd_types" to NULL in the folder_types.
2001-06-14  Jeffrey Stedfast  <fejj@ximian.com>

	* gui/component/addressbook-component.c: Set the
	"expoted_dnd_types" to NULL in the folder_types.

svn path=/trunk/; revision=10237
2001-06-14 20:17:43 +00:00
85a98452d4 Add a workaround for an EText bug. (e_select_names_completion_begin): Fix
* gui/component/select-names/e-select-names-completion.c
	(search_override_check): Add a workaround for an EText bug.
	(e_select_names_completion_begin): Fix up the match scoring in the
	search_override case so the lines are offered in the correct
	order.

svn path=/trunk/; revision=10194
2001-06-11 23:16:21 +00:00
8b080c2358 Added e-card-merging-book-commit-duplicate-detected.glade here.
2001-06-11  Christopher James Lahey  <clahey@ximian.com>

	* gui/merging/Makefile.am (glade_DATA): Added
	e-card-merging-book-commit-duplicate-detected.glade here.

	* gui/merging/e-card-merging-book-commit-duplicate-detected.glade:
	Added this file.  The GUI for asking whether to commit a modified
	card.

	* gui/merging/e-card-merging.c, gui/merging/e-card-merging.h
	(e_card_merging_book_commit_card): Added this function.

	* gui/widgets/e-addressbook-table-adapter.c
	(addressbook_set_value_at), gui/widgets/e-addressbook-util.c
	(commit_card_cb), gui/widgets/e-minicard.c (e_minicard_event): Use
	e_card_merging_book_commit_card instead of e_book_commit_card here.

svn path=/trunk/; revision=10184
2001-06-11 10:13:04 +00:00