Commit Graph

265 Commits

Author SHA1 Message Date
36d9b4794e If the part url is a text part, use
2003-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_url_requested): If the part url is a text
	part, use mail_format_data_wrapper_write_to_stream(). This should
	fix bug #39204.

	* mail-format.c (mail_format_data_wrapper_write_to_stream): Make public.

svn path=/trunk/; revision=20219
2003-03-07 18:43:38 +00:00
de02508770 Set mail_display->destroyed = TRUE. This is a workaround for the
2003-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (mail_display_destroy): Set
	mail_display->destroyed = TRUE. This is a workaround for the
	GTK_OBJECT_DESTROYED() macro that we used to use before.

svn path=/trunk/; revision=19883
2003-02-11 20:45:27 +00:00
0701addc19 Use g_signal_emit() rather than gtk_signal_emit(). (build_flat): Same
2003-02-10  Jeffrey Stedfast  <fejj@ximian.com>

	* message-list.c (build_tree): Use g_signal_emit() rather than
	gtk_signal_emit().
	(build_flat): Same here.

	* mail-signature-editor.c: #include <string.h>

	* mail-vfolder.c: #include <string.h>

	* mail-session.c: #include <string.h>

	* mail-search.c: #include <string.h>

	* mail-mt.c: #include <string.h>

	* mail-ops.c (save_part_save): Use strcasecmp() instead of
	g_strcasecmp().

	* mail-local.c: #include <string.h>
	(reconfigure_folder_reconfigured): Use a GtkDialog instead of
	gnome_error_dialog().

	* mail-format.c (find_preferred_alternative): Use g_ascii_strdown
	since g_strdown is deprecated.
	(fake_mime_part_from_data): Removed, no longer used it seems.
	(destroy_part): Also removed.

	* mail-display.c (make_popup_window): Replace call to
	gtk_window_set_polociy() with gtk_window_set_resizable() instead.
	(popup_size_allocate_cb): Use gtk_window_set_position() with
	GTK_WIN_POS_MOUSE instead of calculating the position to put it
	in.

svn path=/trunk/; revision=19878
2003-02-10 19:50:55 +00:00
e83af287b2 look in the http cache for images when saving (image_save_as): remove
2003-02-10  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (save_url): look in the http cache for images
	when saving
	(image_save_as): remove random warning.
	(do_external_viewer): remove unused variable.
	(do_attachment_header): use g_ascii_strdown

svn path=/trunk/; revision=19864
2003-02-10 07:08:42 +00:00
a3fb0b3114 don't use random memory as a gconf client.
2003-02-07  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (save_data_cb): don't use random memory as a
	gconf client.

svn path=/trunk/; revision=19848
2003-02-07 21:58:04 +00:00
d2f0410b09 Just use gnome_vfs_get_mime_type_from_name() so we can forget all the crap
2003-02-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-identify.c (mail_identify_mime_part): Just use
	gnome_vfs_get_mime_type_from_name() so we can forget all the crap
	I implemented before.

2003-02-01  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_link_clicked): Pass in the *address* of the
	GError to gnome_url_show(), otherwise bad things happen :-)

svn path=/trunk/; revision=19711
2003-02-03 19:07:48 +00:00
6b1b5d30fd Fixed a #warning by converting a local path into a file: uri before
2003-01-27  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-identify.c (mail_identify_mime_part): Fixed a #warning by
	converting a local path into a file: uri before feeding it to
	gnome-vfs.

	* message-list.c (message_list_set_folder): Removed a FIXME that
	I've decided is no longer needed.

2003-01-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.c (mail_config_add_account): Emit the account-added
	event.
	(mail_config_remove_account): Emit the account-removed event.

	* mail-account-gui.c (mail_account_gui_save): Emit the changed
	event on the account-list for the changed account.

svn path=/trunk/; revision=19655
2003-01-27 18:06:57 +00:00
09e6aacd2d transfer the current acount info, which will be regarded as the sender of
2002-12-07 leon.zhang  <leon.zhang@sun.com>

        * component-factory.c (user_create_new_item_cb):  transfer the
        current acount info, which will be regarded as the sender of
        new composer, to send_to_url().

        * mail-callbacks.h (send_to_url): Add a new parameter for parent
        folder uri.

        * mail-callbacks.c (send_to_url): Create composer base on source
        account info from parent folder physical uri.
        (post_to_url): create composer based on current account from
        parent folder physical uri.

        * mail-display.c (on_link_clicked): Apply new format of function:
        send_to_url.

        Fixes bug #35123 #35289

