Commit Graph

1152 Commits

Author SHA1 Message Date
3ef8dbd93a Increment the copy source address to match the data read offset. (seek):
2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

	* camel/camel-simple-data-wrapper-stream.c (read): Increment the
	copy source address to match the data read offset.
	(seek): Actually implement the seek.

svn path=/trunk/; revision=1722
2000-02-10 03:54:22 +00:00
8c9cb1454e Tweaked e-cell-text. Added a white background and tweaked the borders.
2000-02-09  Christopher James Lahey  <clahey@helixcode.com>

        * e-cell-text.c: Tweaked e-cell-text.  Added a white background
        and tweaked the borders.

svn path=/trunk/; revision=1721
2000-02-10 02:50:08 +00:00
8e008e868d If we get a -1 read, DONT update the total bytes, and try and truncate the
2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

	* camel/camel-mime-part-utils.c
	(camel_mime_part_store_stream_in_buffer): If we get a -1 read,
	DONT update the total bytes, and try and truncate the array in
	reverse.  Eek.

	* camel/camel-mime-part.c (camel_mime_part_encoding_from_string):
	This was DEFINETLEY not the right way to do it. strncmp!=strcmp
	(camel_mime_part_encoding_to_string): Handle the default case.
	: include string.h for strcmp() etc.

svn path=/trunk/; revision=1720
2000-02-10 02:15:02 +00:00
504b7541a2 New test file; run message-browser on it, and it will crash.
* tests/ui-tests/test-multipart-alt.msg: New test file; run
	message-browser on it, and it will crash.

svn path=/trunk/; revision=1719
2000-02-10 01:39:26 +00:00
49af1217d7 Fix GNUism introduced in the previous fix.
* autogen.sh: Fix GNUism introduced in the previous fix.

svn path=/trunk/; revision=1715
2000-02-09 23:19:13 +00:00
5319c1eb5b show the containers and the containees (get_message_tree_ctrl): call
2000-02-09  bertrand  <Bertrand.Guiheneuf@aful.org>

	* tests/ui-tests/message-browser.c (handle_tree_item):
	show the containers and the containees
	(get_message_tree_ctrl): call handle_tree_item
	on the message itself

svn path=/trunk/; revision=1714
2000-02-09 21:52:48 +00:00
61dc2c8700 show the item.
2000-02-09  bertrand  <Bertrand.Guiheneuf@aful.org>

	* tests/ui-tests/message-browser.c (handle_tree_item):
	show the item.

svn path=/trunk/; revision=1713
2000-02-09 21:16:29 +00:00
2088dd3401 set the mime type to "mime/message". --- THIS IS NOT THE CONTENT TYPE ---
2000-02-09  bertrand  <Bertrand.Guiheneuf@aful.org>

	* camel/camel-mime-message.c (camel_mime_message_init):
	set the mime type to "mime/message".
	--- THIS IS NOT THE CONTENT TYPE ---

	* camel/camel-mime-body-part.c (camel_mime_body_part_init):
	set the mime type to "body-part".
	--- THIS IS NOT THE CONTENT TYPE ---

	* camel/camel-data-wrapper.c (camel_data_wrapper_set_mime_type):
	mime_type is const.
	(_set_input_stream): really set the input stream
	(_set_output_stream): really set the output stream
	various other typo fixes.

	* tests/ui-tests/message-browser.c: various typo
	fixes in the ctree construction.

