2000-02-15 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-mime-part.c: include gmime-base64.h
various compilation and runtime fixes.
(_set_input_stream): store the input substream
for the content object.
* camel/camel-data-wrapper.h: declare the
set/get function on input/output stream.
* camel/camel-mime-part.c (_get_content_object):
don't use a temporary mem stream.
* camel/camel-seekable-substream.c (_seek):
(_eos):
(_read): the substream can be unlimited in length
* camel/camel-data-wrapper.c (camel_data_wrapper_class_init):
set the get/set_input/output_stream methods.
* camel/camel-multipart.c (_construct_from_stream):
camel_stream_seek -> camel_seekable_stream_seek
work on the new parser scheme.
temporary sync to laptop.
svn path=/trunk/; revision=1781
2000-02-14 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/gmime-utils.c (get_header_array_from_stream): use the
eos stream method.
(gmime_read_line_from_stream): ditto.
* camel/camel-stream-fs.h (struct ): add the eof field
cosmetics changes.
* camel/camel-stream-fs.c (camel_stream_fs_init): set eof.
(_read): set eof on end of file.
(_eos): implemented.
* camel/gmime-utils.c (get_header_array_from_stream):
make a blocking version of the header parser.
When the fs stream uses gnome-vfs, this should
be changed.
(gmime_read_line_from_stream): ditto.
svn path=/trunk/; revision=1780
2000-02-14 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/gmime-utils.c (get_header_array_from_stream): use the
eos stream method.
(gmime_read_line_from_stream): ditto.
* camel/camel-stream-fs.h (struct ): add the eof field
cosmetics changes.
* camel/camel-stream-fs.c (camel_stream_fs_init): set eof.
(_read): set eof on end of file.
(_eos): implemented.
* camel/gmime-utils.c (get_header_array_from_stream):
make a blocking version of the header parser.
When the fs stream uses gnome-vfs, this should
be changed.
(gmime_read_line_from_stream): ditto.
svn path=/trunk/; revision=1779
2000-02-14 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/gmime-utils.c (get_header_array_from_stream):
make a blocking version of the header parser.
When the fs stream uses gnome-vfs, this should
be changed.
(gmime_read_line_from_stream): ditto.
2000-02-11 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-stream-fs.c:
everywhere, when using the cur_pos field, do it
on the CamelSeekableStream object.
(_seek): small fix.
* camel/camel-seekable-stream.c (camel_seekable_stream_seek):
s/camel_stream_seek/camel_seekable_stream_seek/g
* camel/camel-seekable-stream.h:
(struct ): added a field to store the
current position.
* camel/camel-seekable-stream.c (camel_seekable_stream_get_current_position):
New function. Allows to get the current position
of a seekable stream.
In fact much more changes, but I am lazy.
This is the begining of some major changes
in camel.
svn path=/trunk/; revision=1778
2000-02-14 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/data-wrapper-repository.c (data_wrapper_repository_init):
by default, a message/rfc822 object is handled by the
CamelMimeMessage class. Should fix Matt's fantastic
Message viewer test.
svn path=/trunk/; revision=1776
2000-02-14 NotZed <notzed@zedzone.helixcode.com>
* Makefile: Hack together a build using libtool. This should all
be auto*'d at some point I guess.
svn path=/trunk/; revision=1773
2000-02-13 NotZed <notzed@zedzone.helixcode.com>
* providers/mbox/camel-mbox-search.c: New file, implements the
search api for mbox folders.
* providers/mbox/Makefile.am: Link with ibex.
* camel-folder.c (camel_folder_has_search_capability): Api
additions.
(camel_folder_search_by_expression): Ditto.
2000-02-12 NotZed <notzed@zedzone.helixcode.com>
* providers/mbox/camel-mbox-folder.c (_set_name): Setup index
filename as well.
(_init_with_store): Init index filename. Hmm, none of these
names ever seem to get free'd (FIXME?)
* providers/mbox/camel-mbox-folder.h: Add index file name.
2000-02-12 NotZed <notzed@helixcode.com>
* camel-folder.h: Add folder search functions.
** Created ChangeLog just for camel **
- refer to ../ChangeLog for changes prior to this date.
svn path=/trunk/; revision=1772
+ crashes message-browser.
+
+ * tests/ui-tests/message-browser.c (get_gtk_html_window): Takes a
+ CamelMimeMessage as a param, rather than a filename.
+ (main): Puts our windows in an hpane rather than a vbox. Also
+ opens a file dlg box if a filename wasn't given as a first param.
svn path=/trunk/; revision=1771
+ -1 if we fail to load the file.
+ (camel_stream_fs_new_with_name): If stream_fs->fd is -1, return
+ NULL. These changes make it so that a CamelStreamFs won't be
+ created if you give it a bogus filename; they may be replaced once
+ exception handling is in place.
svn path=/trunk/; revision=1767
+ items.
+ (mime_message_to_html): New function; translates a
+ CamelMimeMessage into two strings (one for the header, and one for
+ the body).
+ (get_gtk_html_window): New function; fills out a window with
+ html. The html is taken from a processed rfc822 file, via a
+ CamelFormatter.
+
+ * camel/camel-formatter.c: Added assertions.
+ (handle_text_html): Don't call text_to_html on something that's
+ already html.
+ (multipart_foreach): function deleted.
+
+ * mail/html-stream.c (html_stream_new): Second param of
+ gtk_html_begin should be "", not NULL.
+ (html_stream_new): gtk_html_parse() is deprecated, so the call was
+ removed.
svn path=/trunk/; revision=1766
* mail/html-stream.h: HTMLStreamClass's parent changed to
CamelStreamClass, not CamelStream.
* tests/ui-tests/message-browser.c: Added preliminary support for
the viewing of messages via gtkhtml. Lots of commenting.
svn path=/trunk/; revision=1765
Some redraw speedups and the addition of XL2000 style alpha bended selections.
2000-02-13 Jody Goldberg <jgoldberg@home.com>
* ./src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
bounding grid lines too.
* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
region to the visible range. The layout still needs cleaning to
match the 'correct' way of implementing canvas-items, but this
heuristic saves us lots of iterations through the accumulator for
the size of the entire sheet.
2000-02-12 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
margin changes.
* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
XL2000. Things are correct for rows, colwidth are quoted in pts
rather than char widths.
(get_col_from_pos) : Use visible flag.
(item_bar_start_resize) : Function renaming.
(is_pointer_on_division) : Ditto.
(item_bar_draw) : Changes to margins.
* src/item-edit.c : Function renaming.
* src/item-cursor.c : Ditto. decrease spacing for auto handle.
* src/item-grid.c (item_grid_draw) : Remove inversion process for the
selection. Instead have the cells draw their background
differently. Use the visible flag.
(item_grid_paint_empty_cell) : Ditto.
(item_grid_paint_cell) : Ditto.
* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.
* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
a selected cell differently.
* src/print-cell.c (DIM) : margins are already included.
(print_cell_text) : Adjust argument order to more closely match
cell_draw. Add support for vertical alignment of 1 line cells.
Invert control of single vs multiple lines.
(print_cell) : Adjust to changes in the arguments.
(print_cell_range) : Use the visible flag.
Draw line at the boundary rather than pretending there were
additional rows/cols.
* src/print.c (compute_groups) : size_pts INCLUDES margins. Use 'visible' flag.
(print_page) : Adjust to function renaming.
(print_range_used_units) : Ditto.
* src/selection.c : Include sheet-view directly for now.
(cb_set_row_height) : Adjust to function renaming.
* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
renaming.
(sheet_view_redraw_headers) : Ditto.
(sheet_view_set_zoom_factor) : Ditto.
(sheet_view_col_size_changed) : Ditto.
(sheet_view_row_size_changed) : Ditto.
(sheet_view_comment_get_points) : Ditto.
* src/sheet.[ch] : Rationalize function names, and add glossary.
Make the use of margins and sizes (in points and pixels) consistant.
(sheet_col_get_external_width : Delete.
(sheet_row_get_external_height : Delete.
(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
(sheet_col_set_width : Rename sheet_col_set_size_pixels.
(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
(sheet_row_set_height : Rename sheet_row_set_size_pixels.
(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
(sheet_{row,col}_set_default_size_pts) : New functions.
(sheet_init_default_styles) : Tune to match XL defaults.
* src/sort.c : Use g_strcasecmp, and include <stdlib.h>
* src/style.c (style_color_new) : Init the selection colour as a 50%
alpha blend with lavender.
* src/style.h : Change default font to be Helvetica 9 because it will
scale better when the standard 96 dpi resolution is assumed.
Add a selected_color to StyleColor.
* src/value-sheet.c : Include <gnome.h> to get the
internationalization support.
* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
sheet_col_set_width -> sheet_col_set_size_pixels.
(workbook_cmd_format_column_width) :
sheet_col_set_width_units -> sheet_col_set_size_pts.
(workbook_cmd_format_row_auto_fit) :
sheet_row_set_height -> sheet_row_set_size_pixels
(workbook_cmd_format_row_height) :
sheet_row_set_height_units -> sheet_row_set_size_pts.
* src/xml-io.c (xml_read_rows_info) : Rename
sheet_row_set_height_units -> sheet_row_set_size_pts.
(xml_read_cols_info) : Rename
sheet_col_set_height_units -> sheet_col_set_size_pts.
(xml_read_colrow_info) : Remove hack with negative pixels.
Use 'visible' flag instead.
(xml_write_colrow_info) : Ditto.
svn path=/trunk/; revision=1764
2000-02-12 Iain Holmes <ih@csd.abdn.ac.uk>
* e-table-header-item.c (ethi_drag_motion): Check the ethi is actually
the one being dragged. Prevents crashes when trying to drag headeritems
and there are multiple headeritems on the same canvas.
(ethi_drag_end): Same.
(ethi_drag_drop): Same.
(ethi_drag_leave): Same.
svn path=/trunk/; revision=1745
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* Makefile.am: Add the e-text directory to the includes list.
* message-list.c: Change the call to e_cell_text_new, since
there's an added argument.
svn path=/trunk/; revision=1744
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* test-check.c: Added test of sort arrows.
* e-table-col.h, e-table-col.c: Added sort arrows for column
headers (It doesn't actually sort. It just displays the arrows.)
* e-table-header-item.c: Added display of arrows.
svn path=/trunk/; revision=1743
2000-02-11 Federico Mena Quintero <federico@helixcode.com>
* cal-client.c (cal_client_update_object): Implemented.
* cal.c (cal_notify_update): New function to notify the listener
about an updated object.
(Cal_update_object): Implemented.
(Cal_get_uids): set_release() the sequence to TRUE.
(Cal_get_events_in_range): Likewise.
* cal-backend.c (remove_object): New function to remove objects
from a calendar backend.
(cal_backend_update_object): New public function to update an
object and notify clients about it.
* evolution-calendar.idl (Cal): Added update_object() and
delete_object() methods.
(Listener): Removed the obj_changed method and renamed obj_added
to obj_updated. We now only have updated and removed notifiers.
* cal-listener.[ch]: Removed the "changed" notification code.
Changed the "added" notification code to the "updated"
notification.
* cal-client.c: Likewise.
* tlacuache.c (create_cal_factory): Connect to "destroy" on the
factory and exit the main loop when the factory is destroyed.
* cal-factory.c (backend_destroy_cb): New callback used when a
backend is destroyed. Removes the backend from the factory's hash
table and unrefs the factory if all backends go away.
(add_calendar_client): Free the environment.
* cal.c (cal_new): Use bonobo_object_unref() if we fail to
initialize.
* cal-listener.c (cal_listener_new): Likewise.
* layout.c (layout_events): Plug li.partition memory leak.
svn path=/trunk/; revision=1742
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* addressbook/contact-editor/e-contact-editor.c: Fixed the
location the first time you see the drop down menus for changing
which phone, email, or snail mail address you see.
svn path=/trunk/; revision=1741
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text.c (e_text_event): Made a click on a text
widget set the cursor properly.
svn path=/trunk/; revision=1740
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.h, e-cell-text.c: Add an editable argument to
e_cell_text_new.
* test-table.c, test-cols.c, test-check.c: Set the editable
argument to e_cell_text_new.
svn path=/trunk/; revision=1738
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* widgets/e-text/e-text.h: Removed some arguments from the .h that
will never be implemented.
svn path=/trunk/; revision=1737
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* e-table-header-item.h, e-table-header-item.c: Added reordering
of columns.
* e-table-header.c: Fixed a couple of bugs in the move column and
remove column functions.
svn path=/trunk/; revision=1736
2000-02-11 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Made space around text look right. Added a
blinking cursor.
svn path=/trunk/; revision=1735
2000-02-10 Federico Mena Quintero <federico@helixcode.com>
* cal-backend.c (cal_backend_add_cal): Connect to the Cal's
destroy signal.
(cal_backend_remove_cal): Killed function now that removal of Cal
objects is done in their destroy callback.
(cal_destroy_cb): New callback to remove a Cal from the backend's
list of clients. Also, the backend destroys itself when there are
no more clients connected to it.
(save): New placeholder function to save a backend.
(destroy): New function to destroy a backend's data.
(cal_backend_destroy): Save the calendar and destroy it.
* cal.c (cal_destroy): Reset the priv->backend to NULL.
* cal-factory.c (add_calendar_client): There is no need to call
cal_backend_remove_cal(); we can now just destroy the Cal object.
(create_fn): Make sure we always unref the URI.
(load_fn): Move the URI unref to the end of the function for
safety.
* cal-factory.c (add_calendar_client): Unref the Cal only if
notification of the listener was unsuccessful. Otherwise, the
calendar user agent (Listener side) keeps the reference.
* tl-test.c (list_uids): Free the calobj.
* cal-client.c (cal_loaded_cb): Use bonobo_object_unref() to get
rid of the listener.
(load_or_create): Likewise.
(destroy_factory): New function to get rid of the factory.
(destroy_listener): New function to get rid of the listener.
(destroy_cal): New function to get rid of the calendar client
interface object.
(cal_client_destroy): Free all resources.
(cal_client_get_object): CORBA_free() the calobj string. Boy, I
love memprof.
* cal-listener.c (cal_listener_destroy): Reset the priv->cal to
CORBA_OBJECT_NIL.
* cal-backend.c (cal_backend_remove_cal): Do not unref the Cal,
since the calendar user agent owns it.
(cal_backend_add_cal): Do not ref the Cal, since the calendar user
agent owns it.
* cal-factory.c (add_calendar_client): Use bonobo_object_unref()
to get rid of the calendar client interface object.
* calobj.c (ical_object_create_from_vobject): Duplicate the
default "PUBLIC" string.
2000-02-09 Federico Mena Quintero <federico@helixcode.com>
* cal-factory.c (cal_factory_load): Added documentation comment.
(load_fn): Do not print a message if the backend could not be
loaded due to a non-fatal error.
(queue_load_create_job): Moved the stuff from cal_factory_load()
to here. Now this function serves to queue load or create
requests.
(cal_factory_load): Use queue_load_create_job().
(cal_factory_create): Implemented; use queue_load_create_job().
(create_fn): New job handler for creating new calendars.
(create_backend): New function to create a new backend with a new
calendar.
(add_backend): New helper function to add backends to the
factory's hash table.
(load_backend): Use add_backend() instead of adding the backend by
ourselves.
* cal-client.c (load_or_create): Moved the functionality from
cal_client_load_calendar() to here, and added an option to create
a new calendar instead of loading an existing one.
(cal_client_load_calendar): Use load_or_create().
(cal_client_create_calendar): Implemented.
* cal-backend.c (cal_backend_create): Implemented.
* evolution-calendar.idl (LoadStatus): Added an IN_USE error for
create requests.
* cal-listener.h (CalListenerLoadStatus): Added CAL_LISTENER_LOAD_IN_USE.
* cal-listener.c (Listener_cal_loaded): Convert the IN_USE error.
* cal-client.h (CalClientLoadStatus): Added CAL_CLIENT_LOAD_IN_USE.
* cal-client.c (cal_loaded_cb): Handle CAL_LISTENER_LOAD_IN_USE.
* tl-test.c: New test program for the calendar client side; it
also exercises the server side by sending commands to it.
* Makefile.am: Added the tl-test program.
* tlacuache.gnorba: Updated.
* tlacuache.c (create_cal_factory): Use the right GOAD id.
* cal-client.c (cal_client_construct): Use the right GOAD id.
svn path=/trunk/; revision=1732
2000-02-10 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/data-wrapper-repository.c (data_wrapper_repository_init):
default the text/* mime types to CamelSimpleDataWrapper so
that Michael can use get_stream.
svn path=/trunk/; revision=1727
2000-02-10 NotZed <notzed@zedzone.helixcode.com>
* camel/camel-simple-data-wrapper-stream.h: The superclass is
actually a seekable stream, not just a stream.
svn path=/trunk/; revision=1726
2000-02-10 bertrand <Bertrand.Guiheneuf@aful.org>
* tests/Makefile.am (THREAD_RELATED_TESTS): don't
build thread related tests if evolution has been
compiled with no thread support.
* configure.in (have_pthread): allow user to enable/disable
thread support at configure time
(EXTRA_GNOME_CFLAGS):
(EXTRA_GNOME_LIBS): thread support is directly
included in this variable if enabled. No more
EXTRA_GNOME_CFLAGS_THREADS
Other special support should be added in
EXTRA_GNOME_LIBS and EXTRA_GNOME_CFLAGS
instead of redefining a new variable
each time we want to add a new lib.
(bonobo, ....)
* camel/camel.c (camel_init): only try to initialize threads if
we enabled threads support.
* tests/ui-tests/Makefile.am (message_browser_LDADD): use
EXTRA_GNOME_LIBS
* configure.in (have_pthread): remove HAVE_PTHREADS
variable. Define ENABLE_THREADS instead.
* camel/Makefile.am: use ENABLE_THREADS not HAVE_PTHREADS
to test if we build thread relateed code.
* tests/Makefile.am: use EXTRA_GNOME_LIBS,
not EXTRA_GNOME_LIBS_THREADS
I need to be able to disable thread support to use Insure.
svn path=/trunk/; revision=1725
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-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-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-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 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