Commit Graph

1938 Commits

Author SHA1 Message Date
b2ae704032 update for CamelStream changes.
* mail-format.c: update for CamelStream changes.

svn path=/trunk/; revision=2631
2000-04-26 14:40:43 +00:00
ec4ad73a58 add a s/SIMPLE_// that notzed missed remove a now-unused variable
* e-msg-composer-attachment-bar.c (attach_to_multipart): add a
	s/SIMPLE_// that notzed missed
	* e-msg-composer.c (build_message): remove a now-unused variable

svn path=/trunk/; revision=2630
2000-04-26 14:40:05 +00:00
599e13f9a1 Danish translations from Keld
svn path=/trunk/; revision=2629
2000-04-26 13:50:21 +00:00
123e9e21cd Replaced libcal-util.la with *.la
2000-04-26  Christopher James Lahey  <clahey@helixcode.com>

	* cal-util/.cvsignore: Replaced libcal-util.la with *.la

	* pcs/.cvsignore: Added *.la and *.lo.

svn path=/trunk/; revision=2628
2000-04-26 13:20:43 +00:00
ea637d0a3d Removed.
2000-04-26  Christopher James Lahey  <clahey@helixcode.com>

	* src/test/Makefile.in: Removed.

svn path=/trunk/; revision=2627
2000-04-26 13:19:06 +00:00
b6ddd5c549 Added proper handling of the email field.
2000-04-26  Christopher James Lahey  <clahey@helixcode.com>

	* contact-editor/e-contact-editor.c: Added proper handling of the
	email field.

svn path=/trunk/; revision=2626
2000-04-26 13:17:01 +00:00
128425f45d Prefixed the ADDR_ flags.
2000-04-26  Christopher James Lahey  <clahey@helixcode.com>

	* backend/ebook/e-card-types.h, backend/ebook/e-card.c,
	gui/minicard/e-minicard.c: Prefixed the ADDR_ flags.

	* contact-editor/contact-editor.glade,
	contact-editor/e-contact-editor-strings.h: Edited the glade file.
	Removed all the fields that we don't use.

	* contact-editor/e-contact-editor.c,
	contact-editor/e-contact-editor.h: Made the phone fields work
	properly.  The address and email fields are temporarily turned off
	until they can be made to work as the phone fields do.

svn path=/trunk/; revision=2625
2000-04-26 12:50:17 +00:00
c93a2e37f5 Big cleanup of camel-stream-*, got rid of 3 classes, improved the interfaces,
and fixed at least one problem (end of stream never happening in certain
cases).  Things that can fail now have a way of saying they failed too.

So much for taking ANZAC day off to get drunk!