svn path=/trunk/; revision=1712
2000-02-09 21:09:31 +00:00
3bd58106ef various typo fixes in the ctree construction.
2000-02-09  bertrand  <Bertrand.Guiheneuf@aful.org>

	* tests/ui-tests/message-browser.c: various typo
	fixes in the ctree construction.

	* camel/string-utils.c (string_trim): fix braindead
	trailing trim bug.

	* camel/gmime-content-field.c (gmime_content_field_construct_from_string):
	strip the leading and trailing quotes when constructing the
	content field. This should be done in a more generic
	RFC822 approach, but this fixes a bug that prevent
	matt from analysing some multipart messages.

	* camel/camel-data-wrapper.h: reorganize the
	deprecated and new methods.

	* camel/providers/mbox/camel-mbox-folder.c
	(_check_get_or_maybe_generate_summary_file):
	Use "From " as the message separating string.

	* camel/providers/mbox/camel-mbox-folder.c (_append_message):
	set the mode when creating the mbox file.

	* camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev):
	ditto
	* camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary):
	ditto

svn path=/trunk/; revision=1711
2000-02-09 20:35:35 +00:00
4c87a79aa4 Minor cleanup.
* tests/ui-tests/message-browser.c (print_usage_and_quit): Minor
	cleanup.

svn path=/trunk/; revision=1710
2000-02-09 18:38:42 +00:00
25e2a5ee20 Added libetext as libetable depends on it.
2000-02-09  Christopher James Lahey  <clahey@helixcode.com>

        * Makefile.am: Added libetext as libetable depends on it.

svn path=/trunk/; revision=1709
2000-02-09 12:34:10 +00:00
68d2387f39 Changes where e-text is included from.
2000-02-09  Christopher James Lahey  <clahey@helixcode.com>

        * Makefile.am: Changes where e-text is included from.

svn path=/trunk/; revision=1708
2000-02-09 12:33:07 +00:00
d4bc84cf83 Actually initialise the class. It simple couldn't have worked before.
2000-02-09  NotZed  <notzed@zedzone.helixcode.com>

	* camel/camel-simple-data-wrapper-stream.c (class_init): Actually
	initialise the class.  It simple couldn't have worked before.
	(camel_simple_data_wrapper_stream_construct): Commented out code
	which crashes just to get something working, memory corruption??

svn path=/trunk/; revision=1707
2000-02-09 12:32:53 +00:00
824d0a361f Add new Makefiles to Makefile list.
2000-02-09  Christopher James Lahey  <clahey@helixcode.com>

        * configure.in: Add new Makefiles to Makefile list.

        * e-util/Makefile.am: Add canvas utilities to libeutil.

        * widgets/e-text/Makefile.am: Build libetext.

        * widgets/e-minicard/Makefile.am: Build libeminicard and test
        programs.

        * widgets/Makefile.am: Remove all e-text and e-minicard code and
        add them to the SUBDIRS list.

svn path=/trunk/; revision=1706
2000-02-09 12:27:24 +00:00
18dc72c4a4 More fixing action
svn path=/trunk/; revision=1705
2000-02-09 09:19:42 +00:00
f9ccf90a8f More cleanup action
svn path=/trunk/; revision=1704
2000-02-09 09:17:54 +00:00
055e3b0fa9 Added inline documentation comment - Federico
svn path=/trunk/; revision=1703
2000-02-09 09:11:21 +00:00
79c8c9c847 Remove e-cursors
svn path=/trunk/; revision=1702
2000-02-09 09:10:59 +00:00
9e816b5c29 Handle non GNU find programs.
2000-02-08  Miguel de Icaza  <miguel@gnu.org>

	* autogen.sh: Handle non GNU find programs.

svn path=/trunk/; revision=1701
2000-02-09 08:51:20 +00:00
a56ab52138 New file; shows a message in tree format, where multipart's have multiple
* tests/ui-tests/message-browser.c: New file; shows a message in
	tree format, where multipart's have multiple leaves.

	* camel/camel-formatter.c: Changed references from
	'multipart/alternate' to 'multipart/alternative'.

