aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
Commit message (Collapse)AuthorAgeFilesLines
* fix cut&pasteo.Larry Ewing2001-10-061-1/+1
| | | | | | | | | 2001-10-05 Larry Ewing <lewing@ximian.com> * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_find_message): fix cut&pasteo. svn path=/trunk/; revision=13447
* remove unused variable.Larry Ewing2001-10-061-40/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* change to return a CamelMimePart.Larry Ewing2001-10-051-1/+32
| | | | | | | | | | | | 2001-10-04 Larry Ewing <lewing@ximian.com> * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_find_content_id): change to return a CamelMimePart. * e-msg-composer-attachment-bar.h: update prototype. svn path=/trunk/; revision=13437
* look up an attachment by it's content id.Larry Ewing2001-10-051-0/+30
| | | | | | | | | | | | | 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
* Don't gtk_object_destroy() the pixbuf loader, unref it instead.Jeffrey Stedfast2001-09-171-1/+1
| | | | | | | | | | | | 2001-09-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (update): Don't gtk_object_destroy() the pixbuf loader, unref it instead. * e-msg-composer-hdrs.c (destroy): Don't forget to free the private structure. svn path=/trunk/; revision=12862
* Set the user-chosen charset.Jeffrey Stedfast2001-07-031-5/+8
| | | | | | | | | | | | | | | | 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
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Replace the disposition option menu with a checkbox.Dan Winship2001-06-131-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Use e_utf8_to_gtk_string() on the description of the attachment sinceJeffrey Stedfast2001-05-291-13/+18
| | | | | | | | | | 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
* Replace #include <gtk/gtk.h> Replace #include <gnome.h> Remove #includeKjartan Maraas2001-03-301-1/+9
| | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-icon-list.c: Replace #include <gtk/gtk.h> * e-msg-composer-attachment-bar.c: Replace #include <gnome.h> * e-msg-composer-attachment-bar.h: Remove #include <gnome.h> * e-msg-composer-attachment.c: Remove #include <gnome.h> * e-msg-composer-attachment.h: Same here. * e-msg-composer-hdrs.c: Replace #include <gnome.h> and <bonobo.h> * e-msg-composer-hdrs.h: Replace #include <gnome.h> * e-msg-composer-file.c: #include <gtk/gtkmain.h>, <gtk/gtksignal.h> * e-msg-composer.c: Replace #include <bonobo.h>, <gnome.h> * e-msg-composer.h: Replace #include <gnome.h> and <bonobo.h> * evolution-composer.c: Replace #include <bonobo.h> * listener.c: Same here. svn path=/trunk/; revision=9023
* multipart/* is another mime type we DO NOT want to encode ;-)Jeffrey Stedfast2001-02-101-20/+22
| | | | | | | | | 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
* Use header_content_type_simple, not header_content_type_format.Dan Winship2001-01-031-4/+5
| | | | | | | | * e-msg-composer-attachment.c (e_msg_composer_attachment_edit): * e-msg-composer-attachment-bar.c (update): Use header_content_type_simple, not header_content_type_format. svn path=/trunk/; revision=7215
* Use CamelContentType instead of GMimeContentField.Dan Winship2000-12-291-12/+7
| | | | | | | | | | | | | * 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,Iain Holmes2000-11-221-26/+50
| | | | | | | | 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
* new function (destroy): use e_msg_composer_clear_inlined_table, destroyRadek Doulik2000-11-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-08 Radek Doulik <rodo@helixcode.com> * e-msg-composer.c (e_msg_composer_clear_inlined_table): new function (destroy): use e_msg_composer_clear_inlined_table, destroy inlined_images hash table * listener.c (resolve_image_url): don't add inlined images to attachement bar * e-msg-composer.c (add_inlined_images): new function, adds inlined images to multipart (add_inlined_image): helper function, adds one image to multipart (build_message): store HTML messages with inlined images to multipart/related * e-msg-composer-attachment-bar.c (add_from_file): removed content_id arg (e_msg_composer_attachment_bar_attach): likewise * e-msg-composer-attachment.c (e_msg_composer_attachment_new): removed content_id arg svn path=/trunk/; revision=6507
* Two segfault fixesPeter Williams2000-11-071-2/+1
| | | | svn path=/trunk/; revision=6472
* Added #include <config.h> s/_HAVE_CONFIG_H/HAVE_CONFIG_H for working i18n.Kjartan Maraas2000-11-071-0/+1
| | | | | | | | | | 2000-11-06 Kjartan Maraas <kmaraas@gnome.org> * e-msg-composer-attachment.c: Added #include <config.h> * e-msg-composer-hdrs.c: s/_HAVE_CONFIG_H/HAVE_CONFIG_H for working i18n. svn path=/trunk/; revision=6420
* use inline images hash tableRadek Doulik2000-11-041-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-04 Radek Doulik <rodo@helixcode.com> * listener.c (resolve_image_url): use inline images hash table * e-msg-composer.c (init): create inlined images hash table (destroy): destroy it (clear_inline_images): helper function, used from g_hash_table_foreach_remove to destroy one inline image record * e-msg-composer.h: added hash table with inlined images url -> cid info 2000-11-03 Radek Doulik <rodo@helixcode.com> * listener.c (impl_event): updated for API changed implemented image_url event (resolve_image_url): new helper function, attaches image to mail and returns new (resolved) url pointing to mime component * e-msg-composer-attachment.c (e_msg_composer_attachment_new): added conponent_id parameter * e-msg-composer-attachment-bar.c (e_msg_composer_attachment_bar_attach): added parameter content_id (add_from_file): likewise svn path=/trunk/; revision=6390
* Fix the CTE kludge, calculate the best mime transfer encoding for the mimeJeffrey Stedfast2000-11-021-15/+59
| | | | | | | | | | 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
* lots of i18n fixesDan Winship2000-10-241-1/+1
| | | | svn path=/trunk/; revision=6143
* Pull the fix to the "attach-twice-and-crash" problem up to HEAD.Ettore Perazzoli2000-10-231-41/+9
| | | | svn path=/trunk/; revision=6108
* Handle missing icons better.Iain Holmes2000-10-111-1/+16
| | | | svn path=/trunk/; revision=5827
* If the description of an attachment is a blank string, revert toIain Holmes2000-10-021-1/+1
| | | | | | | | | | | | | | | | 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
* The big eye-candy commit.Iain Holmes2000-10-011-38/+132
| | | | | | Make thumbnails out of image attachments. svn path=/trunk/; revision=5648
* Use gnome_vfs_get_file_info.Dan Winship2000-09-191-3/+5
| | | | | | | | | | * 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
* add a make sure the attachment isn't NULL. A more complete fix comingLarry Ewing2000-09-131-0/+2
| | | | | | | | | 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
* s/strcasecmp/g_strcasecmpJeffrey Stedfast2000-08-081-2/+2
| | | | | | | | | 2000-08-07 Jeffrey Stedfast <fejj@helixcode.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): s/strcasecmp/g_strcasecmp svn path=/trunk/; revision=4574
* keep the GtkFileSelection around between calls so we start up in the sameDan Winship2000-06-141-15/+23
| | | | | | | | | | * 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
* New convenience function.Dan Winship2000-06-061-103/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* deal with Content-Transfer-Encoding a little bit at least.Dan Winship2000-05-111-2/+11
| | | | | | | * e-msg-composer-attachment-bar.c (attach_to_multipart): deal with Content-Transfer-Encoding a little bit at least. svn path=/trunk/; revision=2977
* unref content, etc. after attaching it to message.Dan Winship2000-05-081-0/+1
| | | | | | | | | | * e-msg-composer.c (build_message): unref content, etc. after attaching it to message. * e-msg-composer-attachment-bar.c (attach_to_multipart): unref part after attaching it. svn path=/trunk/; revision=2884
* Remove. We weren't using the fields that made this different fromDan Winship2000-04-271-9/+8
| | | | | | | | | | | | | * camel-mime-body-part.[ch]: Remove. We weren't using the fields that made this different from camel-mime-part, so it basically just forced us to do lots of gratuitous typecasting. * camel-multipart.[ch]: Use CamelMimePart. Remove the multipart parent stuff, since we weren't using that either. * etc: update for CamelMimeBodyPart -> CamelMimePart svn path=/trunk/; revision=2645
* Update for camel_mime_part_set_content.Dan Winship2000-04-271-19/+21
| | | | svn path=/trunk/; revision=2644
* add a s/SIMPLE_// that notzed missed remove a now-unused variableDan Winship2000-04-261-1/+1
| | | | | | | | * e-msg-composer-attachment-bar.c (attach_to_multipart): add a s/SIMPLE_// that notzed missed * e-msg-composer.c (build_message): remove a now-unused variable svn path=/trunk/; revision=2630
* Use camel_mime_part_set_text() to set the text rather than messing withNotZed2000-04-261-3/+3
| | | | | | | | | | | | | 2000-04-26 NotZed <NotZed@HelixCode.com> * e-msg-composer.c (build_message): Use camel_mime_part_set_text() to set the text rather than messing with data wrappers. * e-msg-composer-attachment-bar.c (attach_to_multipart): Change for new camel-stream interfaces. (attach_to_multipart): Also set base64 encoding by default. svn path=/trunk/; revision=2623
* build libcomposer static and don't install it.Dan Winship2000-04-241-9/+24
| | | | | | | | | * Makefile.am: build libcomposer static and don't install it. * e-msg-composer-attachment-bar.c (attach_to_multipart): This was only half-implemented. Finish it, mostly. svn path=/trunk/; revision=2561
* More work:Ettore Perazzoli1999-11-171-0/+665
- Fixed some Camel API naming issues. - Moved the message composer stuff to the `composer' directory. svn path=/trunk/; revision=1395