2000-04-26  NotZed  <NotZed@HelixCode.com>

	* camel-seekable-substream.c (stream_seek): Changed to have
	absolute seek semantics, not relative to the bounds.

	* camel-seekable-stream.c (reset): When we reset, seek to the
	start of the bound, if there is one.
	(stream_tell): Make tell virtual.

	* camel-stream-filter.c (do_available): Removed.

	* camel-stream-buffer.c: Remove leading _'s from static functions.
	(stream_read): Renamed from read().  Fancy that conflicting!  (my
	boo!)  Others too.

	* providers/pop3/camel-pop3-folder.c (get_message_by_number):
	Changed to stream_mem interface.

	* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): Fixed
	for streamfs interface changes, and implement a failure case.
	(_append_message): Changed for fs stream interface change.

	* camel-multipart.c (print_part): Iterate rahter than callback.  I
	hate glists's interface (hence, move this to write_to_stream).
	(write_to_stream): Return an error (yuck, this is a royal PITA to
	do with the stream write interface).

	* camel-mime-message.c: Removed leading _ from static names.

	* camel-mime-part.h: construct_from_parser() now returns an error
	code.

	* camel-mime-part-utils.c
	(camel_mime_part_construct_content_from_parser): Changed to use a
	camel-data-wrapper instead of a camel-simple-data-wrapper (no
	change needed elsewhere?).
	(simple_data_wrapper_construct_from_parser): Fixes for stream-mem
	interface changes.

	* camel-simple-data-wrapper.[ch],
	camel-simple-data-wrapper-stream.[ch],
	camel-stream-data-wrapper.[ch], removed.  Fixed including of these
	files.

	* camel-mime-part.c (camel_mime_part_set_text): Remove the use of
	the camel-simple-data-wrapper-stream, just use a mem stream.
	(write_to_stream): Renamed from my_*
	(construct_from_stream): Return an error on error.

	* camel-stream-mem.c (camel_stream_mem_new*): Remove mode
	parameter.

	* camel-stream-mem.h (enum CamelStreamMemMode): Removed.  It
	wasn't used at all.

	* camel-data-wrapper.h: Add camel_data_wrapper_new() to create
	these.
	(write_to_stream, construct_from_stream): Return an error
	indicator for success.  Fixed all methods to match (ICK).

	* Makefile.am (libcamel_la_SOURCES): Remove
	camel-simple-data-wrapper.c, camel-simple-data-wrapper-stream.c,
	camel-stream-data-wrapper.c.  Obsoleted by code re-use!

	* camel-data-wrapper.c (construct_from_stream): Change the default
	implementation to just set the output stream == construction
	stream.  Well, this lets me get rid of both simple-data-wrapper
	and stream-data-wrapper (unused anyway), and
	simple-data-wrapper-stream in one hit.  CamelDataWrapper is now
	also a concrete class.
	(write_to_stream): Use camel_stream_write_to_stream() to
	calculate/return values (and save code).
	Include <errno.h> for obvious reasons.

	* camel-stream.c (eos): Provide a default implementation of .eos().
	(camel_stream_write_to_stream): Make it return an error code on
	error.
	(camel_stream_printf): Changed to return the number of bytes
	written/error.
	(camel_stream_available): Removed.

	* camel-stream-fs.h (enum CamelStreamFsMode): Removed.  Changed to
	use unix modes and so forth (wasn't used for anything but new file
	creation and didn't work well either).

	* camel-stream-fs.c: Removed leading _'s for names.  And removed
	some virtual method 'documentation'.
	(destroy): Dont try and close a closed/error fd.  Only report
	error if close returns -1.  Moved all the code to finalise(), and
	killed this function.
	(init_with_fd): Properly setup the seek offset, if it is a
	valid and seekable file descriptor.
	(init_with_fd_and_bounds): Use off_t for bounds, set bounds on the
	seekable stream.
	(init_with_name): Return error codes.
	(init_with_name_and_bounds): Ditto.
	(camel_stream_fs_new_with_name): REturn NULL object if it failed.
	(camel_stream_fs_new_with_name_and_bounds): Return NULL object on
	failure.  Changed with_name* api's to take unix open style args
	and flags.
	(read): The bounded stream bounds checking seemed off, simplified
	code a bit.
	(write): Implement bounds checking for writing, the comment was
	wrong, it could make sense to bound writing.  Cleaned up a little.
	(available): Gone.
	(eos): Removed.  Use CamelStream's implementation now.
	(close): Reset the fd to -1, provide a warning for bad usage.
	(seek): Cleaned up.  Changed the behaviour a little, the returned
	offset is the absolute position in the file, even in bounded
	streams.
	(seek): Seek from end mirrors lseek() behaviour (reverse seeking).

2000-04-25  NotZed  <NotZed@HelixCode.com>

	* camel-stream-fs.h (struct _CamelStreamFs): Moved bounds and eof
	indicator to other parent classes.

	* camel-stream.c (camel_stream_printf): New utility
	function.  Obvious use.

	* camel-stream-mem.c: Removed leading _'s from static func's.
	(camel_stream_mem_new_with_byte_array): Fixed for api changes, set
	the owner for the byte array to us.
	: Removed A bunch of gtk doc stuff for static (implementation) functions.
	(available): Removed.
	(write): Fixed the write implementation so that seek() works on a
	seekable memory stream, as expected.  Seeking past the end of the
	buffer has unix semantics (filling with 0).
	(available): Removed.
	(write): Implement seekable stream bounded stream.
	(read): Implement seekable stream bounded stream.
	(close): Dont free the stream_mem if we're not the owner.
	(seek): Allow to seek beyond the end of memory area,
	implement bounds checking.
	(seek): Set errno on bad policy.

	* camel-stream-mem.h (struct _CamelStreamMem): Changed position to off_t.
	(new_with_buffer): Changed len to be a size_t.
	(set_buffer, set_byte_array): New interface functions.
	(struct _CamelStreamMem): Removed position, it is stored in the
	superclass.

	* camel-stream.h: Removed some of the seemingly random
	whitespace.  Removed the available method (its not
	impelemented/useful enough).

	* camel-seekable-substream.c
	(init_with_seekable_stream_and_bounds): Remove the data_available
	stuff, it hasn't been properly implemented/finished, and may never
	work (unfortunately *sigh).
	(reemit_parent_signal): Removed part of the above change.
	(set_bounds): Removed (moved to seekable-stream).
	: Fixed up some of the generally unreadable indenting (sorry,
	wrapping at 80 characters with
	camels_really_long_function_names()
	just_doesnt_work_very_well_does_it().
	(available): Removed.
	(stream_seek): Fixup for object changes.  Make sure we return -1
	if the parent stream can't seek.

	* camel-seekable-stream.c (ccamel_seekable_stream_set_bounds): New
	function to bound any seekable stream.
	: Removed _'s.
	(camel_seekable_stream_class_init): Implement an init function, to
	setup the stream bounds to unbound.

	* camel-seekable-stream.h (CamelSeekableStreamClass): New virtual
	method set_bounds for seekable streams.
	(CAMEL_STREAM_UNBOUND): New define for no bound.

	* camel-seekable-substream.h (struct _CamelSeekableSubstream):
	Removed sup_bound and inf_bound, moved to CamelSeekableStream (and
	renamed, and changed to off_t's).
	(new_with_seekable_stream_and_bounds): Use off_t as the bounds.
	(CamelSeekableSubstreamClass): Uh, why was the intialiser virtual?
	Removed.

	* camel-seekable-stream.[ch] (CamelSeekableStreamClass): Changed seek
	to accept an off_t as the offset.
	(struct _CamelSeekableStream): Renamed cur_pos to position and
	changed it to an off_t type.
	(enum CamelStreamSeekPolicy): Set to match the SEEK_* constants
	from lseek().
	(get_current_position): Renamed to tell().

	* camel-stream-buffer.h: Commented out set_vbuf - never implemented.

svn path=/trunk/; revision=2624
2000-04-26 10:35:25 +00:00
854e4ba9a4 Use camel_mime_part_set_text() to set the text rather than messing with
2000-04-26  NotZed  <NotZed@HelixCode.com>

        * e-msg-composer.c (build_message): Use camel_mime_part_set_text()
        to set the text rather than messing with data wrappers.

        * e-msg-composer-attachment-bar.c (attach_to_multipart): Change
        for new camel-stream interfaces.
        (attach_to_multipart): Also set base64 encoding by default.

svn path=/trunk/; revision=2623
2000-04-26 10:25:52 +00:00
8201b137c7 Eeek, remove "while(1);" debug code - Federico
svn path=/trunk/; revision=2622
2000-04-26 01:27:35 +00:00
6921344649 only return TRUE if the parent is at eos AND the buffer has been exhausted
* camel-stream-buffer.c (_eos): only return TRUE if the parent is
	at eos AND the buffer has been exhausted

svn path=/trunk/; revision=2621
2000-04-26 01:26:29 +00:00
390beacc98 New module-wide variables for the PAS and PCS factories. (setup_pcs):
2000-04-25  Federico Mena Quintero  <federico@helixcode.com>

	* wombat.c (cal_factory pas_book_factory): New module-wide
	variables for the PAS and PCS factories.
	(setup_pcs): Connect to the "last_calendar_gone" signal of the
	calendar factory.
	(last_calendar_gone_cb): Queue a termination job.
	(queue_termination): Function to queue a termination job.  We have
	to use a timeout to reduce the probability of running into GOAD's
	race condition with factories.
	(termination_handler): Check that the PCS and the PAS have zero
	backends.  If so, exit the main loop.
	(setup_vfs): Use EXIT_FAILURE instead of 1.
	(init_bonobo): Likewise.
	(main): Destroy the factories and exit Wombat.  Wheee!

svn path=/trunk/; revision=2620
2000-04-26 01:09:09 +00:00
555668c928 Renamed from backend_destroy_cb. Now we use it for the "last_client_gone"
2000-04-25  Federico Mena Quintero  <federico@helixcode.com>

	* pcs/cal-factory.c (backend_last_client_gone_cb): Renamed from
	backend_destroy_cb.  Now we use it for the "last_client_gone"
	signal from the backend.  Also, unref the backend to destroy it.
	(add_backend): Connect to the "last_client_gone" signal of the
	backend.
	(cal_factory_get_n_backends): New function to query the number of
	running backends.

	* pcs/cal-backend.c (cal_backend_class_init): Register the new
	"last_client_gone" signal.  It is emitted when the last Cal client
	goes away.  It is used to notify the factory when a backend may be
	safely destroyed.
	(cal_destroy_cb): Emit the "last_client_gone" signal when the last
	client disconnects from the backend.

svn path=/trunk/; revision=2619
2000-04-26 01:08:06 +00:00
23bcb0bbd8 add a convert_space_hack flag, which turns N spaces into N-1 &nbsp;s and a
* mail-format.c (text_to_html): add a convert_space_hack flag,
	which turns N spaces into N-1 &nbsp;s and a space.
	(handle_text_plain): Check for "format=flowed" in the
	Content-Type.
	(handle_text_plain_flowed): Spinoff of handle_text_plain to deal
	with RFC 2646 flowed text. (All the examples I can find of it
	are generated by Eudora, but it's a pretty cool idea that ought
	to be used more widely.)

svn path=/trunk/; revision=2618
2000-04-26 00:36:31 +00:00
fba8692c75 compare iCalObjects by their UIDs instead of by their pointers.
* gui/e-day-view.c (e_day_view_find_event_from_ico): compare
	iCalObjects by their UIDs instead of by their pointers.

svn path=/trunk/; revision=2617
2000-04-26 00:02:43 +00:00
11ca787488 Now that we're not limited to a single GtkHTML for the display, there's no
* mail-format.c, mail-display.c: Now that we're not limited to
	a single GtkHTML for the display, there's no reason to embed
	Bonobo objects for unrecognized content-types in GtkHTML rather
	than embedded them into the vbox directly. So do that.

	Meanwhile, fix up the handler-selection code so that we can
	declare which built-in handlers are more desirable than external
	handlers and which are less. (Of course, eventually we'll want
	this to be customizable.) Add some cleverness to
	handle_multipart_alternative as well so it doesn't accept an
	alternative which we can display generically over one we can
	display specifically.

svn path=/trunk/; revision=2616
2000-04-25 23:00:52 +00:00
16bd792528 don't save on destroy.
* pcs/cal-backend.c (cal_backend_destroy): don't save on destroy.

svn path=/trunk/; revision=2615
2000-04-25 20:04:57 +00:00
b3674f3251 The Joy of Broken Makefiles Part #3.
svn path=/trunk/; revision=2614
2000-04-25 19:54:44 +00:00
ae6031ecce hook for widget destroy -- used to unref the CalClient so wombat knows we
* gui/gnome-cal.c (gnome_calendar_destroy): hook for widget
	destroy -- used to unref the CalClient so wombat knows we are gone.
	(gnome_calendar_class_init): added a class init for this widget.

svn path=/trunk/; revision=2613
2000-04-25 19:50:54 +00:00
abc010d5a5 (reply_body): Make this deal better with multiparts.
svn path=/trunk/; revision=2612
2000-04-25 19:10:02 +00:00
a8b75db188 (setup_function_table): pass unknown text subtypes to
handle_text_plain.
	(handle_multipart_appledouble): new handler. Just ignores the
	first (application/applefile) part and tries to display the
	second part. Since the second part is usually
	application/octet-stream, this doesn't work very well still
	usually.

svn path=/trunk/; revision=2611
2000-04-25 19:09:19 +00:00
0759a9fa89 The Joy of Broken Makefiles Part #3.
svn path=/trunk/; revision=2610
2000-04-25 18:48:33 +00:00
7e3a3892c4 The Joy of Broken Makefiles Part #2.
svn path=/trunk/; revision=2609
2000-04-25 18:42:37 +00:00
b19eff55b0 Updated Norwegian translation.
2000-04-25  Kjartan Maraas  <kmaraas@online.no>

	* no.po: Updated Norwegian translation.

svn path=/trunk/; revision=2608
2000-04-25 18:34:17 +00:00
be534ea354 Fix compile with builddir != srcdir.
svn path=/trunk/; revision=2607
2000-04-25 18:30:31 +00:00
89a11f14e6 Fix compilation by using $(GTKHTML_CFLAGS)' instead of -I
$(GTKHTML_CFLAGS)'.

svn path=/trunk/; revision=2606
2000-04-25 18:03:03 +00:00
8bedc01ea3 allow for null ico
* gui/e-day-view.c (e_day_view_update_event): allow for null ico

	* gui/e-week-view.c (e_week_view_update_event): allow for null ico

svn path=/trunk/; revision=2605
2000-04-25 17:42:55 +00:00
e8bff6c44e fix menu problem in composer window
* fix menu problem in composer window

2000-04-25  Radek Doulik  <rodo@helixcode.com>

	* e-msg-composer.c (create_editor): use uih here
	(e_msg_composer_construct): create menubar/toolbar before creating
	editor control

svn path=/trunk/; revision=2604
2000-04-25 16:49:19 +00:00
28f75825c8 fix some incorrect macro usage that resulted in bogus casts
* camel-mime-message.c: fix some incorrect macro usage that
	resulted in bogus casts

svn path=/trunk/; revision=2603
2000-04-25 15:31:06 +00:00
a595bef604 Fix some bugs that crept into reply generation. This needs a lot more work
* mail-format.c (reply_body): Fix some bugs that crept into reply
	generation. This needs a lot more work to deal correctly with
	complicated bodies.

svn path=/trunk/; revision=2602
2000-04-25 15:29:12 +00:00
9713f20bc8 Redo large chunks of this. The mail display now consists of a vbox in a
* mail-display.c, mail-format.c: Redo large chunks of this. The
	mail display now consists of a vbox in a scrolled window, in which
	we put multiple GtkHTML objects. This means broken HTML in one
	part can't corrupt other parts. The headers now scroll with the
	body. Unrecognized attachments look prettier, but still don't do
	anything, and will probably be changed later. We can also now
	display nested message/rfc822 parts and multipart/alternatives
	with multipart subparts. Oh, and text/{richtext,enriched}, since
	we had all these ancient sample messages that use it and the lack
	of support annoyed me. :)

	Bonobo embeddables are broken right now, but I don't think that's
	my fault.

svn path=/trunk/; revision=2601
2000-04-25 14:59:08 +00:00
10fe02e0c6 ja.po: Update from Japanese GNOME Users Group(translation@gnome.gr.jp).
svn path=/trunk/; revision=2600
2000-04-25 14:40:34 +00:00
4c9ac5da23 include -I$(datadir)/idl in orbit-idl arguments so that you can have
* shell/Makefile.am: include -I$(datadir)/idl in orbit-idl
	arguments so that you can have bonobo installed in the same
	prefix as evolution, when that isn't the same prefix is
	gnome-libs, which a lot of people seem to be doing.
	(CLEANFILES): add EVOLUTION_CORBA_GENERATED

	* README: Note this

svn path=/trunk/; revision=2599
2000-04-25 14:08:37 +00:00
5f54bb7ea0 Fixed a warning.
2000-04-25  Christopher James Lahey  <clahey@helixcode.com>

	* e-table-size-test.c: Fixed a warning.

	* e-table-item.c: Removed the unnecessary gnome_canvas_update_bbox.

svn path=/trunk/; revision=2598
2000-04-25 07:26:27 +00:00
1b7d0bc8c2 The path to the test calendar changed when we moved stuff around. Users
2000-04-24  Federico Mena Quintero  <federico@helixcode.com>

	* cal-client/client-test.c (main): The path to the test calendar
	changed when we moved stuff around.  Users will have to tweak this
	for their CVS setup, anyways.
	(create_client): Create or load the calendar as appropriate.
	(client_destroy_cb): Exit the main loop if both clients are gone.
	(main): Connect to the "destroy" signal of the clients so that we
	can terminate the test program.

svn path=/trunk/; revision=2597
2000-04-25 01:39:05 +00:00
de46951fcf convert from a time_t to an icaldurationtype.
* src/libical/icaltypes.c (icaldurationtype_from_timet): convert
	from a time_t to an icaldurationtype.

svn path=/trunk/; revision=2589
2000-04-24 20:07:19 +00:00
33f48d299e allow for null CN (parse_person): allow for null sent_by
* pcs/icalendar.c (parse_person): allow for null CN
	(parse_person): allow for null sent_by

	* pcs/Makefile.am: build icalendar-test

	* pcs/icalendar-test.c: a test which loads an ical file and
	converts it to our internal format, and then saves it back out.

svn path=/trunk/; revision=2588
2000-04-24 20:01:44 +00:00
d38dcd1631 fix a cut-and-pasto.
* camel-mime-part-utils.c
	(simple_data_wrapper_construct_from_parser): fix a cut-and-pasto.

svn path=/trunk/; revision=2587
2000-04-24 19:58:28 +00:00
98e2091d62 ref (and sink) the message stream if we're going to unref it later.
* providers/mbox/camel-mbox-folder.c (_get_message_by_uid): ref
	(and sink) the message stream if we're going to unref it later.
	Otherwise it could get destroyed while there are still substreams
	attached to it. This needs a cleaner solution.

svn path=/trunk/; revision=2586
2000-04-24 19:29:20 +00:00
262f167d2e remove data-wrapper-repository.h include(s)
* camel.h: remove data-wrapper-repository.h include(s)

svn path=/trunk/; revision=2585
2000-04-24 19:18:18 +00:00
30c8970cee finished first stab at iCalObject to icalcomponent conversion.
svn path=/trunk/; revision=2584
2000-04-24 16:57:48 +00:00
94a486a7b4 added new source files and pixmaps, and removed old source files, which
2000-04-24  Damon Chaplin  <damon@helixcode.com>

	* gui/Makefile.am: added new source files and pixmaps, and removed
	old source files, which can be deleted.

	* gui/e-week-view-titles-item.[hc]:
	* gui/e-week-view-main-item.[hc]:
	* gui/e-week-view-event-item.[hc]:
	* gui/e-week-view.[hc]: new files implementing the week/month views.

	* gui/yearview.xpm:
	* gui/monthview.xpm:
	* gui/weekview.xpm:
	* gui/workweekview.xpm:
	* gui/dayview.xpm: new pixmaps for the toolbar buttons. These aren't
	intended to be the final pixmaps.

	* gui/calendar-commands.c: added radio buttons to the toolbar to
	switch between the calendar views, and moved the am_pm_flag here so we
	can get rid of view-utils.c.

	* gui/gnome-cal.[hc]: made it a subclass of GtkVBox, rearranged the
	widgets into 2 notebooks, and added the	selection_start_time and
	selection_end_time fields.

	* gui/goto.c: updated to use new selection time range.

	* gui/quick-view.c: added '#include <gtk/gtkwindow.h>' so it compiles.

	* gui/e-day-view.[hc]: changed the interface to support the new
	selection time range, got rid of a few debugging messages and changed
	a few bits.

svn path=/trunk/; revision=2583
2000-04-24 14:01:46 +00:00
0c3a869376 Made some functions syncronous that didn't need to be asyncronous.
2000-04-24  Christopher James Lahey  <clahey@helixcode.com>

	* idl/folder.idl: Made some functions syncronous that didn't need
	to be asyncronous.

svn path=/trunk/; revision=2582
2000-04-24 13:42:59 +00:00
ef9238e9cc Made the tooltip show up in the correct place and configuration when using
2000-04-24  Christopher James Lahey  <clahey@helixcode.com>

	* widgets/e-text/e-text.c: Made the tooltip show up in the correct
	place and configuration when using the "max_lines", "anchor"
	(untested), or "justification" arguments.

From a patch by Iain Holmes <ih@csd.abdn.ac.uk>

	* widgets/e-text/e-text-event-processor-emacs-like.c,
	widget/e-text/e-text-event-processor-types.h,
	widgets/e-text/e-text.c, widgets/e-text/e-text.h: Changed C-w and
	C-y to control the X clipboard.  Added double and triple click
	events.

From widgets/e-table/:

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

	* e-table.c: Fixed some warnings.

svn path=/trunk/; revision=2581
2000-04-24 13:36:11 +00:00
60f56fbbff Added tr to ALL_LINGUAS
svn path=/trunk/; revision=2580
2000-04-24 11:09:30 +00:00
27937ec41f Big fixes for the last commit which broke the message creation entirely.
Plus an address decoder/formatter, etc.

	* camel-mime-message.c (construct_from_parser): Allow MESSAGE_END
	_or_ EOF as valid termination conditions.

	* providers/mbox/camel-mbox-summary.c (message_struct_new): Decode
	and then re-encode the addresses, so they are consistently
	formatted.

	* camel-mime-utils.c (header_decode_mailbox): Store the address in
	a _header_address.  And try to get a comment-stored name if there
	is one.
	(header_decode_address): Actually return an address.
	(header_to_decode): Renamed to header_address_decode()
	(header_mailbox_decode): New function to get a single mailbox.
	(header_mime_decode): Return the major/minor value, as
	appropriate.
	(header_address_new, and friends): Whole bunch of utility
	functions for working with the address thingies.
	(header_decode_domain): Free the string header, and dont expand
	'.' into ' . '.

	(camel_mime_part_construct_content_from_parser): Oops, this was
	totally screwed up, try creating the right cotnent on the right
	object.

svn path=/trunk/; revision=2579
2000-04-24 09:12:31 +00:00
0c1a38160f Fixed for method movements.
2000-04-24  NotZed  <NotZed@HelixCode.com>

	* tests/test13.c (main): Fixed for method movements.

	* tests/test3.c (main): Removed from build, data-wrapper-repository removed.

	* tests/test2.c (main): Changed to use construct_from_stream.

	* tests/test1.c (main): Chagned to use construct_from_stream.

svn path=/trunk/; revision=2578
2000-04-24 09:10:40 +00:00
8c9b0cc3f0 No longer call data_wrapper_repository_init.
2000-04-24  NotZed  <NotZed@HelixCode.com>

	* camel.c (camel_init): No longer call
	data_wrapper_repository_init.

	* camel-medium.c (write_to_stream): Moved (back) to
	camel-mime-part.
	(add_header):
	(set_header):
	(remove_header):
	(get_header): Make all these abstract, and spit warnings if
	called.  I guess it could manage the list, but well, it doesn't.

	* camel-medium.h (struct _CamelMedium): Dont store headers here,
	the implementor is the only one who knows their format.
	(CamelMediumClass): Changed header values to be void *'s.  They
	need not be strings?

	* camel-simple-data-wrapper.c (construct_from_stream): And we're
	back.  Set the output stream.
	(construct_from_parser): Moved to camel-mime-part-utils.

	* camel-mime-part-utils.c
	(camel_mime_part_construct_content_from_parser): Create the
	contents of multipart and simple messages.

	* camel-multipart.c (construct_from_parser): Moved to
	camel-mime-part-utils.
	(separate_part): Removed.

	* camel-mime-part.c (construct_from_stream): Back again!  This now
	switches over to using a mime parser for any mime parts, only.
	(my_write_to_stream): Write our headers and so forth here.
	(add_header): Add header directly, parent class is abstract.
	(remove_header): Ditto.
	(set_header): Ditto.

	* camel-data-wrapper.c (camel_data_wrapper_construct_from_stream):
	Remade abstract.
	(camel_data_wrapper_construct_from_parser): Moved to
	camel_mime_part.

	* camel-data-wrapper.h: Put back construct_from_stream.

	* camel-mime-part.h: Put construct_from_parser in here, the
	data-wrapper shouldn't know about mime.  Ok, so now to undo half
	of the last hours changes ... duh.

2a51,93
	* providers/pop3/camel-pop3-folder.c (get_message_by_number): Use
	construct_from_stream instead of set_input_stream().

	* camel-simple-data-wrapper-stream.c
	(camel_simple_data_wrapper_stream_construct): REmoved the destroy
	callback code.
	(wrapper_destroy_cb): Removed.

	* camel-simple-data-wrapper.h: Add prototype for _construct()
	method.

	* camel.c: Include unicode.h to kill a warning.

	* camel-data-wrapper.h (CameldataWrapperClass): Removed
	construct_from_stream virtual method.
	Removed get/set input stream.

	* data-wrapper-repository.[ch]: Removed&from build.  Obsoleted?
	The justification as is follows: It is mixing storage
	protocol/format with message architecture.  It really just doesn't
	serve any purpose, as each medium implementor will have to have its
	own type->handler mapping, and the only current implementor,
	mimepart has a very simple structure and no need for this.

	* camel-medium.c (write_to_stream): Moved here from most of the
	stuff in camel-mime-part.  Well, the MEDIUM is the one that knows
	what the headers are, and the content is, let it write it out.

	* camel-mime-part-utils.c (camel_mime_part_construct_content):
	Copied from camel-mime-part.c, removed handling of message
	followon state (moved to camel-mime-message).
	(camel_mime_part_construct_content_from_parser): Renamed from
	construct_content.
	(camel_mime_part_construct_headers_from_stream):
	(camel_mime_part_construct_content_from_stream):
	(camel_mime_part_store_stream_in_buffer): Removed.  Replaced by
	the new construct from parser stuff.

	* camel-mime-message.c (construct_from_parser): Do
	construct_from_parser for mime-message.
	(_write_to_stream): Set the mime-version header for medium to
	write out, rather than writing it out ourselves.

4a96,102
	(construct_from_stream): Removed.
	(camel_data_wrapper_construct_from_stream): Changed to a helper
	function, creates a mime_parser, and constructs from that.
	(set_input_stream): Removed.
	(camel_data_wrapper_set_input_stream): Removed.
	(get_input_stream): Removed.
	(camel_data_wrapper_get_input_stream): Removed.
11a110,111
	(_get_message_by_uid): Use construct_from_stream() instead of
	creating our own parser.
16a117,131
	(camel_mime_part_construct_content): Removed to
	camel-mime-part-utils.c
	(my_get_output_stream): Removed.  The streeam is in the
	data-wrapper.
	(my_get_content_object): Removed.  The content object is stored in
	the medium.  If none is there, the object wasn't created properly.
	(my_write_content_to_stream): Removed.  The content object is the
	one that knows how to write itself out!!!!!!!!
	(my_write_to_stream): Remove the base header writing stuff - has
	been moved to camel-medium, where it belongs.  This can just be
	used to check for mandatory headers.
	(my_construct_from_stream): Removed.
	(my_set_input_stream): What the hell, i'll remove this too.
	Nobody seems to understand how it differs from create from stream,
	and they both seem to serve the same purpose ...
19a135,136
	(construct_from_stream): Removed!  Job taken over by
	construct_from_parser.
24a142
	(set_input_stream): REmoved.  Replaced by construct_from_parser.

svn path=/trunk/; revision=2577
2000-04-24 06:05:41 +00:00
7455842584 oops, silly me.
svn path=/trunk/; revision=2576
2000-04-24 03:13:53 +00:00
7c309e43b2 + * widgets/Makefile.am: Added e-paned directory.
+
+	* default_user/Makefile.am: new file.
+
+	* default_user/Main_Shortcuts.xml: New file; is used to fill the
+	shortcut bar's "main shortcuts" pane.
+
+	* default_user/Other_Shortcuts.xml: New file, used to fill the
+	shortcut bar's "other shortcuts" pane.
+
+	* default_user/Inbox.mbox: New file. This is the first message a
+	new user will see when they fire up Evolution. Needs work.
+
+	* Makefile.am: added default_user directory.
+	* configure.in: same.
+
+	* e-paned.c: New file. Makes a GtkPaned with more than two
+	children.
+	* e-paned.h: same.
+
+	* Makefile.am: added e-paned.[ch].
+
+	* e-shell-view.h: Added hpaned and treeview widgets to
+	EShellView. Added e_shell_view_toggle_shortcut_bar() and
+	e_shell_view_toggle_treeview().
+
+	* e-shell-view.c (e_shell_view_setup_shortcut_display): Use EPaned
+	widget to house our shortcut bar.
+	(e_shell_view_toggle_shortcut_bar): New function; toggles whether
+	the shortcut bar is showing.
+	(e_shell_view_toggle_treeview): Same, for the treeview (NYI).
+	(e_shell_view_new): Put the notebook view in our EPaned widget.
+
+	* e-shell-view-menu.c (esv_cmd_toggle_shortcut_bar): New function;
+	toggles whether the shortcut bar is viewed.
+	(esv_cmd_toggle_treeview): Same, but with the treeview.  Added
+	menuitems in the "view" menu to allow access to the above.
+

svn path=/trunk/; revision=2575
2000-04-24 03:10:30 +00:00