Commit Graph

443 Commits

Author SHA1 Message Date
be88a44705 Added fields for the GalViewMenus and GalViewCollection; we need to keep
2001-05-31  Federico Mena Quintero  <federico@ximian.com>

	* gui/widgets/e-addressbook-view.h (EAddressbookView): Added
	fields for the GalViewMenus and GalViewCollection; we need to keep
	them around while the component is active.

	* gui/widgets/e-addressbook-view.c
	(e_addressbook_view_setup_menus): Plug leak; unref the spec.
	Unref the factories.  Do not unref the collection, since we need
	it for the signal emission (okay, so the views object adds a
	reference to it, but if we are interested in it we should keep a
	reference anyways).
	(e_addressbook_view_setup_menus): Create the collection and views
	on the EAddressbookView's fields so that we can keep them around.
	(e_addressbook_view_discard_menus): New function; gets rid of the
	collection and views objects.

	* gui/component/addressbook.c (control_activate_cb): Call
	e_addressbook_view_discard_menus().

svn path=/trunk/; revision=10074
2001-05-31 23:05:41 +00:00
69e9359204 add the EAddressbookModel* and change the ETableModel's name to "adapter".
2001-05-31  Chris Toshok  <toshok@ximian.com>

	* gui/component/select-names/e-select-names.h (struct
	_ESelectNames): add the EAddressbookModel* and change the
	ETableModel's name to "adapter".

	* gui/component/select-names/e-select-names.c (set_book),
	(addressbook_model_set_uri): these two things take an
	EAddressbookModel* instead of an ETableModel now.
	(e_addressbook_create_ebook_table): don't case the
	EAddressbookModel* to ETableModel*, create an EAddressbookTableAdapter
	on the EAddressbookModel instead.
	(e_select_names_init): set e_select_names->adapter.

svn path=/trunk/; revision=10072
2001-05-31 22:27:56 +00:00
6b6d9e32a4 decrement data_count before emitting the card_removed signal, and break
2001-05-31  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-model.c (remove_card): decrement
	data_count before emitting the card_removed signal, and break
	after we've removed the matching card.
	(e_addressbook_model_class_init): change signature of
	"card_removed" signal to match what we emit (and what is
	expected.)

	* gui/widgets/e-addressbook-view.c (e_addressbook_view_init): the
	signal name is "destroy", not "destroyed".
	(do_remove): new function, actually remove the card.
	(e_addressbook_view_delete_selection): get this working for both
	view types.

svn path=/trunk/; revision=10071
2001-05-31 21:26:19 +00:00
9e7473e1de Print Preview => ContactsPrintPreview. Changed peter's change so that the
2001-05-31  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c: Print Preview =>
	ContactsPrintPreview.  Changed peter's change so that the node
	name is more in line with "Print.."'s

svn path=/trunk/; revision=10064
2001-05-31 20:03:20 +00:00
c12a1660bd Use the correct path to the print preview menu item.
2001-05-30  Peter Williams  <peterw@ximian.com>

       * gui/component/addressbook.c: Use the correct path to the print
       preview menu item.

svn path=/trunk/; revision=10054
2001-05-30 21:13:19 +00:00
0660722baa new function, for the Cut verb. (copy_contacts_cb): new function, for the
2001-05-30  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c (cut_contacts_cb): new function, for
	the Cut verb.
	(copy_contacts_cb): new function, for the Copy verb.
	(paste_contacts_cb): new function, for the Paste verb.
	(select_all_contacts_cb): new function, for the Select All verb.
	(update_command_state): add handling for sensitivity of
	Cut/Copy/Paste/Select All.

	* gui/widgets/e-addressbook-view.c (e_addressbook_view_init): init
	the invisible and set up selection/destroy signals.
	(get_selection_model): new function, so we can get the
	ETableSelectionModel from either view type.  makes lots of the
	other functions easier, since we can get the list of selected
	cards using the same code regardless of view type.
	(invisible_destroyed): new function.
	(selection_get): new function.  convert the clipboard list to
	string.
	(selection_clear_event): new function - free up the list of
	ECards.
	(selection_received): if the selection data is valid and
	well-formed, add the corresponding cards to the ebook.
	(add_to_list): new function.
	(get_selected_cards): new function.
	(e_addressbook_view_cut): new function, implement in terms of
	_copy and _delete_selection.
	(e_addressbook_view_copy): claim ownership of the CLIPBOARD
	selection after saving the list of selected ECards.
	(e_addressbook_view_paste): call gtk_selection_convert.
	(e_addressbook_view_select_all): new function, using
	e_selection_model_select_all.
	(e_addressbook_view_can_print): re-implement in terms of
	get_selection_model.
	(e_addressbook_view_can_delete): same.
	(e_addressbook_view_can_cut): new function.
	(e_addressbook_view_can_copy): new function.
	(e_addressbook_view_can_paste): new function.  hmm, always return
	TRUE here.
	(e_addressbook_view_can_select_all): new function.

	* gui/widgets/e-addressbook-view.h (struct _EAddressbookView): add
	selection stuff - the list of selected cards, and the GtkInvisible
	selection owner, and add prototypes for
	e_addressbook_view_[can]_{cut,copy,paste,select_all}.

	* gui/widgets/e-minicard-view-widget.h: add a prototype for
	e_minicard_view_widget_get_selection_model.

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_get_selection_model): new function.

