Commit Graph

2021 Commits

Author SHA1 Message Date
0b889518d2 Automatic check for oaf. Thanks ettore, you rule!
svn path=/trunk/; revision=2715
2000-05-01 17:48:01 +00:00
88c3bbaecb fix a typo in the for loop.
2000-05-01  Larry Ewing  <lewing@helixcode.com>

	* backend/pas/pas-backend-ldap.c (pas_backend_ldap_remove_client):
	fix a typo in the for loop.

svn path=/trunk/; revision=2714
2000-05-01 17:08:23 +00:00
1ac03d4e77 Updated russian translation.
svn path=/trunk/; revision=2713
2000-05-01 15:59:00 +00:00
1e8e80293c new function to get the currently seleted time range form the current
2000-05-01  Damon Chaplin  <damon@helixcode.com>

        * gui/gnome-cal.[hc] (gnome_calendar_get_current_time_range): new
        function to get the currently seleted time range form the current view.

        * gui/calendar-commands.c (display_objedit): use the above function
        to get the time for the new appointment.

        * gui/e-week-view.c:
        * gui/e-day-view.c: use a shallow copy of the ico when we update the
        times (when resizing/dragging). Otherwise we won't detect that the
        time has changed in the "update_event" callback.

        Also added functions to get the currently selected time range.

svn path=/trunk/; revision=2712
2000-05-01 15:55:27 +00:00
42f7062a9b include a header to make it compile...
svn path=/trunk/; revision=2711
2000-05-01 13:59:25 +00:00
39f5d7e661 Doh, also unref the pas_book_factory when we are done.
2000-05-01  Federico Mena Quintero  <federico@helixcode.com>

	* wombat.c (main): Doh, also unref the pas_book_factory when we
	are done.

svn path=/trunk/; revision=2710
2000-05-01 11:57:53 +00:00
d4fcab3e7b Removed stale comment - Federico
svn path=/trunk/; revision=2709
2000-05-01 11:48:51 +00:00
54534fbe36 Stylistic fix - Federico
svn path=/trunk/; revision=2707
2000-05-01 04:34:35 +00:00
c94793983e Connect to the "last_book_gone" signal of the book factory.
2000-04-30  Federico Mena Quintero  <federico@helixcode.com>

	* wombat.c (setup_pas): Connect to the "last_book_gone" signal of
	the book factory.
	(last_book_gone_cb): Handle the "last_book_gone" signal.
	(termination_handler): Check if the book factory has zero running
	backends.

