aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
Commit message (Collapse)AuthorAgeFilesLines
* Added attachment of remote URL. The dnd of url, downloads the files andSrininvasa Ragavan2005-05-231-2/+181
| | | | | | | | | | | 2005-05-23 Srininvasa Ragavan <sragavan@novell.com> * e-msg-composer-attachment-bar.c, e-msg-composer-attachment-bar.h, e-msg-composer-attachment.c, e-msg-composer-attachment.h, e-msg-composer.c, e-msg-composer.h, mail-composer.error.xml : Added attachment of remote URL. The dnd of url, downloads the files and attaches to the mail. svn path=/trunk/; revision=29399
* moved e-error to e-util.Not Zed2005-05-161-1/+1
| | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * moved e-error to e-util. svn path=/trunk/; revision=29365
* Add a11y name for attachment button and barsHarry Lu2005-02-161-0/+3
| | | | | | | | | | | | 2005-02-16 Harry Lu <harry.lu@sun.com> Add a11y name for attachment button and bars * e-msg-composer-attachment-bar.c: (e_msg_composer_attachment_bar_new): * e-msg-composer.c: (create_composer): svn path=/trunk/; revision=28802
* ** See bug #66126.Not Zed2005-02-101-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-02-10 Not Zed <NotZed@Ximian.com> ** See bug #66126. * e-msg-composer-attachment-bar.c (destroy): destroy async file requesters. (add_from_user_response, add_from_user): use async file requesters. * e-msg-composer.c (save): don't fallback to saveas if the filename is null. (saveas, saveas_response): new functions for async file requesters. (menu_file_save_cb): call saveas if we have no filename. (menu_file_save_as_cb): call saveas. (menu_file_open_cb, file_open_response): change for async file loading (which doesn't appear to be used anymore). (destroy): destroy async requesters. * e-msg-composer-select-file.c (get_selector): make it no longer modal, no longer show the window. (select_file_response, e_msg_composer_select_file): make it async. (select_attach_response, e_msg_composer_select_file_attachments): same. svn path=/trunk/; revision=28760
* svn path=/trunk/; revision=28178Not Zed2004-12-221-1/+1
| | | | | | | | | | 2004-12-17 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (emcab_popup): * e-msg-composer.c (drag_data_received): svn path=/trunk/; revision=28178
* remove the old camel_multipart_encrypted api.Not Zed2004-12-031-1/+1
| | | | | | | | | 2004-11-15 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (handle_multipart_encrypted): remove the old camel_multipart_encrypted api. svn path=/trunk/; revision=28052
* fix the popup id.Not Zed2004-10-281-1/+8
| | | | | | | | | | 2004-10-28 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (drag_data_received): fix the popup id. * e-msg-composer-attachment-bar.c (emcab_popup): added popup doco. svn path=/trunk/; revision=27750
* convert to org.gnome hook namesJP Rosevear2004-10-201-1/+1
| | | | | | | | | 2004-10-19 JP Rosevear <jpr@novell.com> * e-msg-composer.c, e-msg-composer-attachment-bar.c: convert to org.gnome hook names svn path=/trunk/; revision=27636
* e-popup api changes.Not Zed2004-10-071-1/+1
| | | | | | | | | 2004-10-06 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (drag_data_received): * e-msg-composer-attachment-bar.c (emcab_popup): e-popup api changes. svn path=/trunk/; revision=27486
* Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-201-149/+98
| | | | svn path=/trunk/; revision=27300
* if we have a cached icon, use it, don't just ignore it! #58831.Not Zed2004-05-251-2/+5
| | | | | | | | | 2004-05-25 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (update): if we have a cached icon, use it, don't just ignore it! #58831. svn path=/trunk/; revision=26070
* ** Changed error messages to EError.Not Zed2004-04-281-10/+3
| | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to EError. svn path=/trunk/; revision=25652
* duh, pass the string not the content type to the warning message. AndNot Zed2004-04-271-3/+3
| | | | | | | | | | 2004-04-27 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (update): duh, pass the string not the content type to the warning message. And derrr, print it for the actual error case, not the ok case. Fixes #57680. svn path=/trunk/; revision=25633
* fallback to stock attach if we can't ifnd the icon.Not Zed2004-04-231-11/+16
| | | | | | | | | 2004-04-23 Not Zed <NotZed@Ximian.com> * e-msg-composer-attachment-bar.c (update): fallback to stock attach if we can't ifnd the icon. svn path=/trunk/; revision=25593
* Same idea here as with build_mesage(), don't convert th gconf charsetJeffrey Stedfast2004-04-161-14/+18
| | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-15 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): Same idea here as with build_mesage(), don't convert th gconf charset setting to the iconv name before setting it on the mime part. * e-msg-composer.c (best_charset): Now returns a malloc'd string bufefr containing the charset that has NOT been converted to the iconv name. This is important in order to avoid using the iconv charset name which may or may not necessarily be the IANA blessed name. (composer_get_default_charset_setting): Changed to always return the actual value in the settings (eg. don't return the iconv name). (build_message): Updated for changes to best_charset(). Set the actual charset name as the charset param and then get the iconv_charset from that. Use iconv_charset everywhere else. (get_file_content): Updated for changes to get_default_charset_setting(). (setup_ui): Same. svn path=/trunk/; revision=25487
* Fixed missing headers now mail/* doesn't include gtk/*, camel/*, andNot Zed2004-03-311-0/+1
| | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * *.[ch]: Fixed missing headers now mail/* doesn't include gtk/*, camel/*, and gnome/* for you. svn path=/trunk/; revision=25259
* If we select multi-attachments, the "properities" menu item in popup iconBill Zhu2004-03-181-1/+10
| | | | | | | | | | | 2004-03-17 Bill Zhu <bill.zhu@sun.com> * e-msg_composer-attachment-bar.c: If we select multi-attachments, the "properities" menu item in popup icon context menu will be disabled. Fixes bug #55299 svn path=/trunk/; revision=25113
* add a key-press event handler, with which a little modification to PaoloBruce Tao2004-03-041-1/+26
| | | | | | | | | | | 2004-02-27 Bruce Tao <bruce.tao@sun.com> * e-msg-composer-attachment-bar.c: add a key-press event handler, with which a little modification to Paolo Borelli's patch. <pborelli@katamail.com> When one attachment is deleted, the icon right after the last deleted one will be focused. svn path=/trunk/; revision=24959
* add accel and icon for the "remove" item in the popup menu. Patch fromRodney Dawes2004-02-071-4/+5
| | | | | | | | | | 2004-02-06 Rodney Dawes <dobey@ximian.com> * e-msg-composer-attachment-bar.c: add accel and icon for the "remove" item in the popup menu. Patch from Paolo Borelli <pborelli@katamail.com> svn path=/trunk/; revision=24653
* Same as below.Jeffrey Stedfast2003-09-251-0/+5
| | | | | | | | | | | | | 2003-09-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (get_default_charset): Same as below. * e-msg-composer.c (composer_get_default_charset_setting): Handle empty-string as the charset value gotten from gconf as this can happen. Partial fix for bug #47638. svn path=/trunk/; revision=22692
* Add some assertion. Send Close response signal to the properties dialogCharles Zhang2003-09-231-2/+16
| | | | | | | | | | | | 2003-09-13 Charles Zhang <charles.zhang@sun.com> * e-msg-composer-attachment-bar.c (remove_attachment): Add some assertion. Send Close response signal to the properties dialog while removeing an attachment. * e-msg-composer-attachment-bar.c (remove_selected): Fix a re- remove-attachment bug. [#48466] svn path=/trunk/; revision=22656
* updated for CamelTransferEncoding namespace changesJeffrey Stedfast2003-09-191-3/+3
| | | | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: updated for CamelTransferEncoding namespace changes * e-msg-composer.c: updated for CamelTransferEncoding namespace changes svn path=/trunk/; revision=22616
* Updated for namespace changes in Camel.Jeffrey Stedfast2003-09-191-6/+6
| | | | | | | | | | 2003-09-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: * e-msg-composer-attachment.c: * e-msg-composer.c: Updated for namespace changes in Camel. svn path=/trunk/; revision=22611
* temporarily reverting camel namespace changes until after other branches ↵Jeffrey Stedfast2003-08-271-6/+6
| | | | | | have been merged svn path=/trunk/; revision=22374
* updated for namespace changed made to camel-mime-utils.[c,h]Jeffrey Stedfast2003-08-261-6/+6
| | | | | | | | | | | | | | | 2003-08-25 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: updated for namespace changed made to camel-mime-utils.[c,h] * e-msg-composer-attachment.c: updated for namespace changed made to camel-mime-utils.[c,h] * e-msg-composer.c: updated for namespace changed made to camel-mime-utils.[c,h] svn path=/trunk/; revision=22356
* This needs to use camel_data_wrapper_decode_to_stream() rather thanJeffrey Stedfast2003-08-141-30/+10
| | | | | | | | | | | | | | | | | | 2003-08-13 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (update): This needs to use camel_data_wrapper_decode_to_stream() rather than write_to_stream(). Also simplify a bit - no sense looping to load the pixbuf data into the gdk-pixbuf loader 4K at a time when we have the whole thing in a memory buffer already. Once done, unref the stream instead of closing it so we don't leak. (attach_to_multipart): Use decode_to_stream(). * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Avoid constructing thwe data-wrapper from the stream twice for message/rfc822 parts. svn path=/trunk/; revision=22213
* don't set the rawtext bit anymore.Jeffrey Stedfast2003-08-121-8/+1
| | | | | | | | | | | | 2003-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): don't set the rawtext bit anymore. * e-msg-composer.c (build_message): Convert the plain part's content stream from UTF-8 to whatever charset we want. svn path=/trunk/; revision=22172
* add gdk_pixbuf_loader_close to close pix buffer loading. [#45908]Antonio Xu2003-07-291-1/+3
| | | | | | | | | 2003-07-29 Antonio Xu <antonio.xu@sun.com> * e-msg-composer-attachment-bar.c (update): add gdk_pixbuf_loader_close to close pix buffer loading. [#45908] svn path=/trunk/; revision=22008
* Revert my previous changes here too.Jeffrey Stedfast2003-07-241-1/+8
| | | | | | | | | | | 2003-07-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): Revert my previous changes here too. * e-msg-composer.c (build_message): Revert my previous changes. svn path=/trunk/; revision=21918
* don't set the rawtext bit anymore.Jeffrey Stedfast2003-07-171-38/+29
| | | | | | | | | | | | | | | | | 2003-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (attach_to_multipart): don't set the rawtext bit anymore. * e-msg-composer.c (build_message): Convert the plain part's content stream from UTF-8 to whatever charset we want. 2003-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (popup_menu_event): Fix warnings and other breakage introduced by Maxx. svn path=/trunk/; revision=21843
* ** For bug #45826Maxx Cao2003-07-151-0/+50
| | | | | | | | | | | | | | | 2002-07-14 Maxx Cao <maxx.cao@sun.com> ** For bug #45826 * e-msg-composer-attachment-bar.c (class_init): connect the "popup_menu" signal, so that S-F10 keybinding will work. (popup_menu_event): funcion added to handle "popup_menu" (S-F10 key). (popup_menu_placement_callback): function added to place the popup menu to the center of attachment icon, in case it is activated by keyboard. svn path=/trunk/; revision=21812
* Gone. (update): Use e_icon_for_mime_type instead.Dan Winship2003-07-031-61/+2
| | | | | | | | | * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Gone. (update): Use e_icon_for_mime_type instead. * Makefile.am (INCLUDES): remove EVOLUTION_IMAGESDIR define svn path=/trunk/; revision=21735
* Same as the rest. (setup_ui): We didn't even seem to be using the gconfJeffrey Stedfast2003-06-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Same as the rest. (setup_ui): We didn't even seem to be using the gconf client here. Removed. (e_msg_composer_load_config): Unref the gconf client after we're finished. (e_msg_composer_new): Same. (e_msg_composer_new_post): Here too. (e_msg_composer_set_view_from): And here. (e_msg_composer_set_view_replyto): And here. (e_msg_composer_set_view_cc): Here too. (e_msg_composer_set_view_bcc): Again here. * e-msg-composer-hdrs.c (create_from_optionmenu): Same as below. (e_msg_composer_hdrs_set_from_account): Here too. * e-msg-composer-attachment-bar.c (get_default_charset): Unref the gconf client. svn path=/trunk/; revision=21391
* If we fail to load the icon that gnome_vfs_get_icon() gave us, the defaultJeffrey Stedfast2003-04-281-2/+7
| | | | | | | | | | | | 2003-04-25 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): If we fail to load the icon that gnome_vfs_get_icon() gave us, the default back to gnome-unknown.png. This is the only POSSIBLE way for Anna to be getting a NULL pixbuf if she has gnome-unknown.png that I can see. Should fix bug #41513. svn path=/trunk/; revision=20982
* Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno whatJeffrey Stedfast2003-04-101-1/+1
| | | | | | | | | | | | 2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno what I was thinking. locale_name() doesn't even exist. * e-msg-composer-attachment-bar.c (get_default_charset): Same. svn path=/trunk/; revision=20793
* Same as with attachment-bar's get_default_charset(). (setup_ui): InsteadJeffrey Stedfast2003-04-091-2/+6
| | | | | | | | | | | | | | 2003-04-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Same as with attachment-bar's get_default_charset(). (setup_ui): Instead of pulling the default charset from gconf, call our helper function above. * e-msg-composer-attachment-bar.c (get_default_charset): If gconf returns a NULL string, default back to the locale charset. svn path=/trunk/; revision=20775
* Use GnomeIconList instead of EIconList so we don't have to maintain anJeffrey Stedfast2003-03-121-56/+51
| | | | | | | | | | | | 2003-03-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c: Use GnomeIconList instead of EIconList so we don't have to maintain an exact copy/paste of GnomeIconList ourselves. I don't udnerstand why we ever did. * e-icon-list.[c,h]: Removed. svn path=/trunk/; revision=20251
* Same as below.Jeffrey Stedfast2003-02-261-2/+3
| | | | | | | | | | | 2003-02-25 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Same as below. * e-msg-composer-attachment-bar.c: Go back to using e_iconv_charset_name(). svn path=/trunk/; revision=20059
* Fixed a memory leak.Jeffrey Stedfast2003-02-251-0/+1
| | | | | | | | | 2003-02-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a memory leak. svn path=/trunk/; revision=20044
* Same as below.Jeffrey Stedfast2003-02-211-2/+2
| | | | | | | | | | | | | 2003-02-20 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Same as below. * e-msg-composer-attachment-bar.c (get_default_charset): Use camel_charset_canonical_name() rather than e_iconv_charset_name() as the latter will be removed shortly. svn path=/trunk/; revision=19979
* clean upDan Winship2003-02-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: clean up * e-msg-composer.c (autosave_manager_query_load_orphans): #include string.h (menu_file_send_cb): s/gtk_signal_emit/g_signal_emit/ * e-msg-composer-attachment.c: #include string.h (e_msg_composer_attachment_edit): s/E_GLADEDIR/EVOLUTION_GLADEDIR * e-msg-composer-attachment-bar.c: #include string.h (pixbuf_for_mime_type): s/ICONSDIR/IMAGESDIR/ * e-msg-composer-hdrs.c: #include string.h * e-msg-composer-select-file.c (run_selector): Remove unused var * evolution-composer.c: #include string.h (evolution_composer_init): Remove unused var * listener.c: #include string.h (listener_new): Remove unused var svn path=/trunk/; revision=19804
* use the composer's charset gconf keyJeffrey Stedfast2003-01-081-1/+1
| | | | svn path=/trunk/; revision=19274
* New convenience function. (attach_to_multipart): UseJeffrey Stedfast2003-01-081-1/+19
| | | | | | | | | | 2003-01-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment-bar.c (get_default_charset): New convenience function. (attach_to_multipart): Use get_default_charset(). svn path=/trunk/; revision=19270
* Remove the window size setting. (e_msg_composer_attachment_bar_new): MoveNot Zed2002-11-251-18/+18
| | | | | | | | | | | | 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
* rewrote most of this. Just use gtkfileselection directly, noNot Zed2002-11-251-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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
* dont unref after destroy. duh.Not Zed2002-11-191-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove some unused ehaders and ones that cause compilation failures (suchJeffrey Stedfast2002-11-111-32/+23
| | | | | | | | | | | 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
* Fix bonobo object setup.Not Zed2002-11-081-85/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Don't set the charset param on text parts nor tha rawtext bit on theJeffrey Stedfast2002-10-281-10/+17
| | | | | | | | | | 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
* (size_to_string): Return NULLEttore Perazzoli2002-10-261-3/+7
| | | | | | | | 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
* Set content->rawtext to TRUE for text parts because the content is in itsJeffrey Stedfast2002-10-081-7/+24
| | | | | | | | | | | | | 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
* Don't mark empty string with _().Zbigniew Chyla2002-09-241-1/+1
| | | | | | | | | 2002-09-24 Zbigniew Chyla <cyba@gnome.pl> * e-msg-composer-attachment-bar.c (size_to_string): Don't mark empty string with _(). svn path=/trunk/; revision=18197
* Removed a #warning.Ettore Perazzoli2002-09-241-11/+4
| | | | | | | | | * 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
* Set the file-selection window icon. Fixes the mailer part of bug #7368.Jeffrey Stedfast2002-08-131-15/+16
| | | | | | | | | | | | | | | | | 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
* Special-case message/digest and give it a nice icon. [#9786]Ettore Perazzoli2002-07-271-1/+17
| | | | | | | | | * 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
* Unref the priv->tooltips object here.Jeffrey Stedfast2002-04-171-0/+2
| | | | | | | | | | | | | | 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
* Attach to the parent widget's destroy signal - when that gets destroyed,Jeffrey Stedfast2001-12-141-69/+70
| | | | | | | | | | | | | | | 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
* select_file_attachments now returns a GPtrArray so handle that and loopJeffrey Stedfast2001-12-111-5/+9
| | | | | | | | | | | | | | | | | | | | | 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
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Make inline images used for replies not show up asDan Winship2001-10-221-39/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Don't use a g_return_val_if_fail after iconv_open, this is a valid errorJeffrey Stedfast2001-10-191-50/+28
| | | | | | | | | | | | | | 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
* If the attachment fails, report the error to the user.Jeffrey Stedfast2001-10-101-7/+27
| | | | | | | | | | | | 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
* 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