svn path=/trunk/; revision=10050
2001-05-30 08:47:00 +00:00
5e44950c28 #include "evolution-shell-component-utils.h" rather than "e-gui-utils.h"
* gui/component/addressbook.c: #include
	"evolution-shell-component-utils.h" rather than "e-gui-utils.h"
	for e_pixmaps_update.

svn path=/trunk/; revision=10020
2001-05-27 18:02:03 +00:00
a58c7b50e9 Reference libeshell.la instead of libeshell.a.
2001-05-25  Peter Williams  <peterw@ximian.com>

       * gui/component/Makefile.am: Reference libeshell.la instead of libeshell.a.

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

       * gui/Makefile.am: Reference libeshell.la instead of libeshell.a.

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

       * component/Makefile.am: Reference libeshell.la instead of libeshell.a.

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

       * Makefile.am: Reference libeshell.la instead of libeshell.a.

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

       * Makefile.am: Change libeshell from a noinst_LIBRARIES to
       a lib_LTLIBRARIES. Install its headers in
       $includedir/evolution/shell.

       * evolution-storage.c (safe_corba_string): New, copy of e_safe_corba_string
       in libeutil. This way libeshell doesn't have a missing symbol when programs
       that don't have libeutil link to it.
       (evolution_storage_register): s,e_safe_corba_string,safe_corba_string,g.

svn path=/trunk/; revision=10007
2001-05-26 04:59:00 +00:00
03df6fccde Correct the height calculation here to not include the
2001-05-25  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-addressbook-reflow-adapter.c (addressbook_height):
	Correct the height calculation here to not include the
	E_CARD_SIMPLE_FIELD_FAMILY_NAME since it won't be displayed.

	* gui/widgets/e-minicard.c (remodel): Changed this to continue to
	be more consistent and simpler.

svn path=/trunk/; revision=9992
2001-05-25 18:56:25 +00:00
be19c59c2e add sequence_complete_id to EAddressbookModel and stop_state_changed to
2001-05-23  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-addressbook-model.h: add sequence_complete_id to
	EAddressbookModel and stop_state_changed to
	EAddressbookModelClass.  also, add prototype for
	e_addressbook_model_can_stop.

	* gui/widgets/e-addressbook-model.c (remove_book_view): disconnect
	from "sequence_complete", and set search_in_progress to FALSE.
	(sequence_complete): set search_in_progress to FALSE and emit
	"stop_state_changed."
	(e_addressbook_model_class_init): create the "stop_state_changed"
	signal.
	(e_addressbook_model_init): init stuff.
	(book_view_loaded): connect to "sequence_complete" signal.
	(book_view_loaded): set search_in_progress to TRUE and emit
	"stop_state_changed"
	(e_addressbook_model_stop): set search_in_progress to false, emit
	"stop_state_changed", and set our status to "Search Interrupted."
	(e_addressbook_model_can_stop): return search_in_progress.

	* gui/widgets/e-addressbook-view.c (e_addressbook_view_init):
	connect to the stop_state_changed signal on EAddressbookModel.
	(stop_state_changed): new function.
	(e_addressbook_view_can_stop): call e_addressbook_model_can_stop.

	* gui/component/addressbook.c (update_command_state): use
	e_addressbook_view_can_stop to set the sensitivity of the stop
	button.

svn path=/trunk/; revision=9940
2001-05-23 09:19:07 +00:00
1b425f45ab track the change in evolution-addressbook.xml's bonobo ui path's.
2001-05-22  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c: track the change in
	evolution-addressbook.xml's bonobo ui path's.

svn path=/trunk/; revision=9921
2001-05-22 11:08:49 +00:00
90d1371457 update_view_type is gone, since the menu item is gone.
2001-05-21  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c (change_view_type): update_view_type
	is gone, since the menu item is gone.

	* gui/widgets/e-addressbook-table-adapter.c (create_card): use
	e_table_model_rows_inserted here.

svn path=/trunk/; revision=9914
2001-05-21 23:52:06 +00:00
794615c90e Removed an unused variable.
2001-05-20  Christopher James Lahey  <clahey@ximian.com>

        * gui/component/addressbook-config.c
        (addressbook_source_item_new): Removed an unused variable.

        * gui/component/select-names/e-select-names-bonobo.c
        (entry_get_property_fn): Made text here non-const.

        * gui/component/select-names/e-select-names-popup.c
        (edit_contact_info_cb): Cast to a gpointer here.

        * gui/component/select-names/e-select-names.c
        (e_addressbook_create_ebook_table): Cast to E_TABLE_MODEL here.