svn path=/trunk/; revision=1700
2000-02-09 08:36:29 +00:00
ca082de77a Added get_uids() method to get a list of UIDs based on object types.
2000-02-08  Federico Mena Quintero  <federico@helixcode.com>

	* evolution-calendar.idl (Cal): Added get_uids() method to get a
	list of UIDs based on object types.

	* cal-backend.c (cal_backend_get_uids): Implemented get_uids() in
	the backend.

	* cal.c (Cal_get_uids): Implemented get_uids() method.

	* cal-client.c (cal_client_get_uids): Implemented client-side
	function.

	* cal-util.c (cal_obj_instance_list_free): Doh.  Free the list,
	not the last link.
	(cal_obj_uid_list_free): New function to free a list of UIDs.

	* GnomeCal.idl (Repository): Removed unused method
	get_object_by_id_list().  This is just for cleanup purposes and to
	remind me exactly of what needs to be moved over to
	evolution-calendar.idl.
	(Repository): Removed unused get_objects() method.

	* corba-cal.c (init_calendar_repo_class): Removed the unused
	get_objects method.

	* calobj.h (CalObjFindStatus): New status value enumeration for
	the find function.

	* calobj.c (ical_object_find_in_string): New function to parse a
	complete calendar and find a calendar object in it.  This should
	be used instead ical_object_new_from_string() in the future.

	* evolution-calendar.idl (CalObjInstance): Added an uid field.
	Now the idea is that whenever calendar object strings are passed
	around, their UIDs are passed along with them so that the actual
	object can be pulled from the whole VCAL object using its UID to
	identify it.

	* cal-util.h (CalObjInstance): Added uid field.

	* cal-util.c (cal_obj_instance_list_free): Free the UIDs.

	* cal-backend.c (build_event_list): Store the object's UID in the
	instance structure.

	* cal.c (Cal_get_events_in_range): Copy the UID field to the CORBA
	structure.

	* cal-client.c (cal_client_get_events_in_range): Copy the UID
	field from the CORBA structure.

	* main.c (gnome_cal_file_menu): Removed unfinished html-month stuff.

	* Makefile.am (gnomecal_SOURCES): Removed html-month.c.

	* gnome-cal.c: #include "alarm.h"
	(mail_notify): Made static.

	* alarm.h: #include "calobj.h"

	* corba-cal-factory.h (init_corba_server): Fixed prototype.

	* quick-view.c (create_items_for_event): Made static.

	* gncal-todo.c (column_resized): Made static.

	* layout.c (find_index): Made static.

svn path=/trunk/; revision=1699
2000-02-09 08:04:33 +00:00
66dc424c9c + * tests/test-formatter.c (convert_to_html_and_print): Use the
+	buffer length of the stream to create strings which are then
+	printed, rather than printing the stream (which might not have a
+	trailing \0) directly.
+
+	* camel/camel-formatter.c (str_tolower): New function; makes a
+	string lowercase.

svn path=/trunk/; revision=1698
2000-02-09 00:48:28 +00:00
c9f1db9bd0 + * tests/test-formatter.c (convert_to_html_and_print): Fixed call
+	to 'camel_formatter_mime_message_to_html' to contain correct
+	params.

svn path=/trunk/; revision=1697
2000-02-08 23:26:31 +00:00
3e5f29f650 New member to 'CamelFormatterPrivate', 'attachments', will be used to let
* camel/camel-formatter.c: New member to 'CamelFormatterPrivate',
	'attachments', will be used to let the caller know which items
	should be treated as attachments (as opposed to objects which are
	inline to the body).
	(text_to_html): name changed from 'encode_entities'. Also now
	converts newlines to <br> tags.
	(camel_formatter_mime_message_to_html): Now takes two output
	streams -- one for the header, and one for the body.
	(get_bonobo_tag_for_object): New function; tries to make a tag out
	of (1) the leaf of a mime message and (2) a bonobo object that can
	handle its mime type, but can return NULL if it fails to find the
	mime type.
	(handle_vcard): New function; will write out a vcard as html.