2003-01-24  Not Zed  <NotZed@Ximian.com>

        * mail-local.c (non_equal): We do actually need to check they are
        file url's, otherwise, all url's match.

svn path=/trunk/; revision=19611
2003-01-24 04:59:36 +00:00
798c3cf8f0 (on_link_clicked): call gnome_url_show with all its arguments so
that it actually does something.  Also pass news and nntp urls to
	gnome_url_show so that they can be handled properly.

svn path=/trunk/; revision=19515
2003-01-18 16:56:32 +00:00
8f44e1e0f9 make the event handlers return FALSE so that gtkhtml can process the
2003-01-18  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (html_button_press_event): make the event
	handlers return FALSE so that gtkhtml can process the events.

svn path=/trunk/; revision=19514
2003-01-18 06:15:22 +00:00
67db8b6bdb Change the user_data argument to be of type gpointer instead of
2003-01-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (pixmap_press): Change the user_data argument to
	be of type gpointer instead of EScrollFrame, since, well, it's not
	an EScrollFrame anymore.

svn path=/trunk/; revision=19461
2003-01-14 20:48:26 +00:00
c2c386e480 EScrollFrame --> GtkScrolledWindow
svn path=/trunk/; revision=19440
2003-01-14 16:42:58 +00:00
fb6caf533c Use gconf to get the paned size. (folder_browser_set_message_preview):
2003-01-07  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (save_cursor_pos): Use gconf to get the paned
	size.
	(folder_browser_set_message_preview): Same.
	(folder_browser_toggle_hide_deleted): Use gconf to set the
	hide-deleted state.
	(folder_browser_set_message_display_style): Same but for the
	message_display_style.
	(fb_resize_cb): Save the paned_size via gconf.
	(paned_size_changed): Callback for when the paned_size gets
	changed. Change the folder-browser's paned size to the new
	setting.
	(folder_browser_gui_init): Listen to changes to the paned_size and
	also get the initial size from gconf.

	* message-list.c (message_list_set_folder): Use gconf.
	(regen_list_regen): Use gconf.

	* message-browser.c (transfer_msg_done): Use gconf to get the
	hide_deleted setting.

	* mail-account-gui.c (sig_add_new_signature): Use gconf.

	* folder-browser-ui.c (folder_browser_ui_add_list): Use gconf.

	* folder-browser.c (save_cursor_pos): Use gconf.
	(folder_browser_set_message_preview): Same.
	(folder_browser_toggle_hide_deleted): Here too.
	(folder_browser_set_message_display_style): And here.
	(folder_browser_gui_init): Here too.
	(done_message_selected): And here.

	* mail-config.c (mail_config_get_thread_subject): Removed.
	(mail_config_set_thread_subject): Removed.
	(mail_config_get_empty_trash_on_exit): Removed.
	(mail_config_set_empty_trash_on_exit): Removed.
	(mail_config_get_last_filesel_dir): Removed.
	(mail_config_set_last_filesel_dir): Removed.
	(mail_config_get_hide_deleted): Removed.
	(mail_config_set_hide_deleted): Removed.
	(mail_config_get_paned_size): Removed.
	(mail_config_set_paned_size): Removed.
	(mail_config_get_send_html): Removed.
	(mail_config_set_send_html): Removed.
	(mail_config_get_confirm_unwanted_html): Removed.
	(mail_config_set_confirm_unwanted_html): Removed.
	(mail_config_get_citation_highlight): Removed.
	(mail_config_set_citation_highlight): Removed.
	(mail_config_get_citation_color): Removed.
	(mail_config_set_citation_color): Removed.
	(mail_config_get_do_seen_timeout): Removed.
	(mail_config_set_do_seen_timeout): Removed.
	(mail_config_get_mark_as_seen_timeout): Removed.
	(mail_config_set_mark_as_seen_timeout): Removed.
	(mail_config_get_prompt_empty_subject): Removed.
	(mail_config_set_prompt_empty_subject): Removed.
	(mail_config_get_prompt_only_bcc): Removed.
	(mail_config_set_prompt_only_bcc): Removed.
	(mail_config_get_confirm_expunge): Removed.
	(mail_config_set_confirm_expunge): Removed.
	(mail_config_get_confirm_goto_next_folder): Removed.
	(mail_config_set_confirm_goto_next_folder): Removed.
	(mail_config_get_goto_next_folder): Removed.
	(mail_config_set_goto_next_folder): Removed.
	(mail_config_get_http_mode): Removed.
	(mail_config_set_http_mode): Removed.
	(mail_config_get_default_forward_style): Removed.
	(mail_config_set_default_forward_style): Removed.
	(mail_config_get_default_reply_style): Removed.
	(mail_config_set_default_reply_style): Removed.
	(mail_config_get_message_display_style): Removed.
	(mail_config_set_message_display_style): Removed.
	(mail_config_get_default_charset): Removed.
	(mail_config_set_default_charset): Removed.
	(mail_config_get_x_mailer_display_style): Removed.
	(mail_config_set_x_mailer_display_style): Removed.

	* subscribe-dialog.c (populate_store_list): Use the list of
	accounts. We can't get the list of sources anymore.
	(populate_store_foreach): Updated.

	* mail-callbacks.c (guess_me_from_accounts): Use account->enabled.
	(mail_generate_reply): Same.
	(empty_trash): Here too.

	* mail-accounts.c (account_delete_clicked): Use account->enabled
	rather than source->enabled.
	(account_able_clicked): Same.
	(account_cursor_change): Here too.
	(mail_accounts_load): And here.

	* component-factory.c (owner_unset_cb): Use gconf empty-on-exit
	settings.
	(mail_load_storages): Use account->enabled rather than
	account->source->enabled. The struct changed.

	* mail-composer-prefs.c (sig_add): Get the send_html pref from gconf.

	* message-tag-followup.c (target_date_new): Use gconf.

	* mail-config.c (mail_config_get_week_start_day): Removed.

	* mail-tools.c (mail_tool_quote_message): Use gconf here too, but
	we don't need to parse the colour - just use it as a raw string.
	(mail_tool_forward_message): Use gconf.

	* mail-format.c (mail_format_data_wrapper_write_to_stream): Use gconf.
	(write_headers): Use gconf.
	(handle_text_plain): Same.

	* mail-display.c (mail_text_write): Updated to use gconf and parse
	GdkColour strings.
	(on_url_requested): Updated to use gconf.

	* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Use gconf
	rather than the old mail-config APIs which will be removed.
	(ask_confirm_for_empty_subject): Same.
	(ask_confirm_for_only_bcc): Here too.
	(composer_get_message): And here.
	(create_msg_composer): Same.
	(transfer_msg_done): Again here.
	(delete_msg): Here too.
	(confirm_expunge): And finally here.

	* mail-config.c (mail_config_write): Use gconf.
	(mail_config_get_sources): Removed.

	* mail-account-gui.c (mail_account_gui_save): No need to save
	enabled-state anymore for a source.

	* mail-config-druid.c (wizard_finish_cb): Instead of setting
	account->source->enabled to TRUE, just set account->enabled to
	TRUE. The structures changed a bit.

	* mail-send-recv.c (mail_send_receive): Get the list of accounts
	instead of sources, and pass them along to build_dialogue. I'm
	trying to get rid of the mail_config_get_sources() api.
	(mail_autoreceive_setup): Here too.

	* mail-config.c (mail_config_get_filter_log): Removed.
	(mail_config_set_filter_log): Removed.
	(mail_config_get_filter_log_path): Removed.
	(mail_config_set_filter_log_path): Removed.
	(mail_config_get_new_mail_notify): Removed.
	(mail_config_set_new_mail_notify): Removed.
	(mail_config_get_new_mail_notify_sound_file): Removed.
	(mail_config_set_new_mail_notify_sound_file): Removed.

	* mail-session.c (main_get_filter_driver): Updated to use the
	gconf settings.