svn path=/trunk/; revision=2706
2000-05-01 04:22:17 +00:00
d936a5c38a Added new status values for the IDL stuff.
2000-04-30  Federico Mena Quintero  <federico@helixcode.com>

	* backend/ebook/e-book-types.h (EBookStatus): Added new status
	values for the IDL stuff.

	* backend/pas/pas-book-factory.h (PASBookFactoryClass): New
	"last_book_gone" signal.

	* backend/pas/pas-book-factory.c
	(pas_book_factory_launch_backend): Better error handling.
	(pas_book_factory_process_queue): Let
	pas_book_factory_process_request() free the request.
	(pas_book_factory_process_request): Free the request here.
	Perform better error handling.
	(free_active_server_map_entry): Free an active server map entry;
	free the URI key and unref the backend value.  This function was
	renamed; the old one was trying to CORBA_Object_unref() a GTK+
	object!
	(remove_backends_entry): Free a backend table entry; free the URI
	key.
	(backend_last_client_gone_cb): Remove the backend from the active
	server map and emit the "last_book_gone" signal if appropriate.
	(pas_book_factory_get_n_backends): New function to query the
	number of running backends in an addressbook factory.

	* backend/idl/addressbook.idl (BookListener::CallStatus): Added a
	ProtocolNotSupported code.  This is for when the addressbook
	factory cannot find a provider for the requested URI.

	* backend/pas/pas-backend.h (PASBackendClass): New
	"last_client_gone" signal.
	(PASBackendClass): New get_uri virtual method.

	* backend/pas/pas-backend.c (pas_backend_load_uri): Return a
	gboolean success code.
	(pas_backend_add_client): Return a gboolean success code.
	(pas_backend_last_client_gone): New function used by backend
	implementations to notify upwards when the backend's last client
	is destroyed.
	(pas_backend_get_uri): New function to get the URI of a backend.

	* backend/pas/pas-backend-file.c (pas_backend_file_add_client):
	Pass the backend as the closure data to the "destroy" handler of
	the book.  We cannot call pas_book_get_backend() in the callback
	since the book's private data has already been destroyed when the
	callback is invoked.  Alternatively, we could move the private
	data destruction step to the book's ::finalize() method.
	(pas_backend_file_book_destroy_cb): Get the backend from the
	callback's data, not from the book.
	(pas_backend_file_remove_client): Remove the book from the list of
	clients.  When all clients go away, call
	pas_backend_last_client_gone().
	(PASBackendFilePrivate): Added an uri field.
	(pas_backend_file_get_uri): Implement the get_uri method.
	(pas_backend_file_load_uri): Return a gboolean success code.
	Also, store the URI in the private structure.
	(pas_backend_file_add_client): Return a gboolean success code.
	Also, call pas_backend_last_client_gone() if appropriate.
	(pas_backend_file_destroy): Free the bf->priv->uri.

	* backend/pas/pas-backend-ldap.c (pas_backend_ldap_add_client):
	Pass the backend as the closure data to the "destroy" handler of
	the book.  See above for rationale.
	(pas_backend_ldap_book_destroy_cb): Get the backend from the
	callback's data.
	(pas_backend_ldap_remove_client): Remove the book from the list of
	clients.  When all clients go away, call
	pas_backend_last_client_gone().
	(pas_backend_ldap_load_uri): Return a gboolean success code.
	(pas_backend_ldap_add_client): Return a gboolean success code.
	Also, call pas_backend_last_client_gone() if appropriate.
	(PASBackendLDAPPrivate): New uri field.
	(pas_backend_ldap_get_uri): Implement the get_uri method.
	(pas_backend_ldap_load_uri): Store the uri in the private
	structure.
	(pas_backend_ldap_destroy): Free the bl->priv->uri.

svn path=/trunk/; revision=2705
2000-05-01 04:19:47 +00:00
eb5dc08dc9 Made this more reentrant.
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-header-item.c: Made this more reentrant.

	* e-table-sorted-variable.c, e-table-sorted-variable.h: Does a
	proper resort when the sorting info changes.

	* e-table.c, e-table.h: Made it so that ETable doesn't destroy and
	recreate the entire table when sorting info changes.

svn path=/trunk/; revision=2704
2000-05-01 04:01:05 +00:00
64fbed6351 *** empty log message ***
svn path=/trunk/; revision=2703
2000-05-01 02:38:41 +00:00
d256a1683d set attendee and contact address correctly.
* pcs/icalendar-save.c (icalcomponent_create_from_ical_object): set
	attendee and contact address correctly.

	* pcs/cal-backend.c (icalendar_calendar_load): init priv->object_hash
	when loading.
	(cal_get_type_from_filename): if file extension is .ical, consider
	the file an ical file.