svn path=/trunk/; revision=1696
2000-02-08 23:18:29 +00:00
6e1f98f09a Changed the order of the compilation so the CORBA stuff was generated
2000-02-08  Iain Holmes  <ih@csd.abdn.ac.uk>

	* mail/Makefile.am: Changed the order of the compilation so the CORBA
	stuff was generated before it was needed.

	* shell/Makefile.am: Same.

svn path=/trunk/; revision=1695
2000-02-08 16:21:19 +00:00
6cb60b68f1 Add the files, stupid me - Federico
svn path=/trunk/; revision=1694
2000-02-08 08:22:05 +00:00
cc670cb2ca New struct to wrap instances of calendar objects for recurrencies and
2000-02-08  Federico Mena Quintero  <federico@helixcode.com>

	* evolution-calendar.idl (CalObjInstance): New struct to wrap
	instances of calendar objects for recurrencies and alarms.
	(Cal::get_events_in_range): New method to get ocurring and
	recurring events by time range.

	* cal-backend.c (cal_backend_get_events_in_range): New function to
	get a list of event instances in a time range.
	(string_from_ical_object): New internal function.
	(cal_backend_get_object): Use string_from_ical_object() instead of
	doing everything ourselves.
	(cal_backend_get_events_in_range): New function to get a list of
	the events that occur or recur in a specified time range.

	* cal-client.c (cal_client_get_events_in_range): Implemented
	client-side function.

	* cal-util.h:
	* cal-util.c: New files with utilities and types common to the
	client and server parts.
	(CalObjInstance): New structure to hold an instance of an actual
	occurrence, recurrence, or alarm trigger of a calendar object.
	(cal_obj_instance_list_free): New function to free a list of
	calendar object instances.

	* cal.c (Cal_get_events_in_range): Implemented new method.

	* corba-cal.c (cal_repo_get_updated_objects): Free `str' with
	free(), not g_free(), since calendar_get_as_vcal_string() uses
	writeMemVObject(), which uses realloc().  Fixed in gnome-pim as
	well.

svn path=/trunk/; revision=1693
2000-02-08 07:08:29 +00:00
c02660b408 Fixed some motion event bugs. (incorrect x and y.)
2000-02-07  Christopher James Lahey  <clahey@helixcode.com>

        * e-table-item.c (eti_event): Fixed some motion event
        bugs. (incorrect x and y.)

        * Makefile.am: Added includes for dependencies in
        evolution/widgets/libevolutionwidgets.a

        * e-cell-text.h, e-cell-text.c: Completely revamped using code
        from e-text.c and e-text.h.

svn path=/trunk/; revision=1692
2000-02-08 03:29:49 +00:00
1a44ff0e97 Added line wrap and a max number of lines (max number of lines is only
2000-02-07  Christopher James Lahey  <clahey@helixcode.com>

        * widgets/e-text.h, widgets/e-text.c: Added line wrap and a max
        number of lines (max number of lines is only obeyed if text is not
        being edited).

svn path=/trunk/; revision=1691
2000-02-08 03:15:56 +00:00
358b21acbb Removed an unneccessary include of libhnj. All uses of libhnj are
2000-02-07  Christopher James Lahey  <clahey@helixcode.com>

        * addressbook/printing/e-contact-print.c: Removed an unneccessary
        include of libhnj.  All uses of libhnj are commented out.

svn path=/trunk/; revision=1690
2000-02-08 01:51:53 +00:00
8287590461 Sync for Chris to use
svn path=/trunk/; revision=1689
2000-02-08 01:43:02 +00:00
d6de7b88f5 function deleted.
* camel/camel-formatter.c (mime_part_to_html): function deleted.

svn path=/trunk/; revision=1688
2000-02-07 23:03:46 +00:00
1779bc3817 + * tests/test-formatter.c (print_usage_and_quit): New function,
+       which gives usage information.
+
+       * camel/camel-formatter.c: made the 'stream' a member of the
+       CamelFormatter class, so that streams don't have to be explicitly
+       sent as a param where a CamelFormatter is also sent..
+       (handle_text_plain): Use 'encode_entities' to change '<' to
+       '&gt;', etc.

svn path=/trunk/; revision=1687
2000-02-07 22:42:41 +00:00
831bc265cc Include gnome-animator as part of non-experimental header files. Implement
* libgnomeui/libgnomeui.h: Include gnome-animator as part of non-experimental header files.
* libgnomeui/gnome-textfu.[ch]: Implement tags specified by dcm.
* macros/autogen.sh: Only delete macros/gnome-gettext.m4, not other files (such as gnome-data/gnome-gettext.m4 :)
* autogen.sh: Likewise
* gnome-config.in: Fix --libs gtkxmhtml to actually include -lgtkxmhtml in the link line.

svn path=/trunk/; revision=1685
2000-02-07 17:53:33 +00:00
f42a342f87 finished.
2000-02-07  Damon Chaplin  <damon@helixcode.com>

	* widgets/shortcut-bar/e-group-bar.c (e_group_bar_draw): finished.

	* widgets/shortcut-bar/e-icon-bar.c (e_icon_bar_item_released):
	check that an item was pressed.

svn path=/trunk/; revision=1684
2000-02-07 15:21:45 +00:00
99d71d1132 Setup the scroll region of the table canvas on size allocation.
2000-02-07  Miguel de Icaza  <miguel@gnu.org>

	* e-table.c (e_table_setup_table): Setup the scroll region of the
	table canvas on size allocation.
	(e_table_canvas_realize): Do not set the scrollregion here.
	(e_table_canvas_init): Move root initialization here.

svn path=/trunk/; revision=1683
2000-02-07 13:08:33 +00:00
dec6d6b097 New macro. This is an improved version of AC_CHECK_TYPE which takes into
2000-02-05  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-types.m4 (AC_LIBGTOP_CHECK_TYPE): New macro. This
	is an improved version of AC_CHECK_TYPE which takes into account
	that we need to #include some other header files on some systems
	to get some types.
	(GNOME_LIBGTOP_TYPES): Check for <sys/bitypes.h> for Tru64 and
	use AC_LIBGTOP_CHECK_TYPE rather than AC_CHECK_TYPE.

svn path=/trunk/; revision=1667
2000-02-04 22:25:36 +00:00
5d56cdb0b3 New function to create the base VObject for a calendar.
2000-02-04  Federico Mena Quintero  <federico@helixcode.com>

	* cal-backend.c (get_calendar_base_vobject): New function to
	create the base VObject for a calendar.
	(cal_backend_get_object): Create the base calendar and add the
	sought object to it, then stringify it.

	* evolution-calendar.idl (Listener::obj_added
	Listener::obj_changed): Now these pass in just the UIDs, not the
	complete objects.

	* cal-listener.c (Listener_obj_added): Changed to pass in the uid,
	not the object.
	(Listener_obj_changed): Likewise.

	* cal-client.h (CalClientClass): Made the obj_added and
	obj_changed signals take in the UIDs, not the full objects.

	* cal-client.c (obj_added_cb): Likewise.
	(obj_changed_cb): Likewise.

svn path=/trunk/; revision=1666
2000-02-04 04:42:34 +00:00
d5c007ca4f Chut.
svn path=/trunk/; revision=1665
2000-02-03 09:10:00 +00:00
38ca3c828f Sync to laptop - Federico
svn path=/trunk/; revision=1664
2000-02-03 07:16:37 +00:00
9d6fc52249 Added the get_object() method.
2000-02-03  Federico Mena Quintero  <federico@helixcode.com>

	* evolution-calendar.idl (Cal): Added the get_object() method.

	* cal-client.c (cal_client_get_object): New function to get a
	calendar object by its UID.

	* cal.c (Cal_get_object): Implemented.

	* cal-backend.c (cal_backend_get_object): New unfinished backend
	function.  We need some reorganizing of how the calendar objects
	are stored.

svn path=/trunk/; revision=1663
2000-02-02 09:51:20 +00:00
9d4be61768 typo fix : use
2000-02-03  bertrand  <Bertrand.Guiheneuf@aful.org>

	* camel/camel-formatter.c (find_preferred_displayable_body_part_in_multipart_alternative):
	(mime_part_to_html): typo fix :
	use find_preferred_displayable_body_part_in_multipart_alternative
	instead of the other names. Allows camel to have no undefined symbols.

Ooops, had forgotten changelog entry.

svn path=/trunk/; revision=1662
2000-02-02 09:31:40 +00:00
a436540603 *** empty log message ***
svn path=/trunk/; revision=1661
2000-02-02 09:27:36 +00:00
0715f576a8 + * tests/test-formatter.c: New file; intended to test the
+	CamelFormatter class.
+
+	* camel/camel-formatter.c: Lots of cleanup, commenting, some new
+	functions, and a really basic skeleton for getting bonobo objects
+	into the html.
+	(encode_entities): New function, stolen from Daniel Velliard.

svn path=/trunk/; revision=1660
2000-02-02 05:27:27 +00:00
c499722cef Files to load the contact print style editor from the glade file. Doesn't
2000-01-28  Christopher James Lahey  <clahey@helixcode.com>

        * addressbook/printing/e-contact-print-style-editor.h,
        addressbook/printing/e-contact-print-style-editor.c,
        addressbook/printing/test-contact-print-style-editor.c: Files to
        load the contact print style editor from the glade file.  Doesn't
        really do anything yet.

        * addressbook/printing/Makefile.am: Added style editor stuff.

        * addressbook/printing/e-contact-print.glade: Changed a bit.
        Fixed an out of place widget.

        * addressbook/printing/.cvsignore: Added
        contact-print-style-editor-test.

        * addressbook/printing/smallbook.ecps: Fixed up the values to
        match the new types.

        * addressbook/printing/medbook.ecps,
        addressbook/printing/phonelist.ecps: Added two new printing
        styles.

        * addressbook/printing/e-contact-print.h: Fixed an incorrect
        comment.

        * addressbook/printing/e-contact-print.c: Added columns and letter
        tabs.  Tweaked spacing all over the place.  Fixed card height
        function so that column wrapping is always done correctly.  Added
        pulling of style information from a file.  Added line wrapping
        within each text field.

        * addressbook/printing/e-contact-print-types.h: Added a type field
        for different types of print styles.

svn path=/trunk/; revision=1659
2000-02-02 01:16:29 +00:00
1da8f9c265 Handle the cal_loaded signal from the listener. Store the calendar client
2000-02-01  Federico Mena Quintero  <federico@helixcode.com>

	* cal-client.c (cal_loaded): Handle the cal_loaded signal from the
	listener.  Store the calendar client interface object, and emit
	our own cal_loaded signal.
	(cal_client_load_calendar): Connect to the listener's signals.
	(cal_client_class_init): Added the "obj_added", "obj_removed",
	öbj_changed" signals.
	(obj_added_cb): Handle the signal from the listener.
	(obj_removed_cb): Likewise.
	(obj_changed_cb): Likewise.

svn path=/trunk/; revision=1658
2000-02-01 10:06:20 +00:00
a2d268b3d1 Sync to desktop - Federico
svn path=/trunk/; revision=1657
2000-01-30 23:47:42 +00:00
6f3fcd5ccd Add evolution-mail.gnorba file
svn path=/trunk/; revision=1656
2000-01-29 22:39:27 +00:00
44ac798451 Add missing file
svn path=/trunk/; revision=1655
2000-01-29 22:26:15 +00:00
c2ae364efc More work. Not funny that e-table does not display.
More work.  Not funny that e-table does not display.

Miguel.

svn path=/trunk/; revision=1654
2000-01-29 12:29:44 +00:00