svn path=/trunk/; revision=19271
2003-01-08 01:39:21 +00:00
70f4bec5aa Fixed some build issues.
2003-01-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c: Fixed some build issues.

	* mail-search.c: Same.

	* mail-callbacks.c (save_draft_done): Use
	g_signal_handlers_disconnect_by_func().
	(manage_subscriptions): Use a weak_ref instead of connecting to
	the destroy event.

svn path=/trunk/; revision=19224
2003-01-03 17:53:32 +00:00
84c85d8eb7 fixed to build with -DG_DISABLE_DEPRECATED
svn path=/trunk/; revision=19209
2003-01-02 20:52:15 +00:00
a4a43fe1fc Use camel_text_to_html() instead of e_text_to_html(). (mail_text_write):
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 20:11:36 +00:00
2f1a1a22fe Re-implemented to use streams. Also no need to check for html since
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 16:47:51 +00:00
07e1d2a74a added some #warnings
svn path=/trunk/; revision=19121
2002-12-15 20:34:36 +00:00
25a94bfe0c Get rid of unneeded CamelObject casts. (user_message_response): Don't
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-13 18:52:35 +00:00
9aa9ba33ce cleaned up some const'ness
svn path=/trunk/; revision=19110
2002-12-13 16:20:41 +00:00
cf5946baf7 New function to handle a lot of the filtering/etc that was done in
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-11 16:52:40 +00:00
df22fc1623 gnome_pixmap -> gtkimage. (construct): gtk_clist -> gtk_tree_view, setup
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * message-tag-followup.c (construct): gnome_pixmap -> gtkimage.
        (construct): gtk_clist -> gtk_tree_view, setup columns.  They dont
        size well :-/
        (message_tag_followup_append_message): Append using model, remove
        clist stuff.
        (construct): Show date edit (glade bugs?)

        * folder-browser.c (folder_browser_class_init): gtk_marshal -> g_cclosure_marshal
        (setup_popup_icons): gnome_pixmap -> gtk_image.
        (on_right_click): gtk_pixmap -> gtk_image.

        * mail-accounts.c (account_delete_clicked): removed #if 0'd out code.

        * mail-send-recv.c (receive_done): remove FIXME and extra unref.

        * mail-session.c (request_password): Removed #if 0'd out stuff.

        * mail-vfolder.c (new_rule_clicked): proper cast for g_object_get_data.

        * mail-local.c (reconfigure_response): cast for g_object_get_data.

        * mail-account-editor.c (construct): GNOME_DIALOG -> GTK_DIALOG.

        * *.[ch]: re-ran fix.sh for e_notice change

        * mail-callbacks.c (save_msg_ok): g_object_get_data +
        gtk_object_remove_no_notify -> g_object_steal_data.
        (find_socket): gtk_container_children ->
        gtk_container_get_children
        (edit_msg): gnome_*_dialog -> gtk_message_dialog.
        (resent_msg): "
        (search_msg): "
        (confirm_goto_next_folder): gtkmessagedialogised (even if not
        used).
        (confirm_expunge): gtkmessagedialogised
        (filter_edit): "
        (do_mail_print): e_notice -> gtk_message_dialog.
        (are_you_sure): removed e_gnome_ok_cancel_dialog crap, replaced
        with a gtk dialog.
        (are_you_sure): gtkmessagedialogised.
        (edit_msg_internal): Dont free uids array, are_you_sure() free's
        it.
        (resend_msg): Same.
        (check_send_configuration): Use e_notice for stuff.  Sigh, here we
        go again ...!
        (e_question): A utility function to ask a question, potentially
        with 'dont ask again' as well.
        (configure_mail): use e_question to save code.  Here we go again,
        again ...
        (ask_confirm_for_unwanted_html_mail): "
        (ask_confirm_for_only_bcc): "
        (ask_confirm_for_only_bcc): "
        (composer_get_message): Use e_notice.
        (composer_save_draft_cb): Use e_question
        (edit_msg): use e_notice, & change to an ERROR.
        (resend_msg): same.
        (save_msg_ok): Properly initialise ret to OK, and use e_question,
        and use access() to determine existance/write access rather than
        stat, display an error if we can't write to a file that exists,
        and print the filename in all dialogues.
        (confirm_goto_next_folder): Use e_question.
        (confirm_expunge): use e_question.
        (filter_edit): Use e_notice.
        (do_mail_print): use e_notice.