svn path=/trunk/; revision=2702
2000-05-01 02:38:32 +00:00
c4f6855ceb new function to see if the event dates have changed (including any
2000-05-01  Damon Chaplin  <damon@helixcode.com>

        * cal-util/calobj.c (ical_object_compare_dates): new function to see
        if the event dates have changed (including any recurrence rules).
        It is used for optimization when we get the "object_changed" signal.
        We have to do far less work if the dates are unchanged.

        * gui/e-week-view.c:
        * gui/e-day-view.c: only draw the selection when we have the keyboard
        focus, since the user expects to be able to type in a new event when
        the selection is shown. Also keep the selection when we lose focus,
        but just don't show it.

        Also quite a few changes to cope with the new client/server
        architecture.

        * gui/e-day-view-top-item.c (e_day_view_top_item_draw):
        * gui/e-day-view-main-item.c (e_day_view_main_item_draw):
        * gui/e-week-view-main-item.c (e_week_view_main_item_draw_day):
        only draw the selection if the widget has the keyboard focus.

        * gui/gnome-cal.c (mark_gtk_calendar_day): fixed so it works with
        events longer than one day. And changed the code for updating events
        in the new views.

svn path=/trunk/; revision=2701
2000-05-01 00:27:17 +00:00
165bf85c4d added e-ldap-server-dialog.c (glade_DATA): added ldap-server-dialog.glade
* gui/component/Makefile.am (evolution_addressbook_SOURCES): added
	e-ldap-server-dialog.c
	(glade_DATA): added ldap-server-dialog.glade

	* gui/component/ldap-server-dialog.glade: new file.

	* gui/component/e-ldap-server-dialog.h: new file.

	* gui/component/e-ldap-server-dialog.c: new file, contains logic
	associated with ldap server dialog.

	* gui/component/addressbook.c (control_deactivate): remove the
	directory server menu item.
	(null_cb): do nothing callback for e_book_load_uri call.  should
	change to (at the very least) pop up a dialog if there was an
	error.
	(new_server_cb): new function - really just switches to a
	particular ldap server, since the information isn't saved
	anywhere.
	(control_activate): add directory server menu item.

svn path=/trunk/; revision=2700
2000-05-01 00:23:53 +00:00
702ede3d4d create the book listener here, since it's destroyed in unload_uri.
* backend/ebook/e-book.c (e_book_load_uri): create the book
	listener here, since it's destroyed in unload_uri.
	(e_book_construct): remove the book listener construction here.

svn path=/trunk/; revision=2699
2000-05-01 00:14:39 +00:00
90dd8d4336 Added load-pine-addressbook.
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* backend/ebook/.cvsignore: Added load-pine-addressbook.

svn path=/trunk/; revision=2698
2000-04-30 17:18:01 +00:00
304073522b Made some fields invisible that were visible before.
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* contact-editor/contact-editor.glade,
	contact-editor/e-contact-editor.c, gui/minicard/e-minicard.c: Made
	some fields invisible that were visible before.

svn path=/trunk/; revision=2697
2000-04-30 17:16:11 +00:00
d87a10196c From addressbook/ChangeLog
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* backend/ebook/e-card.c: Make file as not have the : after it if
	it's empty.  If there's no name, or file_as, fill in these fields
	with defaults based on full_name or name respectively.

	* backend/ebook/load-pine-addressbook.c: New file to do import of
	pine .addressbook files.

	* backend/pas/pas-backend-file.c: Made empty fields act as the
	empty string for searches.

	* contact-editor/e-contact-editor.c,
	contact-editor/e-contact-editor.h: Made the File As field update
	properly as you edit the name and company fields.  Added the pull
	down list of File As choices.  Made sure that all fields will
	be set to NULL if they are deleted to the empty string.

	* gui/minicard/e-minicard.c: Use the File As field instead of the
	Full Name field for the header.  Make identical compares on the
	File As field do a compare on the uid.

From wombat/ChangeLog

2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added ename libs to LDADD.

svn path=/trunk/; revision=2696
2000-04-30 17:03:06 +00:00
edf876f544 oops. s/CAMEL_TRANSPORT_TYPE/CAMEL_PROVIDER_TRANSPORT/
svn path=/trunk/; revision=2695
2000-04-30 16:58:38 +00:00
e43958d242 update for camel provider changes.
svn path=/trunk/; revision=2694
2000-04-30 16:29:00 +00:00
f028bd6aeb Remove no-longer-necessary call to camel_provider_register_as_module.
* filter-driver.c (start): Remove no-longer-necessary call to
	camel_provider_register_as_module.

svn path=/trunk/; revision=2693
2000-04-30 16:12:46 +00:00
19a9f773ab This is no longer necessary.
* session.c (session_providers_init): This is no longer necessary.

	* mail-ops.c (fetch_mail): Remove kludge to load remote provider,
	as camel can do it by itself now.

svn path=/trunk/; revision=2692
2000-04-30 15:36:46 +00:00
0524f7c06a Tweak the definition of CamelProvider. Among other things, a provider may
* camel-provider.h: Tweak the definition of CamelProvider. Among
	other things, a provider may now be both a store and a transport.

	* camel-provider.c: Remove a lot of code we had no intention of
	using. This now only contains two functions: camel_provider_init
	to read the installed .urls files, and camel_provider_load to
	load and register a new provider.

	* camel-session.c: Remove more unused code and simplify some of
	the remaining code. The list of available provider modules is now
	stored in the session, and it handles calling camel_provider_load
	to load them as needed. Provider registration is now done by
	calling back from the module init routine, which allows a single
	module to register providers for multiple URL types.

	* providers/*: Update provider structures and init routines for
	the new stuff. Add a .urls file to each provider specifying what
	urls it handles, and install that with the library.

	* providers/nntp/camel-nntp-provider.c: Add hints towards
	supporting both news: and nntp: URLs, and using nntp as both a
	store and a transport.

svn path=/trunk/; revision=2691
2000-04-30 15:36:16 +00:00
3c358f3c18 Fixed a string mismatch.
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* contact-editor/e-contact-editor-fullname.c,
	contact-editor/fullname.glade: Fixed a string mismatch.

svn path=/trunk/; revision=2690
2000-04-30 14:43:51 +00:00
695a9d492e Added ename includes and libs.
2000-04-30  Christopher James Lahey  <clahey@helixcode.com>

	* backend/ebook/Makefile.am: Added ename includes and libs.

	* backend/ebook/e-card.c, backend/ebook/e-card.h: Added
	e_card_name_from_string.  Added header for
	e_card_delivery_address_from_string, even though it's not
	implemented yet.

	* contact-editor/Makefile.am: Removed the ename includes since we
	no longer use ename directly here.

	* contact-editor/e-contact-editor.c: Fixed this to properly save
	the address labels displayed.  Updated this to use the function
	e_card_name_from_string instead of doing it by hand.

	* contact-editor/fullname-strings.h,
	contact-editor/fullname.glade: Deleted an unused field.  Changed
	the set of prefixes and suffixes.

svn path=/trunk/; revision=2689
2000-04-30 14:37:55 +00:00
685a242493 add support for a rootdn in the uri.
* backend/pas/pas-backend-ldap.c
	(pas_backend_ldap_ensure_connected): add support for a rootdn in
	the uri.
	(pas_backend_ldap_build_all_cards_list): make use of the rootdn in
	the call to ldap_search_s.
	(pas_backend_ldap_search): same.
	(pas_backend_ldap_load_uri): get the rootdn out of the passed in uri.

svn path=/trunk/; revision=2688
2000-04-30 11:26:52 +00:00
39da899bbc Add \n
svn path=/trunk/; revision=2687
2000-04-30 10:39:38 +00:00
83fe140c2f Added Dutch translation
2000-04-30  Arjan Scherpenisse <acscherp@wins.uva.nl>

* nl.po: Added Dutch translation

svn path=/trunk/; revision=2686
2000-04-30 09:17:07 +00:00
d77a77c7e5 Handle clicks on "cid" URLs by popping up a "Save Attachment" dialog.
* mail-display.c (on_link_clicked): Handle clicks on "cid" URLs by
	popping up a "Save Attachment" dialog.

	* mail-format.c (get_cid): if the part has a Content-Disposition
	with a filename specified, record (a sanitized version of) that on
	the wrapper when creating the cid reference, so the "save
	attachment" code can use it later.
	(handle_mystery): fix a bug in the cid generation here.

svn path=/trunk/; revision=2685
2000-04-29 21:28:00 +00:00
6942830c98 Improve the builtin vs bonobo selection code. (handle_mystery): Include
* mail-format.c (lookup_handler, etc): Improve the builtin vs
	bonobo selection code.
	(handle_mystery): Include name and Content-Description in the
	"mystery data" info, when available
	(handle_unknown_type): Call mail_identify_mime_part before
	giving up.
	(handle_undisplayable): Split out of handle_unknown_type now
	that handle_unknown_type can try alternate viewers.
	(handle_via_bonobo): Fall back to handle_undisplayable if the
	bonobo control fails.

	* mail-identify.c (mail_identify_mime_part): New function to
	attempt to identify a MIME part that we can't identify based on
	Content-Type alone.

	* mail-display.c (on_url_requested): redo the mystery data icon
	display stuff less kludgily.

svn path=/trunk/; revision=2684
2000-04-29 19:17:46 +00:00
8d848e0e56 Added e_card_phone_new e_card_delivery_address_new,
2000-04-29  Christopher James Lahey  <clahey@helixcode.com>

	* backend/ebook/e-card.c, backend/ebook/e-card.h: Added
	e_card_phone_new e_card_delivery_address_new,
	e_card_delivery_address_to_string, e_card_name_copy,
	e_card_name_new, e_card_name_to_string, and made e_card_name_free
	public.  Removed some unused code.

	* backend/pas/pas-backend-file.c: Fixed a warning.

	* contact-editor/Makefile.am: Added e-contact-editor-fullname.[ch]
	and fullname.glade.  Added e-name libs and includes.

	* contact-editor/e-contact-editor-fullname.c,
	contact-editor/e-contact-editor-fullname.h,
	contact-editor/fullname-strings.h, contact-editor/fullname.glade:
	New dialog for editing the fields of a name separately.

	* contact-editor/e-contact-editor.c,
	contact-editor/e-contact-editor.h: Create an
	EContactEditorFullname when you click on the Full Name button.
	Maintain a parsed name at all times.

	* gui/component/Makefile.am, gui/minicard/Makefile.am: Added
	e-name libs.

svn path=/trunk/; revision=2683
2000-04-29 18:16:43 +00:00
9a5cce66b1 updated Danish strings
svn path=/trunk/; revision=2682
2000-04-29 18:02:54 +00:00
6eee4ba248 const poison
* camel-internet-address.c (camel_internet_address_get): const
	poison

svn path=/trunk/; revision=2681
2000-04-29 15:57:54 +00:00
18903e6b22 camel_mime_parser_tell() returns an offset from where it started parsing,
* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser):
	camel_mime_parser_tell() returns an offset from where it started
	parsing, not necessarily from the start of data. Since we're
	parsing a bounded seekable_stream, we need to add the stream's
	starting bound to camel_mime_parser_tell's return value to
	create the substream in the right place.

	* camel-seekable-substream.c
	(camel_seekable_substream_new_with_seekable_stream_and_bounds):
	say CAMEL_STREAM_UNBOUND rather than -1 in doc.

	* camel-seekable-stream.c (camel_seekable_stream_seek): Add more
	info to docs.

svn path=/trunk/; revision=2680
2000-04-29 15:57:11 +00:00
4e9fab3ba3 remove an unused #include
svn path=/trunk/; revision=2679
2000-04-29 15:53:37 +00:00
79970fcfc7 fix the `USING_OAF' changes so that they work for when we are not using
2000-04-28  Larry Ewing  <lewing@helixcode.com>

	* backend/pas/pas-book-factory.c (register_factory): fix the
	`USING_OAF' changes so that they work for when we are not using
	oaf.

svn path=/trunk/; revision=2678
2000-04-28 23:04:29 +00:00
22127dc16c update for Camel recipient changes. (Just to make it build, not to take
advantage of new features, or do things cleanly.)

svn path=/trunk/; revision=2677
2000-04-28 22:42:53 +00:00
e11f08d048 Fix broken OAF patch for the GNORBA case.
svn path=/trunk/; revision=2676
2000-04-28 22:21:06 +00:00
8283ee1835 fix a bug that would cause corruption with very long headers.
* camel-mime-parser.c (folder_scan_header): fix a bug that would
	cause corruption with very long headers.

svn path=/trunk/; revision=2675
2000-04-28 21:42:32 +00:00
9bc896ddb9 Makefile fix
svn path=/trunk/; revision=2674
2000-04-28 07:50:09 +00:00
9483369aa0 Made Evolution OAF-compatible.
svn path=/trunk/; revision=2673
2000-04-28 04:23:19 +00:00
02ed4a60f3 Fix for removal of camelmimebodypart, and changes to recipient stuff.
2000-04-27  NotZed  <NotZed@HelixCode.com>

        * tests/test10.c: Fix for removal of camelmimebodypart, and changes
        to recipient stuff.

        * tests/test1.c: Fix for removal of camelmimebodypart, and changes
        to recipient stuff.

svn path=/trunk/; revision=2672
2000-04-28 03:07:30 +00:00
19e9448267 Dont try and check a NULL header.
2000-04-27  NotZed  <NotZed@HelixCode.com>

        * camel-mime-utils.c (check_header): Dont try and check a NULL
        header.

        * camel-recipient.[ch]: Dead.  Its not pining.

        * camel-mime-message.h: Dont include recipients.h anymore.

        * camel-mime-message.c (camel_mime_message_add_recipient): Accept
        name/address separately, and store in an CamelInternetAddress.
        (add_recipient): Removed.
        (remove_recipient): Removed.
        (remove_recipient_address): Renamed from remove_receipient, works
        via address.
        (camel_mime_message_remove_recipient_name): New function to remove
        by name.
        (get_recipients): Removed.
        (camel_mime_message_get_recipients): Return a camel-internet-address.
        (write_to_stream): No longer write receipients directly.
        (write_recipients_to_stream): Removed.
        (write_one_recipient_to_stream): Removed.
        (camel_mime_message_init): Setup recipients hashtable, rather than
        usign the recipients stuff.
        (set_recipient_list_from_string): Killed, a violent and lengthy
        death.
        (process_header): Simplified recipient handling code a lot.
        (received_date_str, sent_date_str, reply_to_str, subject_str,
        from_str): Removed some oddly-defined global statics.
        (camel_mime_message_class_init): Dont initialise above variables
        anymore.
        (init_header_name_table): Removed, use a table to init this, and
        do it in class init (2 lines of code ...).

        * camel-news-address.c: Class to represent news addresses -
        currently empty, and not built.

        * camel-internet-address.h: Class to represent internet (email)
        addresses.

        * camel-address.h: Abstract class to represent (lists of)
        addresses.

svn path=/trunk/; revision=2671
2000-04-28 03:06:44 +00:00
e38db525f5 deleted some commented out code
svn path=/trunk/; revision=2670
2000-04-28 02:31:27 +00:00
20e01748b3 *** empty log message ***
svn path=/trunk/; revision=2669
2000-04-28 01:26:12 +00:00
ff459aa292 fix memory leak (save_to_vcal): same (save): same (cal_backend_load): same
* pcs/cal-backend.c (cal_backend_load): fix memory leak
	(save_to_vcal): same
	(save): same
	(cal_backend_load): same

svn path=/trunk/; revision=2668
2000-04-28 01:25:50 +00:00
b53a001ef2 Class to represent news addresses - currently empty, and not built.
2000-04-27  NotZed  <NotZed@HelixCode.com>

	* camel-news-address.c: Class to represent news addresses -
	currently empty, and not built.

	* camel-internet-address.h: Class to represent internet (email)
	addresses.

	* camel-address.h: Abstract class to represent (lists of)
	addresses.

svn path=/trunk/; revision=2667
2000-04-28 01:24:05 +00:00
b0b5049774 Revert previous change. I was confused.
* camel-mime-part.c (write_to_stream): Revert previous change. I
	was confused.

svn path=/trunk/; revision=2666
2000-04-27 22:43:43 +00:00
f99adedeb6 Oops. Remove the part of the previous patch that wasn't supposed to
escape into the real world. :)

svn path=/trunk/; revision=2665
2000-04-27 19:06:16 +00:00