svn path=/trunk/; revision=9902
2001-05-21 01:18:52 +00:00
d4a2e9f382 Do a better job constructing match strings, so we never try to use a
2001-05-18  Jon Trowbridge  <trow@ximian.com>

	* gui/component/select-names/e-select-names-completion.c
	(match_name): Do a better job constructing match strings, so we
	never try to use a segment of the name that isn't there (resulting
	in ugly (null)'s in the string).  Boost our score if some part of
	the name also matches the front part of the e-mail address, so the
	name match will always trump the e-mail match.

svn path=/trunk/; revision=9882
2001-05-18 17:09:31 +00:00
3ca3f79dbe Return the serialized EDestinations (rather than just a string w/ e-mail
2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * gui/component/select-names/e-select-names-bonobo.c
        (entry_get_property_fn): Return the serialized EDestinations
        (rather than just a string w/ e-mail addresses) through the bonobo
        component's property bag.

        * gui/component/select-names/e-select-names-model.c
        (e_select_names_model_export_destinationv): Added.  A convenience routine
        for serializing the model's EDestinations into a string.

        * gui/component/select-names/e-select-names-popup.c
        (add_html_mail): Added.  Puts in a check menu item for whether or
        not the recipient wants HTML mail.
        (popup_menu_card): Add menu item for HTML mail.  Enable edit
        contact info item.
        (popup_menu_nocard): Add menu item for HTML mail.  Enable edit
        contact info item.

        * backend/ebook/e-book-util.c (e_book_use_local_address_book):
        Added.  Fetches the local addressbook and caches it on the first
        call.  This is meant to be an easy and efficient way to get at the
        local addressbook with the minimum of code.
        (e_book_query_address_locally): Added.  Convenience code that
        does an e-mail only e_book_name_and_email_query against the
        local address book.

        * backend/ebook/e-destination.c
        (e_destination_set_html_mail_pref): Added.  Allows the intended
        recipient's HTML mail preference to be manipulated.
        (e_destination_get_email_verbose): Added.  Cleaned up to use
        e_destination_get_name.
        (e_destination_get_html_mail_pref): Added.  Read the recipient's HTML mail
        preference.  If the destination is linked to a card, the
        preference is taken from the card (unless it has been explicitly
        overridden by a called to e_destination_set_html_mail_pref).
        (e_destination_get_address_textv): Added.  Form a unified address string
        from a NULL-terminated vector of EDestinations.
        (e_destination_export): Added.  Serialize an EDestination to a string.
        (e_destination_import): Added.  Unserialize a string to build an
        EDestination.
        (e_destination_exportv): Added.  Serialize a NULL-terminated vector of
        EDestinations to a string.
        (e_destination_importv): Added.  Unserialize a string to build a
        NULL-terminated vector of EDestinations.

        * gui/component/select-names/e-select-names-completion.c:
        Implemented local versions of g_strcasecmp and g_strncasecmp
        (which should really be in glib, I think...) for utf8, and used
        them to make this code utf8-safe.

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
        now required by the composer.)

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients): Properly unserialize the
        string returned by the "text" property of the bonobo control,
        convert it into EDestinations, and use them to get the e-mail
        addresses of our recipients.

22001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (SUBDIRS): Changed build order.  Now addressbook
        gets built before mail.

svn path=/trunk/; revision=9878
2001-05-18 07:10:04 +00:00
fce0233ba9 no more ContactFind command.
2001-05-17  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c (update_command_state): no more
	ContactFind command.

svn path=/trunk/; revision=9876
2001-05-17 23:42:30 +00:00
bb0671f820 add our selection_change signal. (e_minicard_view_widget_realize): connect
2001-05-17  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_class_init): add our selection_change
	signal.
	(e_minicard_view_widget_realize): connect to the ESelectionModel's
	selection_changed signal.
	(e_minicard_view_widget_selected_count): new function.
	(selection_change): new function - emit our "selection_change"
	signal.

	* gui/widgets/e-minicard-view-widget.h (struct
	_EMinicardViewWidgetClass): add selection_change signal.  also,
	add prototype for e_minicard_view_widget_selected_count.  *
	gui/widgets/e-addressbook-view.c

	(e_addressbook_view_class_init): add our command_state_change
	signal.
	(e_addressbook_view_init): connect to the writable_status signal
	on the EAddressbookModel.
	(minicard_selection_change): new function - calls
	command_state_change.
	(create_minicard_view): connect to selection_change on the
	minicard_view so we know when to update command state.
	(table_selection_change): new function - calls
	command_state_change.
	(writable_status): new function - calls command_state_change.
	(command_state_change): new function - emits our
	"command_state_change" signal.
	(create_table_view): connect to the selection_change signal so we
	know to update the command state.
	(change_view_type): update the command state every time we change
	view types.
	(e_addressbook_view_can_create): new function.
	(e_addressbook_view_can_print): new function.
	(e_addressbook_view_can_delete): new function.
	(e_addressbook_view_can_stop): new function.

	* gui/widgets/e-addressbook-view.h (struct
	_EAddressbookViewClass): add command_state_change signal, and
	prototypes of functions the component can use to test the state of
	commands.

	* gui/widgets/e-addressbook-model.c (addressbook_destroy): unlink
	the writable_status signal on the EBook.
	(writable_status): new function.
	(e_addressbook_model_class_init): add our writable_status signal.
	(e_addressbook_model_init): init writable_status_id.
	(e_addressbook_model_set_arg): unlink the writable_status signal
	on the old EBook, and connect it on the new one.

	* gui/widgets/e-addressbook-model.h: add writable_status signal.

	* gui/component/addressbook.c (update_command_state): new
	function, set the sensitivity of the bonobo commands.
	(control_activate): update our command state immediately upon
	activating the control.
	(addressbook_factory_new_control): register command_state_change
	to update the commands.

