2002-11-19 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (add_from_file): dont unref
after destroy. duh.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): Add type
code to set_property call.
(e_msg_composer_hdrs_set_cc): "
(e_msg_composer_hdrs_set_bcc): "
(e_msg_composer_hdrs_get_to): Do the same for get_property calls.
(init): ref/sink the tooltip object.
(e_msg_composer_hdrs_get_type): fix return type.
* e-msg-composer.c (GNOME_GTKHTML_EDITOR_CONTROL_ID): we want
version 3.0 not 1.1.
(create_composer): Add type code to set property call.
(autosave_manager_query_load_orphans): my bad, we dont unref
dialog's once we've destroyed 'em.
(build_message): "
(get_file_content): "
(save): "
(do_exit): "
(composer_dispose): moved the autosave shutdown here.
svn path=/trunk/; revision=18836
2002-11-18 Not Zed <NotZed@Ximian.com>
* e-msg-composer.c (create_composer): Remove check for
gtk_main_level(). as far as i can tell it serves no real purpose,
and i think gtkmain is now redundant.
(e_msg_composer_new_with_message): Same here.
(destroy): moved some stuff into finalise, and made destroy
mulitcall safe.
svn path=/trunk/; revision=18819
2002-11-13 Not Zed <NotZed@Ximian.com>
* e-icon-list.c (e_icon_list_new): Use the right object_new method.
* e-icon-list.h: get rid of BEGIN/END_GNOME_DECLS stuff.
svn path=/trunk/; revision=18730
2002-11-11 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c: Remove some unused ehaders and
ones that cause compilation failures (such as gnome-defs.h).
* e-icon-list.h: Same.
svn path=/trunk/; revision=18694
2002-11-08 Not Zed <NotZed@Ximian.com>
* listener.c: Fix bonobo object setup.
* e-msg-composer-hdrs.c: Remove oaf stuff, fix destroy to be
multi-call safe.
* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
Remove utf8 from locale conversions, & glib api changes.
(ok_cb): "
* e-msg-composer-attachment-bar.c (add_from_file): gtk message
dialog.
(pixbuf_for_mime_type): glib,gnome-vfs api changes.
(init): Estimate the icon_height based on the pango font
description size, this is probably not correct.
(properties_cb):
(remove_cb): Changed signature for gnomeui callbacks.
(popup_icon_context_menu):
(popup_context_menu): popup_menu api change
(destroy): Protect from multiple calls.
(e_msg_composer_attachment_bar_new): Remove push/pop
visual/colormap stuff.
* composer-marshal.list: The list of marshallers used by the
composer.
* Makefile.am (composer-marshal.h): Added composer marshal builder.
* evolution-composer.c (class_init): bonobo object epv setup change.
(factory_fn): Fix changes to factory callback.
* e-icon-list.c: (icon_get_height): Use bounding box to calc
height.
(icon_event): drop gtk_selection_extended.
(e_icon_list_remove): "
(select_icon):
(unselect_icon): "
* e-msg-composer.c (autosave_save_draft): Dup fd rather than poke
camel_stream_fd's data. Also, use camel_stream_close() rather
than flush.
(autosave_manager_query_load_orphans): Port to gtk dialog.
(autosave_query_cb): Removed, redundant.
(save): Port to gtkdialog.
(prepare_engine): Fix bonobo-object-client code.
(get_file_content): gtk dialog
(do_exit): gtk dialog.
(setup_signatures_menu): dump gtkutf8 stuff.
(marshal_NONE__NONE_INT): What WAS jeff thinking? Removed :)
(class_init): g object setup.
(e_msg_composer_get_type): "
(create_composer): remove bonobo_window_construct, use create
property instead. g_signal stuff. bonobo stuff.
(is_special_header): Use ascii_strncasecmp
(e_msg_composer_set_pending_body): gtk->g_object_get/set_data.
(e_msg_composer_set_body): use ascii_strncasecmp
(e_msg_composer_add_inline_image_from_mime_part): make cid const.
(autosave_manager_register):
(autosave_manager_unregister): Use g_path_get_basename() & account
for differences.
(composer_shutdown): rename to finalise/etc.
(class_init): Use object:finalize instead of shutdown.
(e_msg_composer_set_body): Use _() rather than U_().
(build_message): gtk dialog.
2002-11-06 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Add
error return to gdk_pixbuf_new_from_file().
svn path=/trunk/; revision=18659
2002-11-01 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_new_from_url): Add support for
an attach option in the mailto: url.
svn path=/trunk/; revision=18489
2002-10-26 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (attach_to_multipart): Don't set
the charset param on text parts nor tha rawtext bit on the content
if a charset for the part is already specified.
svn path=/trunk/; revision=18449
instead of the empty string if the size is less than one K.
(update): Only put the size if size_to_string() doesn't return
NULL. [#32751]
svn path=/trunk/; revision=18439
2002-10-18 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_from_optionmenu): Only add the
account address to the list of addresses if it is non-NULL. Fixes
bug #32446 although it shouldn't ever happen anyway (an account
address is not allowed to be NULL).
svn path=/trunk/; revision=18401
2002-10-16 Not Zed <NotZed@Ximian.com>
* e-msg-composer-select-file.c (select_file_internal): Mark the
file selector modal. Quick fix for bug #32256.
svn path=/trunk/; revision=18380
2002-10-04 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (attach_to_multipart): Set
content->rawtext to TRUE for text parts because the content is in
its raw form (since we didn't know the charset when we created
it). Also only write out the content-object to discover the best
encoding, we don't want to include the headers of the MIME
part. Second half of the fix for bug #31655.
svn path=/trunk/; revision=18335
2002-10-02 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (get_file_content): Don't create a new file if
the file doesn't exist.
svn path=/trunk/; revision=18325
2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): If the user hits cancel when
signing/encrypting, don't continue constructing the message,
instead abort (and just don't pop up a dialog).
svn path=/trunk/; revision=18291
2002-10-01 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): When signing/encrypting a
part, if a USER_CANCEL occurs, re-use the part otherwise unref it
and replace it with the new part.
svn path=/trunk/; revision=18290
* Evolution-Composer.idl (setHeaders): let the caller set the
"From" account too (by name or address).
* evolution-composer.c (impl_Composer_set_headers): Update for
that.
svn path=/trunk/; revision=18260
2002-09-27 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): Don't reuse the part that
we've signed and/or encrypted, create a new part container
instead. Fixes bug #31379.
svn path=/trunk/; revision=18257
* e-msg-composer-hdrs.c (create_from_optionmenu): Only append the
account name to the end of the From menu item if the email address
is not unique. (That was added for people who have multiple
accounts with the same email address but different transports. The
rest of us don't need to be reminded of the account name, and
having it there can make the window very wide.)
svn path=/trunk/; revision=18207
* e-icon-list.c (icon_new_from_pixbuf): Removed a #warning.
* e-msg-composer-attachment-bar.c (size_to_string): Don't use dots
here so we don't get funny wrapping from GnomeIconList. [#236]
svn path=/trunk/; revision=18176
2002-09-17 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (add_attachments_from_multipart): Handle
multipart/signed and multipart/encrypted parts in a more expected
way. Fixes bug #28453.
svn path=/trunk/; revision=18099
2002-09-04 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (create_composer): Make it so that the composer
will close when the user hits Escape.
svn path=/trunk/; revision=17983
2002-08-26 Peter Williams <peterw@ximian.com>
* e-msg-composer.c (handle_multipart): Oops, we were overwriting
'multipart' with our child multipart. Fixes 29399.
(handle_multipart_alternative): Here too.
svn path=/trunk/; revision=17864
2002-08-22 Jeffrey Stedfast <fejj@ximian.com>
Fixes bug #29016
* e-msg-composer.c (e_msg_composer_new_with_message): If the
X-Evolution-PostTo header exists, then treat this message composer
as a PostTo composer rather than a mail composer.
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message_internal):
Set the X-Evolution-PostTo header if that is the mdoe we are in.
svn path=/trunk/; revision=17843
* e-msg-composer-hdrs.c (create_headers): Use an
EvolutionFolderSelectorButton instead of a label to indicate the
posting destination. #27920.
(e_msg_composer_hdrs_set_post_to): Use
evolution_folder_button_set_uri.
(e_msg_composer_hdrs_get_post_to): Use
evolution_folder_button_get_folder.
svn path=/trunk/; revision=17796
* e-msg-composer.c (from_changed_cb): Don't turn on pgp signing if
this is an iMIP message and pgp_no_imip_sign is set.
(e_msg_composer_set_body): If setting a text/calendar body and
pgp_no_imip_sign is true, turn off signing.
svn path=/trunk/; revision=17779
2002-08-13 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (do_exit): Make the warning dialog display the
message subject so that it is more clear which composer the dialog
is referring to. Fixes bug #25467.
svn path=/trunk/; revision=17772
2002-08-12 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-select-file.c (create_file_selection): Set the
file-selection window icon. Fixes the mailer part of bug #7368.
* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
Don't call new_from_mime_part() since that function now does some
copying of the mime part rather than simply reffing it.
(e_msg_composer_attachment_new_from_mime_part): Make a copy of the
MIME part so that if the message that this part belongs to gets
deleted from the the remote store, the composer will still have a
copy of it. Fixes bug #20308.
svn path=/trunk/; revision=17763
2002-08-12 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
Don't call new_from_mime_part() since that function now does some
copying of the mime part rather than simply reffing it.
(e_msg_composer_attachment_new_from_mime_part): Make a copy of the
MIME part so that if the message that this part belongs to gets
deleted from the the remote store, the composer will still have a
copy of it. Fixes bug #20308.
svn path=/trunk/; revision=17760
2002-07-31 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (e_msg_composer_new_with_message): Parse the
auto-cc/bcc recipients and then later when parsing the cc/bcc
recipients into EDestination objects, if the address is an
auto-*cc address, then set auto_recipient to TRUE on that
EDestination. This fixes bug #28339.
svn path=/trunk/; revision=17664
2002-07-29 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (encode_signature_name): new helper function
(decode_signature_name): new helper function
(get_signature_html): use encode_signature_name
(set_signature_gui): use decode_signature_name
svn path=/trunk/; revision=17636
2002-07-26 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (do_exit): don't assert on default, when ESC is
pressed, the dialog is closed as well and we get button number -1
svn path=/trunk/; revision=17611
* e-msg-composer-attachment-bar.c (pixbuf_for_mime_type):
Special-case message/digest and give it a nice icon. [#9786]
* Makefile.am (INCLUDES): Add -D for EVOLUTION_ICONSDIR.
svn path=/trunk/; revision=17609
2002-07-24 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_headers): Create the Post-To
header.
(headers_set_visibility): Possibly show the Post-To header.
(attach_headers): Attach the Post-To header.
(e_msg_composer_hdrs_set_post_to): Set the text for the Post-To
header.
(e_msg_composer_hdrs_get_post_to_label): Return the label widget
for this header pair.
(e_msg_composer_hdrs_set_visible_mask): New function to set the
visible mask (so we can disallow certain headers to be shown).
(e_msg_composer_hdrs_new): Save the visible mask argument.
(setup_headers): To: does not always have to be visible anymore.
(e_msg_composer_hdrs_get_post_to): New function to get the url for
the Post-To folder.
* e-msg-composer.c (e_msg_composer_get_visible_flags): Set the
Post-To bit when it is supposed to be visible.
(e_msg_composer_new_post): Set the visible_mask to only allow the
headers needed for Posting.
svn path=/trunk/; revision=17590