svn path=/trunk/; revision=18974
2002-12-02 03:16:54 +00:00
989e199638 gtk_widget_set_parent_window -> gtk_window_set_transient_for.
2002-11-26  Not Zed  <NotZed@Ximian.com>

        * mail-account-editor.c (mail_account_editor_new):
        gtk_widget_set_parent_window -> gtk_window_set_transient_for.

        * mail-callbacks.c (composer_send_queued_cb): dont unref composer.

        * message-browser.c (message_browser_destroy): moved back from
        finalise.

2002-11-25  Not Zed  <NotZed@Ximian.com>

        * message-list.c (message_list_dispose): move saving tree state
        here.
        (message_list_finalise): And take it from here.

        * mail-display.c (mail_display_destroy): @#$@# gtk.  changed this
        around a bit.
        (mail_display_init): Fix prototype, its a gobject.
        (mail_display_init): ref/sink the invisible gtkobject.

svn path=/trunk/; revision=18919
2002-11-26 06:43:31 +00:00
0c8d26e027 Show file name when prompt to user for overwrite.
2002-11-15  Harry Lu  <harry.lu@sun.com>

	* mail-display.c (write_data_to_file): Show file name when prompt
	to user for overwrite.

svn path=/trunk/; revision=18886
2002-11-22 18:23:54 +00:00
ff14680378 Enable dragging of all attachments. For bug #34327.
2002-11-21  Harry Lu  <harry.lu@sun.com>

	* mail-display.c (do_attachment_header): Enable dragging of all
	attachments. For bug #34327.