svn path=/trunk/; revision=9874
2001-05-17 23:30:57 +00:00
8743d8c293 initialize the model and adapter. (button_press): set on the model.
2001-05-15  Chris Toshok  <toshok@ximian.com>

	* gui/search/e-addressbook-search-dialog.c
	(e_addressbook_search_dialog_init): initialize the model and
	adapter.
	(button_press): set on the model.
	(e_addressbook_search_dialog_new): same.
	(e_addressbook_search_dialog_set_arg): same.
	(e_addressbook_search_dialog_destroy): unref the model and
	adapter.

	* gui/search/e-addressbook-search-dialog.h (struct
	_EAddressbookSearchDialog): add our model and reflow adapter.

svn path=/trunk/; revision=9840
2001-05-16 06:05:29 +00:00
2e3a3d226c Fixed up the lifetime of the drag_data_get signal a bit.
2001-05-16  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-minicard-view.c: (e_minicard_view_destroy): Fixed
	up the lifetime of the drag_data_get signal a bit.

svn path=/trunk/; revision=9838
2001-05-16 05:50:20 +00:00
934524b95c MinicardViewModel -> ReflowAdapter name change. (get_card_list): same.
2001-05-15  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-view.c (add_to_list): MinicardViewModel
	-> ReflowAdapter name change.
	(get_card_list): same.
	(e_minicard_view_drag_begin): same.
	(supported_fields_cb): model -> adapter.
	(adapter_changed): hook up signals and set the empty message on
	our adapter.
	(e_minicard_view_set_arg): add support for "adapter", and set
	model -> adapter.
	(e_minicard_view_get_arg): same.
	(disconnect_signals): no more status_message.
	(do_remove): track to use adapter.
	(e_minicard_view_class_init): add adapter arg, and remove
	status_message.
	(e_minicard_view_init): all the code here is in adapter_changed
	now.

	* gui/widgets/e-minicard-view.h (struct _EMinicardView):
	EMinicardViewModel -> EAddressbookReflowAdapter.
	(struct _EMinicardViewClass): get rid of status_message.

	* gui/widgets/e-minicard-view-widget.c
	(e_minicard_view_widget_class_init): remove the status_message
	signal.
	(e_minicard_view_widget_new): take the adapter as our argument,
	and store it away for when we create the view.
	(e_minicard_view_widget_realize): when we create the view just set
	the adapter field on it.  also, don't connect to status_message.

	* gui/widgets/e-minicard-view-widget.h (struct
	_EMinicardViewWidget): add our adapter here, so we can pass it
	into the view when we create it.
	(struct _EMinicardViewWidgetClass): remove status_message.

	* gui/widgets/e-addressbook-view.c (status_message): new function,
	no more propagating status messages!
	(e_addressbook_view_init): create our model and conenct to its
	status_message signal.
	(book_writable_cb): set "editable" on the model, not our object.
	(e_addressbook_view_set_arg): same, but with "book" and "query" as
	well.
	(create_minicard_view): create our reflow adapter and pass it to
	the minicard view widget.  also, call e_reflow_model_changed so
	it'll pick up any already present cards.
	(table_double_click): ADDRESSBOOK_MODEL -> TABLE_ADAPTER.
	(get_card_list_1): remove the cast, since we don't need it any
	longer.
	(table_right_click): ADDRESSBOOK_MODEL -> TABLE_ADAPTER.
	(table_drag_data_get): same.
	(create_table_view): create the table adapter, and use it as our
	ETableModel.
	(change_view_type): remove the status_message hook up and setting
	of query/book/editable.
	(e_addressbook_view_stop): just call e_addressbook_model_stop here
	instead of switching on the view type.

	* gui/widgets/e-addressbook-view.h (struct _EAddressbookView): add
	our EAddressbookModel.

	* gui/widgets/Makefile.am (libeminicard_a_SOURCES): add the
	adapter files, and remove e-minicard-view-model.[ch].

	* gui/widgets/e-minicard-view-model.[ch]: removed.

	* gui/widgets/e-addressbook-table-adapter.c: new file.

	* gui/widgets/e-addressbook-table-adapter.h: new file.

	* gui/widgets/e-addressbook-reflow-adapter.c: new file.

	* gui/widgets/e-addressbook-reflow-adapter.h: new file.

	* gui/widgets/e-addressbook-model.c: rework this class to now
	subclass from ETableModel anymore.  It not subclasses from
	GtkObject, and we use table and reflow adapters to get at the
	data.

	* gui/widgets/e-addressbook-model.h: same.

