2002-11-25 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (init): Remove the window size
setting.
(e_msg_composer_attachment_bar_new): Move the window size setting
here. Also set icon width based on 15 approximate characters, so
the icon text is more readable.
svn path=/trunk/; revision=18906
2002-11-22 Not Zed <NotZed@Ximian.com>
* e-msg-composer-select-file.c: rewrote most of this. Just use
gtkfileselection directly, no e-file-selector, much
smaller/simpler.
2002-11-21 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (remove_attachment): fix
g_signal_emit params, detail in wrong spot.
(add_common): Same.
* e-icon-list.c (icon_new_from_pixbuf): remove the
'use_broken_event_handling' set.
(emit_select): Add detail to signal emit.
(text_changed): Same.
* e-msg-composer.c (subject_changed_cb): Duh! dont free subject &
simplify logic a little.
svn path=/trunk/; revision=18904
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-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-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-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
* 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-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
* 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-04-16 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (destroy): Unref the priv->tooltips object
here.
* e-msg-composer-attachment-bar.c (destroy): Free the priv struct.
* e-msg-composer.c (set_editor_signature): We don't need a 'name'?
So don't strdup it.
svn path=/trunk/; revision=16485
001-12-11 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment.c (e_msg_composer_attachment_edit):
Attach to the parent widget's destroy signal - when that gets
destroyed, we need to cancel the editor dialog too. Also connect
to our parent window's "hide" signal so that when the composer
gets hidden (ie, it's being sent), we also close the dialogs.
* e-msg-composer.c (init): Default composer->enable_autosave to
TRUE.
svn path=/trunk/; revision=15016
2001-12-10 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (add_from_user):
select_file_attachments now returns a GPtrArray so handle that and
loop until we've added all the attachment files.
* e-msg-composer-select-file.c (confirm): Add an evil kludge to
get a list of filenames from the GtkFileSelection widget based on
the label in the history option menu item and the base filenames
of the selected items in the filename clist.
(create_file_selection): Setup the clist to allow multiple
selection.
(file_selection_info_destroy_notify): Destroy the GPtrArray
containing the list of xselected files.
(select_file_internal): Return a GPtrArray of files instead of a
char *.
svn path=/trunk/; revision=14968
attachments. Also, I think this should make replies to HTML
messages containing inline images referenced via Content-Location
work, but that's not tested.
* e-msg-composer.c (various): Keep two hash tables of inline image
data: one mapping from cid: URLs to CamelMimeParts for all
attachments, the other mapping from file: and Content-Location
urls to CamelMimeParts (for those inline images that came from a
file or have a Content-Location).
(add_inlined_images): Simplify. Most of this code is in
e_msg_composer_add_inline_image_from_file() now.
(e_msg_composer_add_message_attachments, handle_multipart): Change
"attach_all" arg to "just_inlines". If it is set, call
e_msg_composer_add_inline_image_from_mime_part on any attachment
with a Content-Id or Content-Location.
(e_msg_composer_add_inline_image_from_file): Create a mime part
from a file and add it to the inline images hash.
(e_msg_composer_add_inline_image_from_mime_part): Add a mime part
directly to the inline images hash.
* listener.c (resolve_image_url): If asked to resolve a file: URL
that isn't in the inline images hash, call
e_msg_composer_add_inline_image_from_file to get a cid for it.
(impl_event): Look up the URL in the inline_images and
inline_images_by_url hashes.
* e-msg-composer-attachment-bar.c
(e_msg_composer_attachment_bar_find_message): Gone. No longer
used.
svn path=/trunk/; revision=13852
2001-10-18 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (best_encoding): Don't use a
g_return_val_if_fail after iconv_open, this is a valid error
condition and so should use check it for real.
* e-msg-composer-attachment-bar.c (attach_to_multipart): Correctly
set the charset parameter and use camel's bestenc filter to
determine which content transfer encoding to use.
svn path=/trunk/; revision=13784
2001-10-09 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (add_from_file): If the
attachment fails, report the error to the user.
* e-msg-composer-attachment.c (e_msg_composer_attachment_new): Now
takes a CamelException argument.
svn path=/trunk/; revision=13537
2001-10-05 Larry Ewing <lewing@ximian.com>
* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
remove unused variable.
* e-msg-composer-attachment-bar.c
(e_msg_composer_attachment_bar_find_message): generalize this to
lookup content locations as well.
* e-msg-composer-attachment-bar.h: change prototype to match the
new function.
* listener.c (impl_event): handle the url_requested event, look up
parts in the attachment part and feed them down the stream if it
is found.
* e-msg-composer.c (handle_multipart_alternative): delay setting
the body text.
(handle_multipart): delay setting body text
(e_msg_composer_new_with_message): set the body text from the
object data. Doing this ensures that we will have the attachments
processed before we try to look them up.
svn path=/trunk/; revision=13445
2001-10-04 Larry Ewing <lewing@ximian.com>
* e-msg-composer-attachment-bar.c
(e_msg_composer_attachment_bar_find_content_id): look up an
attachment by it's content id.
* e-msg-composer-attachment-bar.h: add prototype for
e_msg_composer_attachment_bar_find_content_id.
svn path=/trunk/; revision=13436
2001-07-02 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (attach_to_multipart): Set the
user-chosen charset.
* e-msg-composer.c (menu_change_charset_cb): New callback function
to get the user-set charset.
(init): Set the charset to NULL.
(best_charset): Take a default_charset param that holds the value
the user set for this particular message using the menu.
(destroy): Free the charset.
svn path=/trunk/; revision=10704
* e-msg-composer-attachment.glade: Replace the disposition option
menu with a checkbox.
* e-msg-composer-select-file.c
(e_msg_composer_select_file_attachment): New function to select a
file to attach. Adds a "suggest inline disposition" checkbox.
* e-msg-composer-attachment.c (e_msg_composer_attachment_new): Add
a disposition argument rather than always defaulting to
"attachment".
(struct _DialogData, ok_cb, e_msg_composer_attachment_edit):
Update for optionmenu->checkbox change for disposition.
* e-msg-composer-attachment-bar.c (add_from_file): Add a
disposition argument.
(add_from_user): Use e_msg_composer_select_file_attachment, pass
chosen disposition to add_from_file.
(e_msg_composer_attachment_bar_attach): Pass "attachment" to
add_from_file for the disposition.
svn path=/trunk/; revision=10200
2001-05-28 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (update): Use
e_utf8_to_gtk_string() on the description of the attachment since
camel stores these as utf-8 strings.
svn path=/trunk/; revision=10036
2001-02-10 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-attachment-bar.c (attach_to_multipart):
multipart/* is another mime type we DO NOT want to encode ;-)
svn path=/trunk/; revision=8156
* e-msg-composer.c (handle_multipart_alternative,
handle_multipart, e_msg_composer_new_with_message): Use
CamelContentType instead of GMimeContentField.
* e-msg-composer-attachment.c (e_msg_composer_attachment_edit):
* e-msg-composer-attachment-bar.c (update, attach_to_multipart):
Use CamelContentType, and use the header_content_type_* functions
rather than operating on the structure by hand.
svn path=/trunk/; revision=7188
Big patch.
Evolution-services rewrite, services updated for new system, Fixes to
Executive Summary and other things. See some changelogs
svn path=/trunk/; revision=6644
2000-11-01 Jeffrey Stedfast <fejj@helixcode.com>
* e-msg-composer-attachment-bar.c (attach_to_multipart): Fix the
CTE kludge, calculate the best mime transfer encoding for the mime
part and use that. Include e-msg-composer-select-file.h
svn path=/trunk/; revision=6325
2000-10-02 Iain Holmes <iain@helixcode.com>
* e-msg-composer-attachment-bar.c: If the description of an attachment
is a blank string, revert to displaying the filename.
2000-10-01 Iain Holmes <iain@helixcode.com>
* e-icon-list.c: If you try to add an icon from a file that doesn't
exist put a "Broken icon" image.
* bad-icon.xpm: Broken icon image.
svn path=/trunk/; revision=5652
* e-msg-composer-attachment.c (get_mime_type): Use
gnome_vfs_get_file_info.
* e-msg-composer-attachment-bar.c (update): Use gnome_vfs_mime
functions, not old gnome_mime.
svn path=/trunk/; revision=5496
2000-09-12 Larry Ewing <lewing@helixcode.com>
* e-msg-composer-attachment-bar.c (add_common): add a make sure
the attachment isn't NULL. A more complete fix coming soon.
svn path=/trunk/; revision=5394
* e-msg-composer-attachment-bar.c (add_from_user): keep the
GtkFileSelection around between calls so we start up in the same
directory we ended up in last time around. (Also fixes a big
memory leak in that the code was already keeping the
GtkFileSelection around, it just wasn't remembering to reuse it.)
svn path=/trunk/; revision=3570
* e-msg-composer.c (e_msg_composer_attach): New convenience
function.
* e-msg-composer-attachment.c: Store a CamelMimePart rather than
filename/description/mime_type info. Also record whether we were
told or guessed the MIME type.
(e_msg_composer_attachment_new_from_mime_part): New constructor.
(e_msg_composer_attachment_edit): Remove the "browse" button. (If
the user wants to change the actual file that the attachment is
based on, he should delete the attachment and create a new one...)
Remove the "Apply" button, because it's not all that useful. Make
the MIME type only track the filename if it was guessed rather
than being provided.
* e-msg-composer-attachment.glade: Remove "browse" and "apply"
buttons. Make filename editable.
* e-msg-composer-attachment-bar.c (sort): Removed. Send the
attachments in the order the user attached them in.
(text_changed): Removed, since we weren't enabling the relevant
GnomeIconList functionality that would have used this.
(update): Don't print the size if it's 0.
(attach_to_multipart, etc): adjust for EMsgComposerAttachment
changes.
(attach_to_multipart): Use 7bit encoding for message/ subparts.
(e_msg_composer_attachment_bar_attach_mime_part): New convenience
function.
svn path=/trunk/; revision=3430