svn path=/trunk/; revision=18882
2002-11-22 01:49:46 +00:00
6cde624508 applied patches from http://bugzilla.ximian.com/show_bug.cgi?id=29588
svn path=/trunk/; revision=18877
2002-11-21 10:57:47 +00:00
e3713d58cd fix warning message, outlook->mbox.
2002-11-19  Not Zed  <NotZed@Ximian.com>

        * importers/evolution-mbox-importer.c (mail_importer_module_init):
        fix warning message, outlook->mbox.

        * importers/Makefile.am: fix serverdir to point to
        $libdir/bonobo/servers.

        * mail-callbacks.c (addrbook_sender): add type to
        bonobo_widget_set_property.

        * mail-vfolder.c (vfolder_editor_response): dont unref after destroy.

        * mail-session.c (pass_response): dont unref aftrer destroy.

        * mail-local.c (reconfigure_response): dont unref after destroy.

        * mail-display.c (launch_cb): dont unref after destroy.
        (launch_cb): "
        (drag_data_get_cb): "
        (html_button_press_event): add type to bonobo_widget::set_property

        * mail-config.c (mail_config_check_service): dont unref after
        destroy.

        * component-factory.c (send_receive_cb): dont unref after destroy.
        (request_quit): "

        * mail-signature-editor.c (mail_signature_editor): Use version 3.0
        of gtkhtml editor interfaces.
        (do_exit): dont unref after destroy.
        (format_html_cb): Add type to bonobo_widget::set_property.

svn path=/trunk/; revision=18837
2002-11-19 05:03:29 +00:00
4ff0a43cd4 Use g_object_weak_ref rather than connecting to destroy.
2002-11-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (account_edit_clicked): Use g_object_weak_ref
	rather than connecting to destroy.
	(account_add_clicked): Same.

	* mail-callbacks.c (addrbook_sender): Make this use
	g_object_weak_notify also.
	(subscribe_dialog_destroy): Add NULL guards here since I think we
	really do want to connect to the "destroy" signal in the function
	that connects us to that signal.

	* mail-config-factory.c (config_control_factory_cb): Same.

	* mail-display.c (save_part): Here too.
	(make_popup_window): And here.

	* mail-send-recv.c (build_dialogue): Same here.

	* mail-summary.c (create_summary_view): Use g_object_weak_notify
	instead of connecting to the destroy signal.

svn path=/trunk/; revision=18764
2002-11-14 23:26:55 +00:00
1669f16747 Want a (GWeakNotify) cast here, not (GWeakNotify *).
* component-factory.c (owner_set_cb): Want a (GWeakNotify) cast
here, not (GWeakNotify *).

* subscribe-dialog.c (fete_init): g_object_set() instead of
gtk_object_set().
(populate_store_list): Likewise.
(menu_item_selected): g_object_get_data() instead of
gtk_object_get_data().

* message-list.c (message_list_create_extras): g_object_set()
instead of gtk_object_set().

* message-browser.c (message_browser_message_list_built):
g_object_get_data() instead of gtk_object_get_data().

* mail-vfolder.c (edit_rule_response): g_object_get_data() instead
of gtk_object_get_data().

* mail-summary.c (generate_folder_summaries): g_object_unref() the
context instead of gtk_object_destroy().

* mail-local.c (reconfigure_response): g_object_get_data() instead
of gtk_object_get_data().

* mail-display.c (pixbuf_gen_idle): g_object_unref() the GdkPixbuf
loader instead of gtk_object_destroy().
(pixbuf_gen_idle): Likewise.
(embeddable_destroy_cb): Likewise.

* mail-config-druid.c (mail_config_druid_destroy): No need to
gtk_object_destroy() the GladeXML object.
(construct): g_object_set() instead of gtk_object_set().

* folder-browser.c (folder_browser_gui_init): g_object_get_data()
instead of gtk_object_get_data().

svn path=/trunk/; revision=18752
2002-11-14 17:20:52 +00:00
f9804e1193 Commented out stuff that doesn't build yet. Also fixed idl build rule.
2002-11-13  Not Zed  <NotZed@Ximian.com>

	* Makefile.am: Commented out stuff that doesn't build yet.  Also
	fixed idl build rule.  importers still not built.

	* main.c (main): bonobactivationise.  remove push visual/colormap.
	(main): no longer activate activation, let bonobo_init do it.

	* mail-signature-editor.c (menu_help): Change help api.

	* mail-session.c (user_message_destroy_noreply): removed.  Not
	used?

	* mail-local.c (load_metainfo): xml root->children.

	* mail-format.c (g_string_append_len): Removed, it exists now.