svn path=/trunk/; revision=9837
2001-05-16 05:17:09 +00:00
6d07e07910 Fix a small error not decreasing the data_count here.
2001-05-14  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-minicard-view-model.c (remove_card): Fix a small
	error not decreasing the data_count here.

svn path=/trunk/; revision=9810
2001-05-15 03:57:37 +00:00
9953071e22 add prototype for addressbook_expand_uri.
2001-05-13  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.h: add prototype for
	addressbook_expand_uri.

	* gui/component/addressbook-component.c
	(destination_folder_handle_drop): create an EBook for
	@physical_uri.
	(dnd_drop_book_open_cb): actually add the dropped cards.

	* gui/component/addressbook.c (addressbook_expand_uri): abstract
	this code out from the set_prop method so we can use it in the
	component.
	(set_prop): call addressbook_expand_uri.

	* backend/ebook/e-card.c (e_card_load_cards_from_string): new
	function.

	* backend/ebook/e-card.h: add prototype for
	e_card_load_cards_from_string.

svn path=/trunk/; revision=9788
2001-05-14 00:46:29 +00:00
206210499b spew the data passed to us. (destination_folder_handle_motion): the
2001-05-12  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook-component.c
	(destination_folder_handle_drop): spew the data passed to us.
	(destination_folder_handle_motion): the suggested_action is not an
	ActionSet, but an Action, so don't or together multiple actions.

svn path=/trunk/; revision=9781
2001-05-12 08:29:46 +00:00
9f45bb787b correct bug causing the Ok button to never be enabled.
2001-05-11  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook-config.c (addressbook_source_dialog):
	correct bug causing the Ok button to never be enabled.

svn path=/trunk/; revision=9779
2001-05-12 04:39:10 +00:00
19f8760e0d example.
2001-05-11  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook-component.c (populate_context_menu):
	example.

svn path=/trunk/; revision=9776
2001-05-11 23:00:56 +00:00
95651fe828 use e_card_list_get_vcard to build up the data to send.
2001-05-11  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard-view.c (e_minicard_view_drag_data_get):
	use e_card_list_get_vcard to build up the data to send.
	(e_minicard_view_init): connect to the model's drag_begin signal.
	(e_minicard_view_drag_begin): gather the list of cards being
	dragged and call gtk_drag_begin.
	(add_to_list): new function.
	(get_card_list): same.
	(disconnect_signals): disconnect the drag_data_get signal.
	(e_minicard_view_init): connect to the drag_begin signal on our
	model.

	* gui/widgets/e-minicard-view.h (struct _EMinicardView): change
	drag_card to drag_list.

	* gui/widgets/e-minicard-view-model.c (minicard_drag_begin): new
	function, emit our drag_begin signal.
	(addressbook_incarnate): connect to the item's drag_begin signal.
	(e_minicard_view_model_class_init): init our drag_begin signal.

	* gui/widgets/e-minicard-view-model.h: add drag_begin signal.

	* gui/component/addressbook-config.c (addressbook_source_dialog):
	always loop through all source types here, making LDAP first so
	it's forces as the first notebook item.
	(addressbook_config_auth_label): remove SASL case.
	(addressbook_source_edit_changed): same.
	(addressbook_source_item_new): flag the area of code that needs to
	go into the advanced dialog (if we add one before someone
	graciously redesigns the entire addressbook gui :)


	* gui/component/addressbook-storage.c (ldap_unparse_auth): remove
	SASL case.
	(ldap_parse_auth): same.

	* gui/component/addressbook-storage.h: make LDAP come first in our
	source type enumeration, and remove the SASL auth type.

svn path=/trunk/; revision=9774
2001-05-11 21:03:42 +00:00
a8b6f2be95 Reordered the includes here. (string_to_dbt): The sleepycat libdb
2001-05-11  Christopher James Lahey  <clahey@ximian.com>

	* backend/pas/pas-backend-file.c: Reordered the includes here.
	(string_to_dbt): The sleepycat libdb documentation suggests
	memseting the DBT to 0 so we do that here.

	* gui/widgets/e-minicard-view-model.c (addressbook_height): Skip
	the E_CARD_SIMPLE_FIELD_FAMILY_NAME field.

	* gui/widgets/e-minicard.c (remodel): Skip the
	E_CARD_SIMPLE_FIELD_FAMILY_NAME field.

