2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
...And a whole bunch more build fixes.
* mail-vfolder.c (mail_vfolder_delete_uri): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-session.c (main_get_filter_driver): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-ops.c (build_from): Don't use g_string_sprintfa() anymore
since it is apparently deprecated.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Don't use
g_string_sprintfa() anymore since it is apparently deprecated.
* mail-autofilter.c: Don't use g_string_sprintfa() anymore since
it is apparently deprecated.
* folder-browser.c: Don't use g_string_sprintfa() anymore since it
is apparently deprecated.
* mail-search.c (mail_search_set_subject): Remove the unnecessary
g_strdup()'age as well as fix a possible buffer overrun.
* mail-local.c (mail_local_folder_construct): Use
g_path_get_basename().
* mail-config-druid.c (make_account): Don't use e_utf8_*
functions.
svn path=/trunk/; revision=19152
2002-12-17 Chris Toshok <toshok@ximian.com>
[ Fixes bug #35135 ]
* backend/ebook/e-book-util.c (set_default_book_uri_local): don't
free the default_book_uri here, it's done in set_default_book_uri.
(set_default_book_uri): break some stuff out from
set_default_book_uri_from_bonobo_conf to here so it can be used
both from that function and the bonobo listener.
(default_folder_listener): set the new default book uri.
(set_default_book_uri_from_bonobo_conf): install the bonobo conf
listener so we'll get updates.
svn path=/trunk/; revision=19148
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Detect text/html
parts that were marked as text/plain and re-tag them as text/html
parts. Note: currently just checks if the first non-lwsp char is a
'<' - but we might need to be smarter about this? *sigh* Stupid
Windows mailers.
svn path=/trunk/; revision=19143
2002-12-16 Chris Toshok <toshok@ximian.com>
* e-table-header-utils.c (e_table_draw_elided_string): pass in the
pango layout so we don't have to create another one here. Also,
elide the string properly (same method that e-clipped-label uses)
and simplify the extent operations.
(e_table_header_compute_height): just use
pango_layout_get_pixel_size here.
(e_table_header_draw_button): make sure the clip rectangle is
NULL'ed on our gc, since random gtk calls seem to install one,
which sucks. Also, simplify the pango layout stuff a little.
svn path=/trunk/; revision=19142
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c #define a STANDARD_ISSUE_TABLE_OPEN string used
for wrapping textual message parts to keep them being fully-left
justified.
(mail_format_raw_message): Wrap the content with a table so that
text isn't fully left-justified.
(write_hr): Use it here too.
(handle_text_plain): And finally here.
svn path=/trunk/; revision=19141
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-display.c (mail_error_printf): Use camel_text_to_html()
instead of e_text_to_html().
(mail_text_write): Write the content directly to gtkhtml through
an html stream filter.
* mail-format.c (attachment_header): Use camel_text_to_html()
instead of e_text_to_html().
(write_text_header): Same.
(write_address): Here too.
(mail_get_message_rfc822): And here.
(mail_get_message_body): And finally here.
svn path=/trunk/; revision=19133
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* e-shell-importer.c: Don't #include "e-util/e-html-utils.h" as
we don't use it.
svn path=/trunk/; revision=19131
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* e-html-utils.[c,h]: Removed. Back to the fiery depths of hell
from whence ye came!
svn path=/trunk/; revision=19130
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-filter-tohtml.c (camel_text_to_html): New convenience
function to replace calls to e_text_to_html() in the
mailer/composer etc.
svn path=/trunk/; revision=19128
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (handle_text_plain): Re-implemented to use
streams. Also no need to check for html since
camel-mime-part-utils.c now does this for us and will re-tag the
mime-type as text/html thus the UI can be completely ignorant of
this process.
(handle_text_plain_flowed): Removed.
(write_one_text_plain_chunk): Removed.
(try_uudecoding): Removed.
(try_inline_binhex): Removed.
(handle_text_enriched): Re-implemented to use streams too.
2002-12-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (write_text_header): Change the order of the args
to be consistant with other write functions.
(write_date): Same.
(write_field_row_begin): Here too.
(write_headers): Here too.
(write_one_text_plain_chunk): Don't strdup just to pass it to
mail_text_write() so that it can dup it yet again into html text
and dup it yet a 3rd time into a GByteArray. Instead just write it
to gtkhtml.
(handle_*): Fixed arguments to take a MailDisplayStream instead of
a GtkHTML widget and a GtkHMLStream.
* mail-display.c (mail_display_render): Create a MailDisplayStream
to pass to mail_format_mime_message() and
mail_format_raw_message().
* mail-display-stream.[c,h]: New stream to replace
mail-stream-gtkhtml.c
* mail-stream-gtkhtml.[c,h]: Removed.
svn path=/trunk/; revision=19126
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* camel.h: #include some headers we had forgotten to add
previously, also added camel-mime-filter-enriched.h.
* camel-mime-filter-enriched.[c,h]: New stream filter to convert
text/enriched and text/richtext into HTML.
svn path=/trunk/; revision=19124
2002-12-16 Jeffrey Stedfast <fejj@ximian.com>
* gui/e-itip-control.c (write_html): Correctly convert text.value
into HTML here (ie, don't pass "<i>None</i>" into e_text_to_html()
if text.value is NULL).
svn path=/trunk/; revision=19123
2002-12-15 Jeffrey Stedfast <fejj@ximian.com>
* camel-multipart-signed.c (camel_multipart_signed_verify): Don't
apply the CANON_STRIP filter here, since we are verifying whatever
raw data we received (all we want to do is convert o the canonical
CRLF format).
svn path=/trunk/; revision=19122
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (check_send_configuration): Make sure the
folder-browser is not NULL or we'll crash.
svn path=/trunk/; revision=19115
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-preferences.c (mail_preferences_construct): Fix the colour
code to get a guint32 rgb correctly (I think - can't test because
the shell keeps crashing, yay).
svn path=/trunk/; revision=19114
2002-12-13 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c: Get rid of unneeded CamelObject casts.
(user_message_response): Don't unref the dialog object after we've
destroyed it.
* mail-display.c (write_data_to_file): Don't unref the dialog
object after we've destroyed it.
* mail-callbacks.c: Same here.
* component-factory.c: Here too.
* message-tag-editor.c: Added MESSAGE_TAG_EDITOR_GET_CLASS macros.
svn path=/trunk/; revision=19112
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (cursor_changed): Use an easier method for getting
the iter.
svn path=/trunk/; revision=19108
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* vfolder-rule.c (vfolder_editor_sourcelist_new): New custom
function for creating the source_list widget.
(get_widget): Removed the source_list creation code.
* rule-editor.c (rule_editor_construct): Listen to row-activated
for double-click events. Also, removed the model creation code out
of here.
(rule_editor_treeview_new): Moved the treeview and model creation
code into here instead, and made the glade widgets into custom
widgets.
svn path=/trunk/; revision=19106
2002-12-12 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c (account_delete_clicked): Get rid of the ETable
#ifdef's - we won't ever be using ETable.
(account_default_clicked): Same.
(account_able_clicked): Here too.
(mail_accounts_load): And here.
(mail_accounts_treeview_new): Renamed from etable_new since we
won't ever be using an etable.
(mail_accounts_tab_construct): And finally here.
svn path=/trunk/; revision=19104
* Locations: Removed Marquette from the listing, it is no longer listed by METAR. This is per bug 29693.
* Locations.h: Removed Marquette from the listing, it is no longer listed by METAR.
svn path=/trunk/; revision=19100
2002-12-11 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (mail_format_data_wrapper_write_to_stream): New
function to handle a lot of the filtering/etc that was done in
mail_format_get_data_wrapper_text(). This is the first step toward
getting rid of e-text-to-html crap and using my tohtml stream
filter instead.
(mail_format_get_data_wrapper_text): Use the new function.
(mail_format_raw_message): Use camel streams to write the content
to gtkhtml rather than using get_data_wrapper_text() and then
converting that to html and then writing it to the gtkhtml stream.
svn path=/trunk/; revision=19098
2002-12-10 Not Zed <NotZed@Ximian.com>
* mail-composer-prefs.c (mail_composer_prefs_construct): language
is a treeview now. Not sure what to do with it yet, but get rid
of one warning anyway.
(mail_composer_prefs_construct): Same for sig_clist, but setup
model.
(sig_fill_clist): Change to use a gtktreeview instead of a clist.
(sig_selection_changed): New method to handle signature selection
changes with the new widgets.
(sig_delete): clist -> treeview.
(mail_composer_prefs_new_signature): Same.
(sig_edit): ditto.
(sig_current_sig): removed.
(sig_row_unselect): Removed.
(sig_row_select): Removed, now redundant.
(spell_select_lang): Removed, redundant.
(spell_set_ui_language): New implementation using list model more
effectively.
(spell_get_language_str): Same here.
(spell_set_ui_language): Removed this too, merged into
spell_set_ui, it was just wasting stack space.
(spell_language_selection_changed): renemd from
spell_language_select_row, converted to gtktreeview, etc.
(spell_language_unselect_row): Removed.
(spell_language_enable): Redone to use tree model.
(spell_language_button_press): Removed, i dont think this is
needed anymore.
(spell_setup): dont hook onto redundant signals.
* mail-config-factory.c (config_control_factory_cb): ignore
mail-font-prefs in a different way (so we dont assert)
svn path=/trunk/; revision=19084
2002-12-10 Not Zed <NotZed@Ximian.com>
* e-multi-config-dialog.c (impl_response): Removed the
g_assert_not_reached(). If you hit the close button on your
window it would abort, treat same as close.
svn path=/trunk/; revision=19083