2002-11-12  Not Zed  <NotZed@Ximian.com>

	* subscribe-dialog.c: gnome2ised, use gtkdialog.
	(subscribe_get_global_extras): use a weak ref rather than destroy signal.

	* message-tag-followup.c: gnome2ised.

	* message-tag-editor.c: gnome2ised & converted to gtkdialog.

	* message-list.c: gnome2ised.
	(message_list_finalise): From destroy method.  maybe should be
	destroy still.

	* message-browser.c: port to gnome2
	(message_browser_finalise): renamed from destroy method.

	* mail-stream-gtkhtml.c: removed redundant
	camel_class_get_global_classfuncs() call.

	* mail-signature-editor.c: gtkdialogised, & bonobo api changes.


	* mail-search-dialogue.c: gtkdialogised.

	* mail-folder-cache.c: cleaned up camel ref/hook casts.

	* mail-composer-prefs.c (mail_composer_prefs_get_type): convert to
	gtype.

	* mail-font-prefs.c (mail_font_prefs_destroy): from finalise.

	* mail-config.c: s/bonobo_config/e_config_listener/
	Added /apps/Evolution prefix to the evolution keys.
	Changed to use e_config_listener, etc.
	(mail_config_init): remove bonobo_config stuff.
	(mail_config_check_service): gtk dialogise.
	(check_response): from check_cancelled.

	* mail-config-druid.c (mail_config_druid_destroy): renamed from
	_finalize, turned into destroy handler.
	(construct): set type to toplevel, GTK_WINDOW_DIALOG no longer exists.

	* mail-config-factory.c (mail_config_register_factory): bonobo api
	changes.

	* mail-crypto.c (mail_crypto_get_pgp_cipher_context): cleaned up
	unref casts.

	* mail-display.c (write_data_to_file): gnome->gtkdialog.
	(on_link_clicked): use ascii_str*cmp on url.
	(save_part): g_path stuff.
	(launch_cb): gtk dialog.
	(pixmap_press): de-oafify.
	(pixbuf_for_mime_type): gnome-vfs api changes.
	(do_attachment_header): Change the pixmap to a gtkimage.
	(do_signature): "
	(pixbuf_gen_idle): "
	(do_attachment_header): ascii_str*cmp
	(do_attachment_header): gnome pixmap->gtkimage.
	(mail_display_destroy): protect against gtk mentalness.
	(html_button_press_event): ascii_str*cmp
	(drag_data_get_cb): added comment for translators of filename.

	* mail-format.c (component_supports): de-oafise.
	(is_anonymous): ascii_strncmp
	(attachment_header): remove utf8<>locale stuff, and gnomevfs api
	changes.
	(format_mime_part): fix g_strdown call.
	(write_field_row_begin): kill utf8->gtk stuff.
	(write_address): "
	(default_header_index): ascii_strcasecmp
	(handle_text_plain): "
	(handle_text_enriched): "
	(handle_multipart_encrypted): remove utf/gtk stuff.
	(handle_message_external_body): ascii_str*cmp

	* mail-identify.c (mail_identify_mime_part):
	(identify_by_magic): gnome vfs api changes.

	* mail-importer.c: Converted.

	* mail-local.c (load_metainfo): xml childs -> children.
	(mls_get_folder): g_strerror.
	(mls_delete_folder): g_strerror.
	(reconfigure_got_folder): Gnome->GtkDialog
	(reconfigure_response): from reconfigure_clicked.

	* mail-mt.c (mail_msg_check_error): gnome -> gtk dialog
	(error_response): renmae from error_gone.  destroy widget on any
	response.

	* mail-offline-handler.c (impl_finalise): renamed from
	impl_destroy since thats what it should be anyway.

	* mail-ops.c: removed utf8 widget conversion & camel_object_un/ref
	casts.

	* mail-preferences.c (mail_preferences_get_type): glib2'ised.

	* mail-search.c (mail_search_finalise): renmaed from destroy &
	properly chain.
	(mail_search_get_type): glib2 & make gtkdialog parent.
	(entry_run_search): run search when entry activated.  not sure if
	gtkdialog has anohter way to do this on an arbitrary widget.

	* mail-send-recv.c (dialogue_response): renamed from clicked.  Use
	gtkdialog.

	* mail-session.c (request_password_deleted): removed, redundant.
	(pass_response): rename from pass_got, changed for gtkdialog.
	(user_message_destroy): Removed, redundant.
	(user_message_response): Renamed from user_message_clicked.