svn path=/trunk/; revision=9764
2001-05-11 19:20:27 +00:00
e6a4fcd9a2 don't leak the ECard or ECardSimple.
2001-05-11  Chris Toshok  <toshok@ximian.com>

	* contact-editor/e-contact-editor.c (enable_writable_fields):
	don't leak the ECard or ECardSimple.

svn path=/trunk/; revision=9757
2001-05-11 11:33:51 +00:00
3c0c62e295 Removed e-card-pairs.h since we're not using it.
2001-05-08  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/Makefile.am (libebookinclude_HEADERS): Removed
	e-card-pairs.h since we're not using it.

	* backend/ebook/e-book-view.c (e_book_view_check_listener_queue):
	Added break; to default: case here.

	* backend/ebook/e-card-simple.c, backend/ebook/e-card-simple.h:
	Added changed variable so as to avoid sync_card when possible.
	(e_card_simple_destroy): Free all the data here properly.
	(e_card_simple_get_arg): Slight simplification here.
	(fill_in_info, e_card_simple_arbitrary_foreach,
	e_card_simple_get_arbitrary): Call e_card_free_empty_lists here to
	save a bit of memory.

	* backend/ebook/e-card.c, backend/ebook/e-card.h: Fixed up
	includes a bit.
	(e_card_list_get_vcard, e_card_list_send): Added these functions
	for acting on a group of cards.
	(parse_org): Cleaned up this function a bit.
	(e_card_free_empty_lists): Added this function to delete
	unnecessary ELists and save a bit of memory.
	(e_v_object_get_child_value): Made this return NULL if not found
	instead of g_strdup("").

	* contact-editor/e-contact-save-as.c,
	contact-editor/e-contact-save-as.h (e_contact_list_save_as): Added
	this function to save multiple contacts.

	* gui/widgets/Makefile.am: Commented out reflow test.
	(libeminicard_a_SOURCES): Added e-minicard-view-model.c and
	e-minicard-view-model.h.

	* gui/widgets/e-minicard-view-model.c,
	gui/widgets/e-minicard-view-model.h: Model for use in
	EMinicardView.

	* gui/widgets/e-minicard-view.c, gui/widgets/e-minicard-view.h:
	Reworked this to use the new EReflow stuff.

	* gui/widgets/e-minicard.c (e_minicard_event): Doesn't handle
	right click menus now.  Emits a signal on the parent canvas item
	instead.

	* printing/e-contact-print-envelope.c,
	printing/e-contact-print-envelope.h
	(e_contact_print_envelope_list_dialog_new): Added this function to
	print multiple envelopes (only prints first for now.)

	* printing/e-contact-print.c, printing/e-contact-print.h
	(e_contact_print_card_list_dialog_new): Added this function to
	print multiple cards.  Only prints the first for now.

svn path=/trunk/; revision=9711
2001-05-08 04:58:41 +00:00
0f0089d684 flesh out the function more. It should work now, but there's no way to
2001-05-07  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook-component.c (remove_folder): flesh out
	the function more.  It should work now, but there's no way to
	invoke this method from the ui at the moment, heh.

svn path=/trunk/; revision=9704
2001-05-07 22:26:19 +00:00
37341be278 Use a different error message in the ldap support/no ldap support/file
2001-05-07  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook.c (book_open_cb): Use a different
	error message in the ldap support/no ldap support/file cases.

svn path=/trunk/; revision=9700
2001-05-07 21:13:09 +00:00
a703c61b47 use define from widgets/misc/e-filter-bar.h instead of own enumeration and
2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* gui/component/addressbook.c: use define from
	widgets/misc/e-filter-bar.h instead of own enumeration and search menu
	names.

	* gui/component/Makefile.am, gui/component/select-names/Makefile.am:
	removed EVOLUTION_VERSION.

2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* gui/event-editor.c (make_title_from_comp): conversion summary
	from utf8 here, use translated strings as is.
	(set_title_from_comp): reflect this, simplify.

	* gui/dialogs/task-editor.c: updated copies of above functions here.

	* gui/gnome-cal.c: use defines from widgets/misc/e-filter-bar.h for
	consistency in "Show all".

svn path=/trunk/; revision=9693
2001-05-07 17:33:31 +00:00
cc3e691c50 un-#if 0 this. (xfer_folder): add skeleton code to validate xfer request.
2001-05-04  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook-component.c (remove_folder): un-#if 0
	this.
	(xfer_folder): add skeleton code to validate xfer request.  always
	notifies with PERMISSION_DENIED at present.
	(populate_context_menu): un-#if 0 this.
	(get_dnd_selection): same.
	(destination_folder_handle_motion): new function.
	(destination_folder_handle_drop): new function.
	(factory_fn): create a EvolutionShellComponentDndDestinationFolder
	interface, and add it to our shell component.

svn path=/trunk/; revision=9679
2001-05-04 22:32:47 +00:00
80e3acea85 unref the book if the view is being destroyed
2001-05-02  JP Rosevear  <jpr@ximian.com>

	* gui/component/addressbook.c (addressbook_view_free): unref the
	book if the view is being destroyed

	* backend/pas/pas-backend-file.c
	(pas_backend_file_process_get_book_view): unref the book_view when
	we are finished, it is only interesting if someone else has reffed
	it now (weak reference)
	(pas_backend_file_add_client): unref the book for the same reason
	as above

svn path=/trunk/; revision=9647
2001-05-02 19:09:47 +00:00
42b257dc31 Remove call to unicode_init.
* gui/component/addressbook-factory.c (main): Remove call to
	unicode_init.

svn path=/trunk/; revision=9566
2001-04-25 21:17:01 +00:00
038d1a932c Removed attempts to use Radek's evil <DATA> hacks, which were just causing
2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * e-html-utils.c (e_text_to_html_full): Removed attempts to use
        Radek's evil <DATA> hacks, which were just causing me
        (and GtkHTML) grief.

2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * gui/component/e-address-popup.c: Lots of code has been
        simplified here.
        (e_address_popup_factory_new_control): Rather than directly pop
        our control up in a window (via the e_address_popup_popup
        function, which is now gone), just return the widget and let the
        caller do the popping.  This works better, since it means we don't
        have to work around the vagaries of bonobo focus & event handling.
        (e_address_popup_set_name): Refresh when both name & email have
        been set, rather than checking a stupid counter.
        (e_address_popup_set_email): Ditto.

2001-04-23  Jon Trowbridge  <trow@ximian.com>

        * mail-display.c (html_button_press_event): Check for mailto:
        links, and pop up our mail address menu when we find one.
        (make_popup_window): The main piece of code (ignoring a zillion
        little callbacks) to pop up our windows with reasonable semantics
        for having them close automatically.
        (mail_text_write): Enable converting addresses to mailto links
        in message bodies.

        * mail-format.c (write_address): Simplify code, removing Radek's
        <DATA> hacks.  Write out addresses as mailto: links.

svn path=/trunk/; revision=9534
2001-04-24 02:51:45 +00:00
061990182b Added save_source_data here.
2001-04-22  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/addressbook-storage.c
	(addressbook_storage_clear_sources): Added save_source_data here.