2002-11-11  Not Zed  <NotZed@Ximian.com>

	* mail-stream-gtkhtml.c (mail_stream_gtkhtml_class_init): dont use
	get_global_classfuncs, just get the type

	* mail-tools.c: converted gnome2 api's.

	* mail-vfolder.c (vfolder_editor_response): clicked->response.
	(vfolder_editor_destroy): Removed.
	(vfolder_edit): gtk dialog api
	(edit_rule_response): clicked->response.
	(vfolder_edit_rule): gnomedialog->gtkdialog.
	(vfolder_gui_add_rule): "
	(new_rule_clicked): clicked->response

svn path=/trunk/; revision=18723
2002-11-12 14:59:35 +00:00
529b6c87c3 don't queue the action until we've added ourselves to the active list,
2002-10-27  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (fetch_next): don't queue the action until we've
	added ourselves to the active list, because the fetch_done
	callback can fire immediately and we'll end up queueing something
	that has already been destroyed.

svn path=/trunk/; revision=18452
2002-10-28 09:16:05 +00:00
cd0daad88d Use the mode 0666 when creating a new file and let the user's umask handle
2002-10-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (write_data_to_file): Use the mode 0666 when
	creating a new file and let the user's umask handle permissions.

	* folder-browser.c (message_list_drag_data_get): When using open()
	with the O_CREAT flag, we need to pass a mode argument. Also use
	O_EXCL.

svn path=/trunk/; revision=18430
2002-10-25 01:26:37 +00:00
c0edd5dede (drag_data_get_cb): silence warning.
2002-10-01  Larry Ewing  <lewing@ximian.com>

	(drag_data_get_cb): silence warning.

svn path=/trunk/; revision=18289
2002-10-01 20:30:26 +00:00
c876eb6b4b add support for dragging the content type directly.
2002-10-01  Larry Ewing  <lewing@ximian.com>

	* mail-display.c (drag_data_get_cb): add support for dragging the
	content type directly.
	(do_attachment_header): add the target for the mime type to the
	drag source.

svn path=/trunk/; revision=18288
2002-10-01 20:22:11 +00:00
20c4b44474 Add a margin around the "flag for followup" table so it lines up with
* mail-display.c (mail_display_render): Add a margin around the
	"flag for followup" table so it lines up with everything else.
	Also, don't add "at your earliest convenience" after the flag if
	there's no date set, since that doesn't make any sense for half of
	the flags. ("For Your Information at your earliest convenience").

svn path=/trunk/; revision=18226
2002-09-25 22:56:23 +00:00
baa0b9cba0 reverted wrapping patch
svn path=/trunk/; revision=18103
2002-09-18 19:16:54 +00:00
190d2b0b7f Use e_strftime_fix_am_pm here which fixes locale issues as well as working
2002-09-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (mail_display_render): Use e_strftime_fix_am_pm
	here which fixes locale issues as well as working around systems
	that don't support %P (afaik).

	* mail-ops.c (prep_offline_do): Cache important messages too.

svn path=/trunk/; revision=18095
2002-09-17 20:20:32 +00:00
b1cf9a7df7 check the new gnome-vfs icon_filename key. If that fails, fall back to
2002-09-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (pixbuf_for_mime_type): check the new gnome-vfs
	icon_filename key. If that fails, fall back to checking
	icon-filename. Also don't leak the fm_icon string and rearranged
	some code.

svn path=/trunk/; revision=18044
2002-09-11 19:39:48 +00:00
e9f381a6f5 simplified raw view
svn path=/trunk/; revision=17938
2002-08-30 22:29:08 +00:00
169515d209 use iframe's fallback content
svn path=/trunk/; revision=17937
2002-08-30 21:58:55 +00:00
915e52dbeb as below (handle_text_plain_flowed): as below
2002-08-30  Radek Doulik  <rodo@ximian.com>

	* mail-format.c (mail_format_raw_message): as below
	(handle_text_plain_flowed): as below

	* mail-display.c (mail_text_write): put text in iframe, so it has
	margins and should not be placed in table which changes wrapping
	behavior

svn path=/trunk/; revision=17933
2002-08-30 17:06:39 +00:00
d2773d37ec Fix some broken logic here, p = strrchr (path, '/') + 1 will *never* be
2002-08-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (make_safe_filename): Fix some broken logic here,
	`p = strrchr (path, '/') + 1` will *never* be NULL!! If the
	strrchr returns NULL, then that expression will evaluate to 0x1!!