svn path=/trunk/; revision=9493
2001-04-22 07:32:41 +00:00
247a808a5b Properly convert to utf8. (Bug #2256) (build_quick_add_dialog): Properly
2001-04-21  Jon Trowbridge  <trow@ximian.com>

        * contact-editor/e-contact-quick-add.c (clicked_cb): Properly
        convert to utf8. (Bug #2256)
        (build_quick_add_dialog): Properly convert from utf8. (Bug #2256)

svn path=/trunk/; revision=9485
2001-04-21 19:00:23 +00:00
a35d86361d Added.
2001-04-16  Jon Trowbridge  <trow@ximian.com>

        * backend/ebook/e-destination.c (e_destination_get_name): Added.

        * gui/component/select-names/e-select-names.c
        (real_add_address_cb): Use e_select_names_model_append.  It's
        nicer.

        * gui/component/select-names/e-select-names-model.c
        (e_select_names_model_append): Added.

        * gui/component/select-names/e-select-names-completion.c
        (book_query_process_card_list): Filter out completion matches that
        don't have an associated e-mail address.
        (book_query_score): Give a bonus to the primary address, so that
        it always comes up first in the completion results.

        * gui/component/e-address-popup.c (e_address_popup_refresh_names):
        Convert utf8 strings into gtk strings before displaying.

svn path=/trunk/; revision=9390
2001-04-16 20:28:13 +00:00
04fac44de1 Do this everywhere, also fixup CLEANFILES
Do this everywhere, also fixup CLEANFILES

2001-04-14  Michael Meeks  <michael@ximian.com>

	* Makefile.am (dist-hook): remove built sources from dist.

svn path=/trunk/; revision=9309
2001-04-14 08:02:59 +00:00
045c3ffbea Get the ESelectNamesModel from the widget's text model instead of storing
2001-04-13  Christopher James Lahey  <clahey@ximian.com>

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_get_property_fn): Get the ESelectNamesModel from the
	widget's text model instead of storing it as a gtk_object_set_data
	since it may change.

svn path=/trunk/; revision=9299
2001-04-13 13:01:25 +00:00
9b8230a24c Added E_CARD_SIMPLE_FIELD_LAST_SIMPLE_STRING.
2001-04-11  Christopher James Lahey  <clahey@ximian.com>

	* backend/ebook/e-card-simple.h: Added
	E_CARD_SIMPLE_FIELD_LAST_SIMPLE_STRING.

	* gui/component/addressbook-component.c (accepted_dnd_types):
	Fixed a warning here.

	* gui/widgets/e-addressbook-model.c: Modified this to have more
	columns, but not let them be edited if they're not a simple
	string.

	* gui/widgets/e-minicard-view.c (e_minicard_view_init): Fixed a
	warning and a memory leak here.

svn path=/trunk/; revision=9230
2001-04-11 07:50:57 +00:00
1991d205da i18n fixes, added missing includes.
2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* AUTHORS: /me is a translator.
	* configure.in (EVO_CHECK_LIB): fail with AC_MSG_ERROR, not echo &&
	exit 1.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* backend/ebook/evolution-gnomecard-importer.c: added missing #include.
	* contact-editor/e-contact-editor.c (_arrow_pressed): popup menu items were
	not translated after selecting one of them.
	* gui/widgets/e-addressbook-view.c: mark popup menu items with N_().
	Updated list[] for translators.
	* gui/widgets/e-minicard.c: same.
	* gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_set_arg): fix warning
	for "editable" arg.
	* gui/widgets/e-minicard-view.c: convert "empty_message" to utf8.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* widgets/e-summary-subwindow.c: added some missing includes.
	* widgets/e-summary-title-button.h: same.

2001-04-10  Gediminas Paulauskas <menesis@delfi.lt>

	* menus/gal-view-menus.c: convert label to utf8.

svn path=/trunk/; revision=9215
2001-04-10 21:28:40 +00:00
bdb627f243 stubbed, #if 0'ed (xfer_folder): same. (populate_context_menu): same.
2001-04-09  Chris Toshok  <toshok@ximian.com>

	* gui/component/addressbook-component.c (remove_folder): stubbed,
	#if 0'ed
	(xfer_folder): same.
	(populate_context_menu): same.
	(get_dnd_selection): same.
	(factory_fn): add the accepted drag types ("text/x-vard") to
	folder_types.

svn path=/trunk/; revision=9210
2001-04-10 02:40:48 +00:00
fc3440ee9c on BUTTON_PRESS: if it's button 1, store the button x, y, and set
2001-04-09  Chris Toshok  <toshok@ximian.com>

	* gui/widgets/e-minicard.c (e_minicard_event): on BUTTON_PRESS: if
	it's button 1, store the button x, y, and set drag_button_down to
	TRUE.  on BUTTON_RELEASE: always set drag_button_down to FALSE.
	for MOTION_NOTIFY: initiate drag if the pointer has moved 3
	pixels.

	* gui/widgets/e-minicard.h (struct _EMinicard): add fields for
	button x, y, and a bit for if the button has been pressed so we
	can tell whether a motion should be a drag.
	(struct _EMinicardClass): add drag_begin signal.

	* gui/widgets/e-minicard-view.c (e_minicard_view_drag_begin): new
	function, starts the drag.
	(book_view_loaded): connect the "drag_data_get" signal.
	(e_minicard_view_drag_data_get): new function.

	* gui/widgets/e-minicard-view.h (struct _EMinicardView): add
	drag_card and id for canvas_drag_data_get_id.

	* gui/widgets/e-addressbook-view.c (table_drag_data_get): new
	function.
	(create_table_view): add d&d stuff.

svn path=/trunk/; revision=9209
2001-04-10 02:14:08 +00:00
f66390af64 Here goes my additional simple include fixes.
svn path=/trunk/; revision=9191
2001-04-05 00:39:19 +00:00
c105fef6b3 Fix headers. Same here. Same here. Same here. Same here. Same here. Same
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* contact-editor/e-contact-editor.[ch]: Fix headers.
	* component/addressbook-storage.c: Same here.
	* gui/search/e-addressbook-search-dialog.c: Same here.
	* gui/widgets/e-addressbook-view.c: Same here.
	* gui/widgets/e-minicard-label.c: Same here.
	* gui/widgets/e-minicard-view-widget.c: Same here.
	* gui/widgets/e-minicard-view.c: Same here.
	* gui/widgets/e-minicard-widget-test.c: Same here.
	* gui/widgets/e-minicard-widget.c: Same here.
	* gui/widgets/e-minicard.c: Same here.
	* gui/widgets/test-minicard-label.c: Same here.

svn path=/trunk/; revision=9179
2001-04-04 20:36:23 +00:00
8f5053c753 Fixed a crash here.
2001-04-03  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-addressbook-view.c (table_double_click): Fixed a
	crash here.

svn path=/trunk/; revision=9162
2001-04-04 02:43:56 +00:00
f92d62bc53 Removed junk images
svn path=/trunk/; revision=9150
2001-04-03 22:08:38 +00:00
0cebe028cb Made this table model more consistent in the number of columns it has.
2001-04-03  Christopher James Lahey  <clahey@ximian.com>

	* gui/widgets/e-addressbook-model.c (COLS): Made this table model
	more consistent in the number of columns it has.
	(addressbook_append_row): Fixed this function.  We removed the col
	offset.

svn path=/trunk/; revision=9129
2001-04-03 14:50:38 +00:00