svn path=/trunk/; revision=17901
2002-08-28 20:00:31 +00:00
1c52eea098 Replace no-longer-existent e_book_query_address_locally with
* mail-display.c (on_url_requested): Replace no-longer-existent
	e_book_query_address_locally with e_book_query_address_default.

svn path=/trunk/; revision=17765
2002-08-13 01:05:10 +00:00
405ef3bcf3 Updated to use the new Follow-Up tags. Instead of storing a string
2002-08-02  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (mail_display_render): Updated to use the new
	Follow-Up tags. Instead of storing a string containing the
	follow-up tag value, we now have to store the CamelMessageInfo.
	(mail_display_destroy): Unref the folder and the message-info.

	* folder-browser.c (followup_tag_complete): No longer needed.
	(on_right_clicked): Use the individual follow-up tags to decide
	whether or not to enable something.

	* message-list.c (ml_tree_value_at): Update to use the new
	Follow-Up tags.

	* mail-callbacks.c (flag_for_followup): Update to use the new
	MessageTagEditor API.
	(tag_editor_ok): Update this too.
	(flag_followup_completed): Updated this too.
	(flag_followup_clear): Set all the follow-up tag values to "".

svn path=/trunk/; revision=17691
2002-08-02 22:36:11 +00:00
386386f943 Don't setup a handler for multipart/digest. (handle_multipart_digest):
2002-08-01  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (setup_mime_tables): Don't setup a handler for
	multipart/digest.
	(handle_multipart_digest): Removed.

svn path=/trunk/; revision=17667
2002-08-01 05:18:30 +00:00
70c9d1ce6a Removed folder-browser-window from the build.
2002-07-31  Jeffrey Stedfast  <fejj@ximian.com>

	* Makefile.am: Removed folder-browser-window from the build.

	* folder-browser-window.[c,h]: Removed.

	* mail-callbacks.c (view_digest): Removed.

	* mail-display.c (mail_display_digest_clicked): Removed.
	(on_link_clicked): Don't handle digest: urls anymore.

svn path=/trunk/; revision=17666
2002-08-01 03:54:13 +00:00
8ff3a3a595 Added global cameldatacache for managing remote image cache.
2002-07-31  Not Zed  <NotZed@Ximian.com>

        * mail-display.c: Added global cameldatacache for managing remote
        image cache.
        (fetch_remote): Lookup data in cache first, use that if available,
        or setup a new cache item.
        (fetch_data): Write any retrieved data to cache as well as html
        stream.
        (fetch_free): Unref cache stream.
        (fetch_done):
        (fetch_cancel): If failed/cancelled, remove cache items so they
        dont foul the result.  Probably need a header in cache items to
        guarantee this, but this is ok for now.
        (mail_display_class_init): Setup cache structure.  Also ensure
        globals are initialised at-most once.

svn path=/trunk/; revision=17652
2002-07-31 05:54:30 +00:00
432ddb8b68 setup private data. (mail_display_destroy): cancel any outstanding
2002-07-29  Not Zed  <NotZed@Ximian.com>

        * mail-display.c (mail_display_init): setup private data.
        (mail_display_destroy): cancel any outstanding fetches, and free
        private data.
        (mail_display_set_message): Cancel any outstanding fetches.
        (fetch_cancelled):
        (fetch_next):
        (fetch_remote):
        (fetch_data):
        (fetch_free):
        (fetch_cancel):
        (fetch_done): Implement, used to use soup to download remote
        images.
        (load_http): Removed.
        (on_url_requested): When requesting a http* url, use the
        fetch_remote call above.

        * mail-display.h (struct _MailDisplay): Added priv(ate) member.

svn path=/trunk/; revision=17640
2002-07-30 14:20:06 +00:00
e6623c2d82 Mae sure that the html->pointer_url is non-NULL. Should fix bug #28159
2002-07-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (link_open_in_browser): Mae sure that the
	html->pointer_url is non-NULL. Should fix bug #28159 (this seems
	to be the only questionable way for a NULL url to be passed into
	on_link_clicked).

svn path=/trunk/; revision=17581
2002-07-25 05:28:32 +00:00
7f9b336892 use uri_list before we set "uri-list" to NULL, which will automagically
2002-07-24  Not Zed  <NotZed@Ximian.com>

        * mail-display.c (drag_data_delete_cb): use uri_list before we set
        "uri-list" to NULL, which will automagically free it for us, so
        dont free it either.  Found with vagrind.

svn path=/trunk/; revision=17549
2002-07-23 15:56:09 +00:00