aboutsummaryrefslogtreecommitdiffstats
path: root/composer
Commit message (Collapse)AuthorAgeFilesLines
* Updated to use camel_strcase_hash/equal.Jeffrey Stedfast2003-07-082-3/+8
| | | | | | | | | 2003-07-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Updated to use camel_strcase_hash/equal. svn path=/trunk/; revision=21755
* Gone. (update): Use e_icon_for_mime_type instead.Dan Winship2003-07-033-62/+9
| | | | | | | | | * 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
* Change file url to absolute path. Fixes bug #44065.Antonio Xu2003-07-032-1/+16
| | | | | | | | | 2003-06-25 Antonio Xu <antonio.xu@sun.com> * e-msg-composer.c (handle_mailto): Change file url to absolute path. Fixes bug #44065. svn path=/trunk/; revision=21726
* Connect to the save-draft signal too. Fixes bug #45531.Jeffrey Stedfast2003-07-032-1/+9
| | | | | | | | | 2003-07-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_load_draft): Connect to the save-draft signal too. Fixes bug #45531. svn path=/trunk/; revision=21724
* Set the rawtext bits for the 'plain' and 'html' data wrappers to FALSE.Jeffrey Stedfast2003-06-302-0/+10
| | | | | | | | | 2003-06-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Set the rawtext bits for the 'plain' and 'html' data wrappers to FALSE. svn path=/trunk/; revision=21695
* free the return value. (impl_event): free the return value.Larry Ewing2003-06-202-0/+8
| | | | | | | | | 2003-06-19 Larry Ewing <lewing@ximian.com> * listener.c (insert_paragraph_after): free the return value. (impl_event): free the return value. svn path=/trunk/; revision=21481
* Use e_iconv_open/close so that we get charset aliasing for free. Fixes bugJeffrey Stedfast2003-06-192-3/+8
| | | | | | | | | 2003-06-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (best_encoding): Use e_iconv_open/close so that we get charset aliasing for free. Fixes bug #44991. svn path=/trunk/; revision=21469
* Fixes bug #44139.Jeffrey Stedfast2003-06-183-12/+19
| | | | | | | | | | | | | | | | 2003-06-16 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #44139. * e-msg-composer-hdrs.c (attach_couple): Set the vertical and horizontal padding to 3 always. (create_from_optionmenu): Change the hbox spacing to 6 pixels. * e-msg-composer.c (create_composer): Set the border width around the composer's vbox to HIG specification and make the box_spacing 6 pixels as well. svn path=/trunk/; revision=21460
* free the result only if there isn't an exception.Larry Ewing2003-06-141-1/+1
| | | | | | | | | 2003-06-13 Larry Ewing <lewing@ximian.com> * listener.c (insert_paragraph_before): free the result only if there isn't an exception. svn path=/trunk/; revision=21434
* Put the ChangeLog.pre-1-4 in the Makefiles.Ettore Perazzoli2003-06-131-0/+1
| | | | svn path=/trunk/; revision=21426
* free the structure as well.Larry Ewing2003-06-112-0/+6
| | | | | | | | | 2003-06-10 Larry Ewing <lewing@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_and_string_free): free the structure as well. svn path=/trunk/; revision=21396
* free the return values.Larry Ewing2003-06-112-0/+6
| | | | | | | | 2003-06-09 Larry Ewing <lewing@ximian.com> * listener.c (insert_paragraph_before): free the return values. svn path=/trunk/; revision=21393
* Same as the rest. (setup_ui): We didn't even seem to be using the gconfJeffrey Stedfast2003-06-104-7/+37
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Roll over ChangeLogs.Ettore Perazzoli2003-06-102-4037/+4037
| | | | svn path=/trunk/; revision=21387
* i2003-05-20 Larry Ewing <lewing@ximian.com>Larry Ewing2003-05-213-1/+49
| | | | | | | | | | | * e-msg-composer.c (composer_settings_update): set the various bonobo properties that are composer preferences. (create_composer): add notification of gconf changes. (destroy): disconnect notification. * e-msg-composer.h: keep the gcond notify handler id. svn path=/trunk/; revision=21287
* Don't connect to the focus-out-event in order to update the mime-type.Jeffrey Stedfast2003-05-172-29/+7
| | | | | | | | | | | 2003-05-15 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_edit): Don't connect to the focus-out-event in order to update the mime-type. Simply don't update the mime-type ever. Fixes bug #42798. svn path=/trunk/; revision=21214
* Change the "would you like to recover unsaved drafts?" dialog a QUESTIONJeffrey Stedfast2003-04-302-1/+7
| | | | | | | | | | 2003-04-28 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_manager_query_load_orphans): Change the "would you like to recover unsaved drafts?" dialog a QUESTION dialog rather than an ERROR dialog. Fixes bug #42024. svn path=/trunk/; revision=21001
* If we fail to load the icon that gnome_vfs_get_icon() gave us, the defaultJeffrey Stedfast2003-04-282-2/+15
| | | | | | | | | | | | 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
* removed debug printfs.Not Zed2003-04-242-3/+4
| | | | | | | | 2003-04-23 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (map_default_cb): removed debug printfs. svn path=/trunk/; revision=20952
* Don't ever attach non-inlined text or message parts. Reverts a prior fix.Jeffrey Stedfast2003-04-232-7/+8
| | | | | | | | | 2003-04-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Don't ever attach non-inlined text or message parts. Reverts a prior fix. svn path=/trunk/; revision=20923
* added related argument, TRUE means that container of mime_part isRadek Doulik2003-04-222-4/+19
| | | | | | | | | | | | | | 2003-04-22 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): added related argument, TRUE means that container of mime_part is multipart/related (add_attachments_handle_mime_part): add images as inline when related is TRUE (add_attachments_from_multipart): pass related to add_attachments_handle_mime_part svn path=/trunk/; revision=20913
* Change the order of the ok/cancel buttons.Jeffrey Stedfast2003-04-222-6/+11
| | | | | | | | | 2003-04-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.glade: Change the order of the ok/cancel buttons. svn path=/trunk/; revision=20904
* [ fixes #40694 ] this can't hurt - set the frame to autoactivate so if byChris Toshok2003-04-203-3/+16
| | | | | | | | | | | | | | 2003-04-19 Chris Toshok <toshok@ximian.com> [ fixes #40694 ] * e-msg-composer-hdrs.c (create_addressbook_entry): this can't hurt - set the frame to autoactivate so if by some chance the widget is focused the control will end up being activated. * e-msg-composer.c (map_default_cb): activate the To: control instead of focusing the widget. svn path=/trunk/; revision=20896
* [ fixes #21499 ]Rodney Dawes2003-04-193-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-18 Rodney Dawes <dobey@ximian.com> [ fixes #21499 ] * gui/component/Makefile.am: * gui/component/addressbook.c: * gui/component/select-names/e-select-names-bonobo.c: * gui/contact-editor/Makefile.am: * gui/contact-editor/e-contact-editor.c: * gui/contact-list-editor/Makefile.am: * gui/contact-list-editor/e-contact-list-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * gui/Makefile.am: * gui/calendar-commands.c: * gui/tasks-control.c: * gui/dialogs/Makefile.am: * gui/dialogs/comp-editor.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * Makefile.am: * e-msg-composer.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * folder-browser-ui.c: * mail-signature-editor.c: * message-browser.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui (). Fixes bug #21499. * Makefile.am: * e-summary-factory.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () * e-shell-view.c: Use PREFIX instead of EVOLUTION_DATADIR for bonobo_ui_util_set_ui () [#21499] svn path=/trunk/; revision=20888
* Return FALSE so the signal gets propogated further up the chain. Fixes bugJeffrey Stedfast2003-04-162-2/+12
| | | | | | | | | | | | 2003-04-14 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (file_name_focus_out_cb): Return FALSE so the signal gets propogated further up the chain. Fixes bug #41238. (e_msg_composer_attachment_edit): The focus-out-event signal name changed (although the old name still works...for now?). svn path=/trunk/; revision=20847
* Updated to comply with the HIG. Fixes bug #41239 and bug #41241.Jeffrey Stedfast2003-04-122-2/+3
| | | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.glade: Updated to comply with the HIG. Fixes bug #41239 and bug #41241. svn path=/trunk/; revision=20832
* Updated to comply with the HIG.Jeffrey Stedfast2003-04-122-230/+224
| | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.glade: Updated to comply with the HIG. svn path=/trunk/; revision=20831
* Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno whatJeffrey Stedfast2003-04-102-2/+2
| | | | | | | | | | | 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. (setup_ui): Don't free the default_charset, it's a const char*. svn path=/trunk/; revision=20797
* Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno whatJeffrey Stedfast2003-04-103-2/+10
| | | | | | | | | | | | 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
* fix build, it's composer_get_default_charset_setting.Chris Toshok2003-04-092-1/+6
| | | | | | | | | 2003-04-09 Chris Toshok <toshok@ximian.com> * e-msg-composer.c (setup_ui): fix build, it's composer_get_default_charset_setting. svn path=/trunk/; revision=20782
* Same as with attachment-bar's get_default_charset(). (setup_ui): InsteadJeffrey Stedfast2003-04-093-5/+22
| | | | | | | | | | | | | | 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
* Added some debug printfs. (create_composer): Call map_default_cb directlyJeffrey Stedfast2003-04-092-7/+15
| | | | | | | | | | | 2003-04-08 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (map_default_cb): Added some debug printfs. (create_composer): Call map_default_cb directly instead of having it in a "map" callback. Ettore says we shouldn't be doing this *shrug*. Still doesn't work tho. svn path=/trunk/; revision=20767
* [ fixes bug #39763 ] remove the control_entry_focus_{in,out}_event_cbChris Toshok2003-04-083-39/+13
| | | | | | | | | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> [ fixes bug #39763 ] * e-msg-composer.c (setup_cut_copy_paste): remove the control_entry_focus_{in,out}_event_cb signal stuff. (control_entry_focus_in_event_cb): nuke (control_entry_focus_in_event_cb): same. * e-msg-composer-hdrs.c (create_addressbook_entry): pass the contain to bonobo_widget_new_control_from_objref when creating the entries. svn path=/trunk/; revision=20745
* If the composer isn't 'dirty', then don't autosave the draft (no need to).Jeffrey Stedfast2003-04-052-0/+9
| | | | | | | | | | 2003-04-04 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (autosave_save_draft): If the composer isn't 'dirty', then don't autosave the draft (no need to). Fixes bug #40764. svn path=/trunk/; revision=20671
* Add a select-all callback and verb. (composer_entry_focus_in_event_cb):Jeffrey Stedfast2003-04-042-0/+24
| | | | | | | | | | 2003-04-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (menu_edit_select_all_cb): Add a select-all callback and verb. (composer_entry_focus_in_event_cb): Set our bonobo-ui verbs. svn path=/trunk/; revision=20661
* Guard against the filesel's selection being NULL. Fixes bug #40679.Jeffrey Stedfast2003-04-032-6/+14
| | | | | | | | | 2003-04-02 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (e_msg_composer_select_file): Guard against the filesel's selection being NULL. Fixes bug #40679. svn path=/trunk/; revision=20648
* Keep track of which entry widget has focus.Jeffrey Stedfast2003-04-024-16/+165
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_entry_focus_in_event_cb): Keep track of which entry widget has focus. (composer_entry_focus_out_event_cb): Same. (control_entry_focus_in_event_cb): Same idea, but since this is in another component, tell that component that its widget has focus so it can merge bonoboui cut/copy/paste (and anything else) menus. (control_entry_focus_out_event_cb): Same. (setup_cut_copy_paste): Connect to the focus-in and focus-out events for all the entry widgets and the html editor. (menu_edit_cut_cb): New callback function since the composer will now own the Cut/Copy/Paste menu items sometimes (depending on which widget is in focus... confused yet? good). * e-msg-composer-hdrs.c (from_changed): Update the Reply-To entry to be a normal GtkEntry. (create_headers): Same. (e_msg_composer_hdrs_set_reply_to): Here too. (e_msg_composer_hdrs_get_reply_to): And finally here. svn path=/trunk/; revision=20623
* ** See bug #40300 & probably others.Not Zed2003-04-023-4/+27
| | | | | | | | | | | | | | 2003-04-01 Not Zed <NotZed@Ximian.com> ** See bug #40300 & probably others. * e-msg-composer.c (autosave_manager_query_load_orphans): make the composer arg a parent arg, its only used parent the dialogue. Fix caller casts. (e_msg_composer_check_autosave): new function, checks for autosave files, and recovers them per user instructions. svn path=/trunk/; revision=20616
* Convert to libglade-2's format.Jeffrey Stedfast2003-04-013-293/+266
| | | | | | | | | | | 2003-03-31 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.glade: Convert to libglade-2's format. * e-msg-composer.c (set_editor_signature): E_MSG_COMPOSER_HDRS (composer->hdrs)->account->id can never be NULL anymore. svn path=/trunk/; revision=20604
* Update for e_notice moveDan Winship2003-03-252-9/+13
| | | | | | * e-msg-composer.c: Update for e_notice move svn path=/trunk/; revision=20501
* Fixes for bug #39813Jeffrey Stedfast2003-03-212-7/+15
| | | | | | | | | | | | 2003-03-20 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #39813 * e-msg-composer.c (composer_finalise): Don't unregister the signature event handler here. (destroy): Unregister it here instead. svn path=/trunk/; revision=20442
* Change the logic to attach text parts when appropriate. (map_default_cb):Jeffrey Stedfast2003-03-202-11/+12
| | | | | | | | | | | 2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Change the logic to attach text parts when appropriate. (map_default_cb): Grab the focus of the To entry widget. Fixes bug #39800. Fixes another #warning too. svn path=/trunk/; revision=20371
* Change the logic to attach text parts when appropriate.Jeffrey Stedfast2003-03-202-34/+35
| | | | | | | | | 2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Change the logic to attach text parts when appropriate. svn path=/trunk/; revision=20367
* e_msg_composer_hdrs_get_subject() now returns const so don't g_free() itJeffrey Stedfast2003-03-195-44/+50
| | | | | | | | | | | | | | | | | | | | | | | 2003-03-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (do_exit): e_msg_composer_hdrs_get_subject() now returns const so don't g_free() it :-) (map_default_cb): Same as above. Also, the subject entry no longer derives from GnomeCanvas so eliminate the now unneeded casting to grab the focus of the subject widget. (e_msg_composer_get_subject): Return a const char * now. * e-msg-composer-hdrs.c (create_headers): Make the subject entry into a GtkEntry so we don't have to worry about i18n and other EEntry bugs anymore. Fixes numerous bugs (including #39924). (e_msg_composer_hdrs_set_subject): Use gtk_entry_set_text(). (e_msg_composer_hdrs_to_message_internal): e_msg_composer_hdrs_get_subject() now returns const. (e_msg_composer_hdrs_get_subject): Return a const char *. (entry_changed): e_msg_composer_hdrs_get_subject() now returns const. svn path=/trunk/; revision=20350
* Default the composer's title to "Create a message". Fixes bug #39696.Jeffrey Stedfast2003-03-142-1/+7
| | | | | | | | | 2003-03-13 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (create_composer): Default the composer's title to "Create a message". Fixes bug #39696. svn path=/trunk/; revision=20283
* Use GnomeIconList instead of EIconList so we don't have to maintain anJeffrey Stedfast2003-03-126-2887/+70
| | | | | | | | | | | | 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
* add send_cb/save_draft_cb arguments. (impl_Composer_send): use the localNot Zed2003-03-103-72/+55
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-03-11 Not Zed <NotZed@Ximian.com> * evolution-composer.c (evolution_composer_new): add send_cb/save_draft_cb arguments. (impl_Composer_send): use the local send_cb. (evolution_composer_init): dont init send, save-draft signals here. (evolution_composer_new): init signals here, fix params to composer_construct(). (evolution_composer_factory_init): remove, part of mailer now. (factory_fn): same. (finalise): disconnect from callbacks first. * evolution-composer.h: add send_cb/save_draft_cb to composer object. 2003-03-10 Not Zed <NotZed@Ximian.com> * evolution-composer.c (finalise): from destroy. (evolution_composer_class_init): gtkobject->gobject stuff. (evolution_composer_new): remove old redundant stuff. svn path=/trunk/; revision=20227
* Don't allow the returned charset to be NULL. (get_file_content): Make sureJeffrey Stedfast2003-03-052-2/+13
| | | | | | | | | | | 2003-03-04 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset_setting): Don't allow the returned charset to be NULL. (get_file_content): Make sure there is buffered data before trying to convert it to UTF-8. svn path=/trunk/; revision=20139
* disconnect any signal handlers on the accounts object. For bug #37873.Not Zed2003-03-042-0/+6
| | | | | | | | | 2003-03-04 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (destroy): disconnect any signal handlers on the accounts object. For bug #37873. svn path=/trunk/; revision=20135
* Same as below.Jeffrey Stedfast2003-02-263-5/+12
| | | | | | | | | | | 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
* Make sure the url is != NULL? I can't think of anything else in this codeJeffrey Stedfast2003-02-252-0/+8
| | | | | | | | | | 2003-02-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (drag_data_received): Make sure the url is != NULL? I can't think of anything else in this code that could possibly cause bug #38382. svn path=/trunk/; revision=20046
* Fixed a memory leak.Jeffrey Stedfast2003-02-252-0/+6
| | | | | | | | | 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
* Don't save the HTML format setting to gconf. This option menu is meant forJeffrey Stedfast2003-02-232-5/+8
| | | | | | | | | | | | 2003-02-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_set_send_html): Don't save the HTML format setting to gconf. This option menu is meant for a per-essage setting (ie. once the composer closes, the next composer will again use the default and not what the user chose last time). svn path=/trunk/; revision=20004
* build libcomposer as a shared library so it can be linked intoDan Winship2003-02-222-2/+7
| | | | | | | * Makefile.am: build libcomposer as a shared library so it can be linked into libevolution-mail.so without portability problems svn path=/trunk/; revision=19992
* Same as below.Jeffrey Stedfast2003-02-213-4/+12
| | | | | | | | | | | | | 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
* default_account is now a string value, not an int.Jeffrey Stedfast2003-02-193-17/+30
| | | | | | | | | | | | 2003-02-18 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): default_account is now a string value, not an int. (create_from_optionmenu): Same. (header_new_recipient): Use g_signal_connect_data() instead of the now deprecated gtk_signal_connect_full(). svn path=/trunk/; revision=19934
* clean upDan Winship2003-02-069-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Split out the mailto handling code from here so we can use it in theJeffrey Stedfast2003-02-062-36/+60
| | | | | | | | | | | | | 2003-02-05 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): Split out the mailto handling code from here so we can use it in the drag-n-drop code too. (drag_data_received): If we find a mailto: url in the text/uri-list drop, pass that off to handle_mailto() so it can fill in the fields for us. svn path=/trunk/; revision=19768
* updated for e scroll frame --> gtk scrolled windowRadek Doulik2003-02-052-12/+12
| | | | svn path=/trunk/; revision=19736
* ops, buildJeffrey Stedfast2003-02-041-5/+2
| | | | | | ops, build svn path=/trunk/; revision=19713
* Just use gnome_vfs_get_mime_type_from_name().Jeffrey Stedfast2003-02-042-21/+8
| | | | | | | | | 2003-02-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c: Just use gnome_vfs_get_mime_type_from_name(). svn path=/trunk/; revision=19712
* Give gnome_vfs_get_uri_from_local_path a full path.Jeffrey Stedfast2003-02-022-10/+31
| | | | | | | | | 2003-02-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (update_mime_type): Give gnome_vfs_get_uri_from_local_path a full path. svn path=/trunk/; revision=19702
* If the subject or body components of the mailto url are not in UTF-8,Jeffrey Stedfast2003-01-282-2/+27
| | | | | | | | | | 2003-01-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): If the subject or body components of the mailto url are not in UTF-8, convert them to UTF-8. svn path=/trunk/; revision=19662
* Fixed a #warning by converting the filename into a uri before passing itJeffrey Stedfast2003-01-283-30/+164
| | | | | | | | | | | | | | | | | | | | | | | | 2003-01-27 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (update_mime_type): Fixed a #warning by converting the filename into a uri before passing it into gnome_vfs_get_mime_type() since that function really needs a uri. 2003-01-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (init): Get the list of accounts here and ref the account-list. (destroy): Unref the accounts list here. (create_from_optionmenu): Connect to the added/changed/removed account-list signals here. (account_added_cb): New callback function that adds the newly added account to the from-dropdown menu. (account_changed_cb): New callback that changes the label for the account that got changed in the dropdown menu. (account_removed_cb): Removes the account from the from dropdown menu. svn path=/trunk/; revision=19654
* (iconsdir): Remove, this is now defined inEttore Perazzoli2003-01-252-2/+5
| | | | | | configure.in. svn path=/trunk/; revision=19621
* Load the view menu states from gconf. (e_msg_composer_set_send_html): SaveJeffrey Stedfast2003-01-243-102/+84
| | | | | | | | | | | | | | | | | | 2003-01-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_load_config): Load the view menu states from gconf. (e_msg_composer_set_send_html): Save the setting via gconf instead of bonobo-config. (e_msg_composer_set_view_from): Same. (e_msg_composer_set_view_replyto): Here too. (e_msg_composer_set_view_cc): Again here. (e_msg_composer_set_view_bcc): And finally here. (setup_ui): Fixed a #warning - use gconf instead of bonobo-conf. (destroy): No need to sync/destroy the bonobo-conf db, we don't use it anymore. svn path=/trunk/; revision=19606
* *** empty log message ***Ettore Perazzoli2003-01-233-5/+13
| | | | svn path=/trunk/; revision=19555
* Updated to use EAccountList and iterators. (evolution_composer_init):Jeffrey Stedfast2003-01-186-49/+92
| | | | | | | | | | | | | | | | | | | | | | | | 2003-01-17 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (impl_Composer_set_headers): Updated to use EAccountList and iterators. (evolution_composer_init): Updated to use EAccount. * e-msg-composer.c (from_changed_cb): Updated to use the EAccount object. (e_msg_composer_new_with_message): Same. (e_msg_composer_get_preferred_account): Updated to return an EAccount object. (set_editor_signature): Updated to use an EAccountIdentity pointer. (get_signature_html): Same. * e-msg-composer-hdrs.c (create_from_optionmenu): Updated to use EAccount and EAccountList foo. (destroy): Same here. (e_msg_composer_hdrs_set_from_account): Here too. (e_msg_composer_hdrs_get_from): Updated. svn path=/trunk/; revision=19511
* mail_config_get_signature_list now returns a GSList.Jeffrey Stedfast2003-01-172-13/+19
| | | | | | | | | | | 2003-01-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (signature_cb): mail_config_get_signature_list now returns a GSList. (setup_signatures_menu): Same. (set_signature_gui): Here too. svn path=/trunk/; revision=19498
* (do_exit): Make dialog HIG compliantEttore Perazzoli2003-01-152-3/+14
| | | | | | [Discard/Cancel/Save]. svn path=/trunk/; revision=19471
* don't pass NULL to bonobo_widget_set_property.Chris Toshok2003-01-102-3/+10
| | | | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_to): don't pass NULL to bonobo_widget_set_property. (e_msg_composer_hdrs_set_cc): same. (e_msg_composer_hdrs_set_bcc): same. svn path=/trunk/; revision=19383
* need to ref/sink "new" so that the g_object_unref doesn't spew a warning.Chris Toshok2003-01-102-1/+9
| | | | | | | | | 2003-01-09 Chris Toshok <toshok@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_new): need to ref/sink "new" so that the g_object_unref doesn't spew a warning. svn path=/trunk/; revision=19368
* Icons are now in $(datadir)/evolution/imagesEttore Perazzoli2003-01-092-1/+6
| | | | | | instead of $(datadir)/images/evolution. svn path=/trunk/; revision=19291
* Use gconf to get the default account index.Jeffrey Stedfast2003-01-092-36/+48
| | | | | | | | | | 2003-01-08 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (create_from_optionmenu): Use gconf to get the default account index. (e_msg_composer_hdrs_set_from_account): Same. svn path=/trunk/; revision=19286
* use the composer's charset gconf keyJeffrey Stedfast2003-01-082-2/+2
| | | | svn path=/trunk/; revision=19274
* New convenience function. (attach_to_multipart): UseJeffrey Stedfast2003-01-082-1/+23
| | | | | | | | | | 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
* Convenience function. (get_file_content): Use the convenience function toJeffrey Stedfast2003-01-082-4/+44
| | | | | | | | | | | | | | 2003-01-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (composer_get_default_charset): Convenience function. (get_file_content): Use the convenience function to get the default charset setting. (best_charset): Same. (e_msg_composer_new): Use gconf to get the send_html setting. (e_msg_composer_new_post): Same. svn path=/trunk/; revision=19269
* remove idldir definition. (It's defined in configure.in now)Dan Winship2003-01-062-1/+5
| | | | | | | * Makefile.am: remove idldir definition. (It's defined in configure.in now) svn path=/trunk/; revision=19242
* fixed to build with -DG[TK]_DISABLE_DEPRECATEDJeffrey Stedfast2003-01-032-1/+2
| | | | svn path=/trunk/; revision=19208
* fixesJeffrey Stedfast2003-01-032-12/+5
| | | | svn path=/trunk/; revision=19206
* Use camel_text_to_html(). (e_msg_composer_new_from_url): Same.Jeffrey Stedfast2002-12-173-17/+25
| | | | | | | | | | | | 2002-12-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (get_signature_html): Use camel_text_to_html(). (e_msg_composer_new_from_url): Same. * evolution-composer.c (impl_Composer_set_body): Use camel_text_to_html(). svn path=/trunk/; revision=19127
* Fix for bug #33295Jeffrey Stedfast2002-12-082-71/+72
| | | | | | | | | | | | | | | | | 2002-12-07 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #33295 * e-msg-composer-attachment.c: Change the parent_class to a GObjectClass pointer instead of a GtkObjectClass pointer. (e_msg_composer_attachment_edit): Ref the attachment object so that if the attachment is removed while it is still being edited, the attachment object will still exist and therefor foil the user's attempt to make Evolution crash when they close the properties dialog for this attachment. (close_cb): Unref the attachment object. svn path=/trunk/; revision=19053
* Get rid of the unused exception variable.Jeffrey Stedfast2002-12-042-5/+5
| | | | | | | | | 2002-12-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (message_rfc822_dnd): Get rid of the unused exception variable. svn path=/trunk/; revision=18997
* removed warning about e_notice. its used too much, its here to stay.Not Zed2002-12-0211-45/+51
| | | | | | | | | | | 2002-11-27 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (save): removed warning about e_notice. its used too much, its here to stay. * *.[ch]: run fix.sh over everything. svn path=/trunk/; revision=18973
* removed merge conflictsJeffrey Stedfast2002-12-021-1/+0
| | | | svn path=/trunk/; revision=18970
* s/g_str[n]casecmp/str[n]casecmpJeffrey Stedfast2002-12-022-11/+16
| | | | | | | | 2002-12-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: s/g_str[n]casecmp/str[n]casecmp svn path=/trunk/; revision=18969
* properly chain finalise.Not Zed2002-11-262-2/+9
| | | | | | | | 2002-11-26 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (composer_finalise): properly chain finalise. svn path=/trunk/; revision=18918
* Remove the window size setting. (e_msg_composer_attachment_bar_new): MoveNot Zed2002-11-252-18/+26
| | | | | | | | | | | | 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-254-223/+91
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Duh! dont free subject & simplify logic a little.Not Zed2002-11-213-9/+14
| | | | | | | | | | | | | | 2002-11-21 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (subject_changed_cb): Duh! dont free subject & simplify logic a little. 2002-11-20 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (entry_changed): duh, emit the signal using an initialised value(!). svn path=/trunk/; revision=18873
* applied plain_signature_fix.patchRadek Doulik2002-11-202-1/+6
| | | | svn path=/trunk/; revision=18841
* dont unref after destroy. duh.Not Zed2002-11-195-24/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 check for gtk_main_level(). as far as i can tell it serves no realNot Zed2002-11-182-36/+53
| | | | | | | | | | | | | 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
* ignore composer-marshal.[ch]Chris Toshok2002-11-171-0/+1
| | | | svn path=/trunk/; revision=18804
* Removed {BEGIN,END}_GNOME_DECLS.Ettore Perazzoli2002-11-144-9/+9
| | | | | | | | | | | * listener.h: Removed {BEGIN,END}_GNOME_DECLS. * e-msg-composer-select-file.c: Do not #include <libgnome/gnome-defs.h>. * e-msg-composer.c: Likewise. * listener.h: Likewise. svn path=/trunk/; revision=18738
* bonobo api changes.Not Zed2002-11-132-3/+5
| | | | | | | | 2002-11-13 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (setup_ui): bonobo api changes. svn path=/trunk/; revision=18733
* Use the right object_new method.Not Zed2002-11-133-3/+14
| | | | | | | | | | 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
* Remove some unused ehaders and ones that cause compilation failures (suchJeffrey Stedfast2002-11-113-34/+30
| | | | | | | | | | | 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-0816-750/+745
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add support for an attach option in the mailto: url.Jeffrey Stedfast2002-11-022-1/+8
| | | | | | | | | 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
* comment fixJeffrey Stedfast2002-11-021-1/+1
| | | | svn path=/trunk/; revision=18488
* Make sure to save References and In-Reply-To headers. Fixes bug #32932.Jeffrey Stedfast2002-10-312-1/+8
| | | | | | | | | 2002-10-29 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_with_message): Make sure to save References and In-Reply-To headers. Fixes bug #32932. svn path=/trunk/; revision=18469
* Don't set the charset param on text parts nor tha rawtext bit on theJeffrey Stedfast2002-10-282-10/+23
| | | | | | | | | | 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-262-3/+14
| | | | | | | | 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
* Only add the account address to the list of addresses if it is non-NULL.Jeffrey Stedfast2002-10-222-1/+9
| | | | | | | | | | | 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
* We need to treat message/rfc822 streams differently. Fixes bug #32378.Jeffrey Stedfast2002-10-172-1/+17
| | | | | | | | | | 2002-10-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): We need to treat message/rfc822 streams differently. Fixes bug #32378. svn path=/trunk/; revision=18382
* Mark the file selector modal. Quick fix for bug #32256.Not Zed2002-10-172-0/+6
| | | | | | | | | 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
* Set content->rawtext to TRUE for text parts because the content is in itsJeffrey Stedfast2002-10-082-7/+33
| | | | | | | | | | | | | 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 create a new file if the file doesn't exist.Jeffrey Stedfast2002-10-052-2/+8
| | | | | | | | | 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
* If the user hits cancel when signing/encrypting, don't continueJeffrey Stedfast2002-10-022-2/+8
| | | | | | | | | | 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
* When signing/encrypting a part, if a USER_CANCEL occurs, re-use the partJeffrey Stedfast2002-10-022-2/+10
| | | | | | | | | | 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
* It's a grand old string-review! Nitpicky and minor changes; details in the ↵Aaron Weber2002-10-013-2/+10
| | | | | | appropriate ChangeLog files. svn path=/trunk/; revision=18268
* let the caller set the "From" account too (by name or address).Dan Winship2002-09-303-4/+34
| | | | | | | | | | * 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
* Don't reuse the part that we've signed and/or encrypted, create a new partJeffrey Stedfast2002-09-282-1/+10
| | | | | | | | | | 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
* Use "mail/*" for the allowed_types for the posting folder selector.Dan Winship2002-09-262-1/+6
| | | | | | | * e-msg-composer-hdrs.c (create_headers): Use "mail/*" for the allowed_types for the posting folder selector. svn path=/trunk/; revision=18224
* Only append the account name to the end of the From menu item if the emailDan Winship2002-09-252-4/+30
| | | | | | | | | | | * 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
* Don't mark empty string with _().Zbigniew Chyla2002-09-242-1/+6
| | | | | | | | | 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-243-13/+12
| | | | | | | | | * 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
* Fix non-ANSI switch statementDan Winship2002-09-232-0/+5
| | | | | | * e-msg-composer.c (save): Fix non-ANSI switch statement svn path=/trunk/; revision=18159
* allow to select last 2 menu itemsRadek Doulik2002-09-202-1/+6
| | | | | | | | | 2002-09-19 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (signature_cb): allow to select last 2 menu items svn path=/trunk/; revision=18128
* Handle multipart/signed and multipart/encrypted parts in a more expectedJeffrey Stedfast2002-09-182-33/+51
| | | | | | | | | | 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
* Mark a string for translation.Kjartan Maraas2002-09-162-1/+5
| | | | | | | | 2002-09-15 Kjartan Maraas <kmaraas@gnome.org> * e-msg-composer.c: Mark a string for translation. svn path=/trunk/; revision=18072
* (composer_key_pressed): Don't chain the eventEttore Perazzoli2002-09-062-9/+10
| | | | | | | handler here -- that's just wrong! Also stop emission of the signal when we catch Escape. svn path=/trunk/; revision=17987
* Make it so that the composer will close when the user hits Escape.Jeffrey Stedfast2002-09-052-14/+40
| | | | | | | | | 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
* removed "Set as default" menu itemRadek Doulik2002-08-282-53/+4
| | | | | | | | | 2002-08-27 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (signature_cb): removed "Set as default" menu item svn path=/trunk/; revision=17878
* Oops, we were overwriting 'multipart' with our child multipart. FixesPeter Williams2002-08-272-11/+21
| | | | | | | | | | 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
* Fixes bug #29016Jeffrey Stedfast2002-08-233-89/+118
| | | | | | | | | | | | | | | 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
* Use an EvolutionFolderSelectorButton instead of a label to indicate theDan Winship2002-08-192-7/+22
| | | | | | | | | | | | * 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
* Don't turn on pgp signing if this is an iMIP message and pgp_no_imip_signDan Winship2002-08-152-1/+17
| | | | | | | | | * 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
* Make the warning dialog display the message subject so that it is moreJeffrey Stedfast2002-08-142-12/+28
| | | | | | | | | | 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
* Set the file-selection window icon. Fixes the mailer part of bug #7368.Jeffrey Stedfast2002-08-135-53/+64
| | | | | | | | | | | | | | | | | 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
* Don't call new_from_mime_part() since that function now does some copyingJeffrey Stedfast2002-08-132-9/+36
| | | | | | | | | | | | | | 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
* Parse the auto-cc/bcc recipients and then later when parsing the cc/bccJeffrey Stedfast2002-08-012-12/+80
| | | | | | | | | | | | 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
* new helper function (decode_signature_name): new helper functionRadek Doulik2002-07-302-4/+112
| | | | | | | | | | | 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
* (set_signature_gui): new helper method to set signature from draftRadek Doulik2002-07-272-1/+40
| | | | | | | message (e_msg_composer_new_with_message): use set_signature_gui svn path=/trunk/; revision=17621
* don't assert on default, when ESC is pressed, the dialog is closed as wellRadek Doulik2002-07-272-3/+9
| | | | | | | | | 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
* Fix ChangeLog.Ettore Perazzoli2002-07-271-1/+2
| | | | svn path=/trunk/; revision=17610
* Special-case message/digest and give it a nice icon. [#9786]Ettore Perazzoli2002-07-273-2/+27
| | | | | | | | | * 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
* Create the Post-To header. (headers_set_visibility): Possibly show theJeffrey Stedfast2002-07-265-136/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix spelling.Dan Winship2002-07-262-1/+5
| | | | | | * e-msg-composer.c (e_msg_composer_set_body): Fix spelling. svn path=/trunk/; revision=17588
* restart automanager to avoid multiple dialog apearingRadek Doulik2002-07-242-2/+11
| | | | | | | | | 2002-07-23 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (autosave_run): restart automanager to avoid multiple dialog apearing svn path=/trunk/; revision=17559
* Applied patch below.Not Zed2002-07-232-1/+11
| | | | | | | | | | | | | | 2002-07-23 Not Zed <NotZed@Ximian.com> * Applied patch below. 2002-07-19 Christian Kreibich <christian@whoop.org> * e.msg-composer.c (get_signature_html): Test for the signature delimiter not only at the beginning of a signature file, but also inside the signature. svn path=/trunk/; revision=17547
* Reverted some code that got committed by accident.Jeffrey Stedfast2002-07-232-4/+12
| | | | | | | | | | | | 2002-07-23 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_set_view_bcc): Reverted some code that got committed by accident. (e_msg_composer_set_view_cc): Same. (e_msg_composer_set_view_replyto): Here too. (e_msg_composer_set_view_from): And here. svn path=/trunk/; revision=17542
* fixed up some gtk-doc commentsJeffrey Stedfast2002-07-231-5/+13
| | | | svn path=/trunk/; revision=17540
* more cleanupJeffrey Stedfast2002-07-231-78/+78
| | | | svn path=/trunk/; revision=17539
* Removed a lot of extra g_return_if_fail's that we don't need (if we areJeffrey Stedfast2002-07-232-12/+40
| | | | | | | | | | | | | | | 2002-07-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Removed a lot of extra g_return_if_fail's that we don't need (if we are going to check if the pointer is a a composer widget using the gtk type-check macros, then there is no need to first check that it isn't NULL). (get_file_content): Signatures are now supposed to be in UTF-8 and not the user's locale charset, so we must first read in the content, then check that it is valid UTF-8. If it isn't, then we need to try to convert it to UTF-8. svn path=/trunk/; revision=17538
* Removed a lot of extra g_return_if_fail's that we don't need (if we areJeffrey Stedfast2002-07-233-177/+176
| | | | | | | | | | | 2002-07-22 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c: Removed a lot of extra g_return_if_fail's that we don't need (if we are going to check if the pointer is a a composer widget using the gtk type-check macros, then there is no need to first check that it isn't NULL). svn path=/trunk/; revision=17537
* removed insert file menu itemRadek Doulik2002-07-232-36/+4
| | | | svn path=/trunk/; revision=17534
* This should use address_encode, since its an rfc822 address, notNot Zed2002-07-192-1/+7
| | | | | | | | | | 2002-07-19 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message_internal): This should use address_encode, since its an rfc822 address, not address_format which is for display. svn path=/trunk/; revision=17516
* use "saved" gtkhtml command (e_msg_composer_is_dirty): use "is-saved"Radek Doulik2002-07-182-3/+11
| | | | | | | | | 2002-07-17 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (save): use "saved" gtkhtml command (e_msg_composer_is_dirty): use "is-saved" gtkhtml command svn path=/trunk/; revision=17493
* Set the from-account last so that auto-cc/bcc recipients don't getJeffrey Stedfast2002-07-172-1/+7
| | | | | | | | | | 2002-07-16 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_set_headers): Set the from-account last so that auto-cc/bcc recipients don't get overwritten when setting the cc/bcc recipient fields. svn path=/trunk/; revision=17487
* Instead of doing this with a weakref, do it by connecting to the destroyPeter Williams2002-07-173-9/+24
| | | | | | | | | | | | | | | 2002-07-16 Peter Williams <peterw@ximian.com> * e-msg-composer.c (create_composer): Instead of doing this with a weakref, do it by connecting to the destroy signal. The weakref was not getting notified in certain conditions that I could never really pin down, and this caused problems at exit. * e-msg-composer-hdrs.c (create_headers): Reorder to create reply_to before from, because create_from_optionmenu causes from_changed to be called, which expects reply_to.entry to exist. svn path=/trunk/; revision=17480
* added save_html_object_data parameter, use gtkhtml command to save objectRadek Doulik2002-07-163-6/+22
| | | | | | | | | 2002-07-15 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (build_message): added save_html_object_data parameter, use gtkhtml command to save object data when wanted svn path=/trunk/; revision=17466
* Add include lines to get ebook headers relative to <ebook/foo.h>, notPeter Williams2002-07-112-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * tools/Makefile.am (INCLUDES): Add include lines to get ebook headers relative to <ebook/foo.h>, not "foo.h". addressbook: 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/e-book.h: Normalize includes to <ebook/foo.h>, so that the installed headers will work sanely. * backend/ebook/e-card-cursor.h: * backend/ebook/e-book-view.h: * backend/ebook/e-card-simple.h: * backend/ebook/e-card.h: * backend/ebook/e-destination.h: Same. * printing/Makefile.am (INCLUDES): add -Iaddressbook/backend to access the ebook headers. Also the builddir version to get the generated addressbook.h * gui/widgets/Makefile.am (INCLUDES): Same builddir fix. * gui/merging/e-card-merging.c: Fix an ebook #include. * gui/merging/Makefile.am (INCLUDES): Same idea. * gui/contact-list-editor/Makefile.am (INCLUDES): Same. * gui/contact-editor/Makefile.am (INCLUDES): Same builddir change. calendar: 2002-07-08 Peter Williams <peterw@ximian.com> * gui/Makefile.am (INCLUDES): Change the -I flags to get it to play nicely with the new Ebook header paradigm. * gui/dialogs/Makefile.am: Same. * gui/e-meeting-model.c: More of the same. * gui/dialogs/e-delegate-dialog.c: * gui/dialogs/e-meeting-model.c: * gui/dialogs/comp-editor-util.c: Fix include lines to get ebook headers. * pcs/Makefile.am: Same. composer: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Fix cflags for ebook header namespacing. importers: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Fix cflags to get at ebook headers correctly. * pine-importer.c: Fix include lines to get ebook headers the "right" way. * evolution-gnomecard-importer.c: Same. mail: 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I flags to get the ebook headers. svn path=/trunk/; revision=17411
* oops, forgot to saveJeffrey Stedfast2002-07-061-1/+1
| | | | svn path=/trunk/; revision=17378
* Don't connect to the postpone signal, but do connect to the save-draftJeffrey Stedfast2002-07-065-58/+24
| | | | | | | | | | | | | | | | 2002-07-05 Jeffrey Stedfast <fejj@ximian.com> * evolution-composer.c (init): Don't connect to the postpone signal, but do connect to the save-draft signal. (evolution_composer_factory_init): No longer takes a postpone_cb argument, but does now take a save_draft_cb argument. * e-msg-composer.c (menu_file_send_later_cb): Removed. (class_init): Removed the POSTPONE signal. (setup_ui): Don't need to swap the Send/SendLater tooltips and accels anymore, since SendLater no longer exists. svn path=/trunk/; revision=17377
* Use the new CamelMultipartEncrypted class to do our encryption work forJeffrey Stedfast2002-06-272-47/+165
| | | | | | | | | | | | | | | 2002-06-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Use the new CamelMultipartEncrypted class to do our encryption work for us. We also need to always get the user's userid before encrypting since pgp/gpg need that. (e_msg_composer_new_with_message): Handle multipart/signed and multipart/encrypted parts by adding the (decrypted) content and setting the composer to pgp sign/encrypt the message when the user re-sends it. svn path=/trunk/; revision=17306
* Use the new CamelMultipartEncrypted class to do our encryption work forJeffrey Stedfast2002-06-272-31/+56
| | | | | | | | | | | 2002-06-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Use the new CamelMultipartEncrypted class to do our encryption work for us. We also need to always get the user's userid before encrypting since pgp/gpg need that. svn path=/trunk/; revision=17300
* Use mail_crypto_get_pgp_cipher_context() so that the PGP/GPG decision isJeffrey Stedfast2002-06-262-1/+7
| | | | | | | | | | 2002-06-25 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Use mail_crypto_get_pgp_cipher_context() so that the PGP/GPG decision is done for us. svn path=/trunk/; revision=17278
* Use the new gpg cipher context rather than the old pgp context.Jeffrey Stedfast2002-06-222-22/+30
| | | | | | | | | 2002-06-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Use the new gpg cipher context rather than the old pgp context. svn path=/trunk/; revision=17254
* don't convert text to html twiceRadek Doulik2002-06-202-7/+5
| | | | | | | | | 2002-06-19 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (get_signature_html): don't convert text to html twice svn path=/trunk/; revision=17239
* added "Set as default" menu itemRadek Doulik2002-06-114-14/+92
| | | | | | | | | | | | | | 2002-06-10 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (signature_cb): added "Set as default" menu item * e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_from_omenu): new method (e_msg_composer_hdrs_set_from_account): use e_msg_composer_hdrs_get_from_omenu svn path=/trunk/; revision=17160
* use new script signature interfaceRadek Doulik2002-06-082-6/+13
| | | | | | | | | 2002-06-07 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (get_signature_html): use new script signature interface svn path=/trunk/; revision=17143
* Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hboxJeffrey Stedfast2002-06-072-1/+7
| | | | | | | | | | 2002-06-06 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hbox containing the GtkOptionMenu. svn path=/trunk/; revision=17136
* Remove the customize toolbar thingy since Michael said that this would fixJeffrey Stedfast2002-06-073-10/+21
| | | | | | | | | | | | | 2002-06-06 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): Remove the customize toolbar thingy since Michael said that this would fix bug #17952. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): Clean up the logic in this. For one, we don't need to do strstr using the account address (wtf??). svn path=/trunk/; revision=17134
* put option menu to hbox to make space for signatures menuRadek Doulik2002-06-065-100/+114
| | | | | | | | | | | | | 2002-06-05 Radek Doulik <rodo@ximian.com> * e-msg-composer-hdrs.c (create_from_optionmenu): put option menu to hbox to make space for signatures menu (e_msg_composer_hdrs_get_from_hbox): new helper function * e-msg-composer.c: moved signatures from menu to option menu next to From: svn path=/trunk/; revision=17126
* signature editor reworked, WIPRadek Doulik2002-06-052-88/+69
| | | | svn path=/trunk/; revision=17117
* Properly handle user cancellation for signing/encrypting, just dont signNot Zed2002-06-043-14/+73
| | | | | | | | | | | | | | | 2002-06-03 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (build_message): Properly handle user cancellation for signing/encrypting, just dont sign but create anyway. (e_msg_composer_get_subject): Wrapper function to get the subject from the header object. (e_msg_composer_get_to): (e_msg_composer_get_cc): (e_msg_composer_get_bcc): Same for the destination types. svn path=/trunk/; revision=17091
* Allocate a new FileInfo struct here rather than using and unref it whenJeffrey Stedfast2002-06-042-11/+14
| | | | | | | | | | 2002-06-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_guess_mime_type): Allocate a new FileInfo struct here rather than using and unref it when we're finished with it. svn path=/trunk/; revision=17090
* Use gnome_vfs_file_info_clear() instead of gnome_vfs_file_info_unref() soJeffrey Stedfast2002-06-042-2/+9
| | | | | | | | | | 2002-06-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_guess_mime_type): Use gnome_vfs_file_info_clear() instead of gnome_vfs_file_info_unref() so that we don't try and free static data. svn path=/trunk/; revision=17085
* Changes for multipart/signed api changes.Not Zed2002-05-312-6/+20
| | | | | | | | 2002-05-30 Not Zed <NotZed@Ximian.com> * e-msg-composer.c (build_message): Changes for multipart/signed api changes. svn path=/trunk/; revision=17056
* New. (create_component): Pass it as the @request_quit_fn toEttore Perazzoli2002-05-164-36/+92
| | | | | | | | | | | | | | | | | | | | | * component-factory.c (request_quit): New. (create_component): Pass it as the @request_quit_fn to evolution_shell_component_new(). * e-msg-composer.c: New local `all_composers'; keeps a list of all the composer windows created. Changed type of `parent_class' to BonoboWindowClass *. (do_exit): Cleaned up a bit. Raise the composer window before showing the message box dialog. (exit_dialog_cb): Removed. (e_msg_composer_request_close_all): New. (create_composer): Add the composer to the all_composers list and weakref it. (msg_composer_destroy_notify): GtkDestroyNotify function for the composer's weakref; remove the composer from the all_composers list. svn path=/trunk/; revision=16930
* Just use g_basename.Jeffrey Stedfast2002-05-162-5/+6
| | | | | | | | | 2002-05-15 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Just use g_basename. svn path=/trunk/; revision=16926
* fixed a type-oJeffrey Stedfast2002-04-271-1/+1
| | | | svn path=/trunk/; revision=16597
* Check for empty-string pgp-key ids and don't use them.Jeffrey Stedfast2002-04-272-5/+10
| | | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): Check for empty-string pgp-key ids and don't use them. svn path=/trunk/; revision=16596
* Unref the priv->tooltips object here.Jeffrey Stedfast2002-04-174-10/+24
| | | | | | | | | | | | | | 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
* Change the Reply-To header contents. (e_msg_composer_hdrs_set_reply_to):Jeffrey Stedfast2002-04-122-13/+22
| | | | | | | | | | | | | | 2002-04-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-hdrs.c (from_changed): Change the Reply-To header contents. (e_msg_composer_hdrs_set_reply_to): The Reply-To entry was an EEntry, not a bonobo control so fix this to set the text using e_entry_set_text. (e_msg_composer_hdrs_get_reply_to): Use e_entry_get_text here for the same reason. svn path=/trunk/; revision=16445
* No need to query for the persist-stream interface here, just re-useJeffrey Stedfast2002-04-112-13/+17
| | | | | | | | | | | 2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (set_editor_text): No need to query for the persist-stream interface here, just re-use composer->persist_stream_interface - this might improve the speed at which a reply action brings up the composer. svn path=/trunk/; revision=16425
* Use decode rather than unformat - the e_destination was changed (long timeNot Zed2002-04-093-5/+19
| | | | | | | | | | | | | | | | 2002-04-09 Not Zed <NotZed@Ximian.com> * e-msg-composer-hdrs.c (set_recipients_from_destv): Use decode rather than unformat - the e_destination was changed (long time ago) to rfc2047 encode the addresses, so we should decode likewise. Should fix #16158. * e-msg-composer.c (next_word): g_utf8_next_char never returns NULL, it just skips to the next character. So like normal string code, we just check for a nul explicitly. Fixes a bug found while checking #16158. svn path=/trunk/; revision=16396
* added some debug printf'sJeffrey Stedfast2002-04-081-2/+6
| | | | svn path=/trunk/; revision=16388
* Fixes bug #3980.Jeffrey Stedfast2002-04-064-7/+21
| | | | | | | | | | | | | 2002-04-05 Jeffrey Stedfast <fejj@ximian.com> Fixes bug #3980. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_cc): If a Cc list is set to something non-empty, make sure to show the Cc widgets. (e_msg_composer_hdrs_set_bcc): Same but for Bcc. (e_msg_composer_hdrs_set_reply_to): And here. svn path=/trunk/; revision=16366
* ignore .pureChris Toshok2002-04-021-0/+1
| | | | svn path=/trunk/; revision=16312
* From composer/ChangeLog:Christopher James Lahey2002-03-292-41/+22
| | | | | | | | | 2002-03-28 Christopher James Lahey <clahey@ximian.com> * e-msg-composer-select-file.c: Switch to using EFileSelection here instead of GtkFileSelection. svn path=/trunk/; revision=16276
* fix for the changes to GTKHTML_DATADIR that include the release number.Larry Ewing2002-03-282-3/+8
| | | | | | | | | 2002-03-27 Larry Ewing <lewing@ximian.com> * Makefile.am: fix for the changes to GTKHTML_DATADIR that include the release number. svn path=/trunk/; revision=16272
* "Forward as iCalendar" uses set_body, so we can't make the composerDan Winship2002-03-194-16/+36
| | | | | | | | | | | | | | | | | * Evolution-Composer.idl, evolution-composer.c (impl_Composer_show): "Forward as iCalendar" uses set_body, so we can't make the composer un-showable after doing that. So get rid of the "cannot show" exception. * e-msg-composer.c (e_msg_composer_set_body): Prepare the composer to be shown in its weird state: Put an explanatory message in the body, then call disable_editor. (disable_editor): Common editor-disabling code - makes the editor and attachment bar insensitive and disables any menu items that could be used to modify them. (e_msg_composer_new_redirect): Use disable_editor here now. svn path=/trunk/; revision=16191
* use gtkhtml editor API version 1.1Radek Doulik2002-03-162-1/+7
| | | | | | | | 2002-03-15 Radek Doulik <rodo@ximian.com> * e-msg-composer.c: use gtkhtml editor API version 1.1 svn path=/trunk/; revision=16173
* Remove the extremely verbose printf here.Dan Winship2002-03-122-2/+5
| | | | | | | * listener.c (impl_event): Remove the extremely verbose printf here. svn path=/trunk/; revision=16100
* ops, unregister and not register new one sig_event_clientRadek Doulik2002-03-082-1/+6
| | | | | | | | | 2002-03-07 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (destroy): ops, unregister and not register new one sig_event_client svn path=/trunk/; revision=15964
* merge new signature handlingRadek Doulik2002-03-072-30/+252
| | | | svn path=/trunk/; revision=15960
* [pullup from evolution-1-0-branch]Dan Winship2002-03-042-1/+6
| | | | | | | * e-msg-composer.c (build_message): Fix a dumb bug in previous commit that broke iMIP containing 8-bit data. svn path=/trunk/; revision=15895
* [pulled up from evolution-1-0-branch]Dan Winship2002-02-265-25/+112
| | | | | | | | | | | | | | | | | | | | | | | | Mailer side of 14705. * Evolution-Composer.idl (setBody): Change setBodyText to setBody and take a MIME type as well. (show): Add an exception. * evolution-composer.c (impl_Composer_set_body, etc): Update for IDL change. While I'm here, fix this to DTRT with both plaintext and HTML bodies. (It claimed to take plain text before, but then passed it to the composer as HTML.) (impl_Composer_show): Raise an exception if setBody has been called, since the composer window will not display the real data in that case. * e-msg-composer.c (e_msg_composer_set_body): interface for impl_Composer_set_body. (build_message): If e_msg_composer_set_body has been called, use the body and MIME type supplied to it rather than the contents of the HTML editor. svn path=/trunk/; revision=15833
* don't insert paragraph here, also delete paragraph where signature wasRadek Doulik2002-02-152-2/+13
| | | | | | | | | | | 2002-02-14 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (delete_old_signature): don't insert paragraph here, also delete paragraph where signature was (e_msg_composer_show_sig_file): test if we are in empty document and if so, insert new paragraph for signature svn path=/trunk/; revision=15729
* Use set_editor_text() (e_msg_composer_new_from_url): Same.Jeffrey Stedfast2002-02-132-7/+17
| | | | | | | | | | | 2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_flush_pending_body): Use set_editor_text() (e_msg_composer_new_from_url): Same. (e_msg_composer_set_body_text): Re-Show the signature. svn path=/trunk/; revision=15692
* reflect gtkhtml API changeRadek Doulik2002-02-132-1/+6
| | | | | | | | | 2002-02-12 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_is_dirty): reflect gtkhtml API change svn path=/trunk/; revision=15685
* added entries for latest changesRadek Doulik2002-02-121-0/+8
| | | | svn path=/trunk/; revision=15679
* use editor is_dirty and reset undoRadek Doulik2002-02-122-7/+18
| | | | svn path=/trunk/; revision=15677
* swap the order in which we add recipients to the list. If we add the ↵Jeffrey Stedfast2002-02-021-33/+34
| | | | | | auto-recipients first, then it is more visually appearling since most users will add their own recipients to the end of a list. svn path=/trunk/; revision=15551
* Update the auto-cc/bcc recipients in the composer header fields to matchJeffrey Stedfast2002-02-022-2/+118
| | | | | | | | | | 2002-02-01 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (update_auto_recipients): Update the auto-cc/bcc recipients in the composer header fields to match the ones chosen in the account configuration. svn path=/trunk/; revision=15548
* new method, tells composer to ignore all word in str string (next_word):Radek Doulik2002-02-013-80/+140
| | | | | | | | | | | 2002-01-31 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (e_msg_composer_ignore): new method, tells composer to ignore all word in str string (next_word): helper function to get next word from s, saves rest of s to sr svn path=/trunk/; revision=15540
* If we are in redirect mode, use the original message and set the resent-*Jeffrey Stedfast2002-01-305-148/+210
| | | | | | | | | | | | | | 2002-01-29 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (build_message): If we are in redirect mode, use the original message and set the resent-* headers using e_msg_composer_hdrs_to_redirect() and then return. (destroy): Unref the redirected message if it exists. * e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_redirect): New function for a composer in redirect mode. svn path=/trunk/; revision=15507
* Final cleanup for the CFLAGS and LIBS in the Makefiles.Ettore Perazzoli2002-01-282-8/+6
| | | | svn path=/trunk/; revision=15486
* get_file_contents(): use charset instead of composer->charset because the ↵Jeffrey Stedfast2002-01-111-1/+1
| | | | | | composer arg can be NULL. svn path=/trunk/; revision=15288
* Rewrote to use CamelStreams and also convert the file contents to UTF-8Jeffrey Stedfast2002-01-112-98/+52
| | | | | | | | | | | | | | 2002-01-10 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (get_file_content): Rewrote to use CamelStreams and also convert the file contents to UTF-8 (assums the file charset is the same charset that the composer is set to). (menu_file_insert_file_cb): Pass the composer into get_file_content(). (e_msg_composer_get_sig_file_content): Pass NULL as the composer argument. svn path=/trunk/; revision=15286
* Fixed the setup of the "save-draft" signal so that it would actually work.Jeffrey Stedfast2002-01-102-38/+23
| | | | | | | | | 2002-01-09 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (class_init): Fixed the setup of the "save-draft" signal so that it would actually work. svn path=/trunk/; revision=15279
* Set the X-Evolution-Format header to text/plain if that is the editingJeffrey Stedfast2002-01-083-1/+12
| | | | | | | | | | 2002-01-07 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_get_message_draft): Set the X-Evolution-Format header to text/plain if that is the editing mode we are really in. This fixes bug #11499. svn path=/trunk/; revision=15255
* A few minor fixes to make it more compliant with rfc2368. Should now beJeffrey Stedfast2002-01-052-20/+31
| | | | | | | | | | 2002-01-04 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_new_from_url): A few minor fixes to make it more compliant with rfc2368. Should now be fully rfc compliant as far as I can tell. svn path=/trunk/; revision=15249
* Only connect to the parent's destroy/hide signals while the attachmentJeffrey Stedfast2002-01-042-6/+14
| | | | | | | | | | 2002-01-03 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_edit): Only connect to the parent's destroy/hide signals while the attachment editor dialog is "alive". svn path=/trunk/; revision=15238
* Only cancel the selection dialog if it is currently in use, otherwiseJeffrey Stedfast2001-12-223-2/+9
| | | | | | | | | | 2001-12-21 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (composer_hide_cb): Only cancel the selection dialog if it is currently in use, otherwise we'll get an extra gtk_main_quit and the mailer will exit :-( svn path=/trunk/; revision=15207
* added #include <sys/time.h>Jeffrey Stedfast2001-12-211-0/+1
| | | | svn path=/trunk/; revision=15198
* argh, only loop while n > 0 not >= 0 since 0 will mean "end-of-file"Jeffrey Stedfast2001-12-181-2/+2
| | | | svn path=/trunk/; revision=15134
* ack, fix a small logic bug.Jeffrey Stedfast2001-12-181-16/+11
| | | | svn path=/trunk/; revision=15131
* Don't block forever if we are reading a fifo with no data.Jeffrey Stedfast2001-12-182-25/+48
| | | | | | | | | 2001-12-17 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (read_file_content): Don't block forever if we are reading a fifo with no data. svn path=/trunk/; revision=15122
* Setup the SAVE_DRAFT signal. (menu_file_save_draft_cb): Emit theJeffrey Stedfast2001-12-153-93/+35
| | | | | | | | | | | | 2001-12-14 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (class_init): Setup the SAVE_DRAFT signal. (menu_file_save_draft_cb): Emit the SAVE_DRAFT signal. (exit_dialog_cb): Same here. (save_draft): Removed. This code is now a signal that mail-callbacks will connect to. svn path=/trunk/; revision=15079
* Attach to the parent widget's destroy signal - when that gets destroyed,Jeffrey Stedfast2001-12-144-103/+127
| | | | | | | | | | | | | | | 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
* If multiple-selection is enabled but nothing is slected, fall back toJeffrey Stedfast2001-12-122-14/+22
| | | | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (confirm): If multiple-selection is enabled but nothing is slected, fall back to using the filename in the entry box as the "selected" file. (create_file_selection): If the composer gets hidden (ie it's being "sent") then cancel the file selection dialog. svn path=/trunk/; revision=14999
* If multiple-selection is enabled but nothing is slected, fall back toJeffrey Stedfast2001-12-122-4/+13
| | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (confirm): If multiple-selection is enabled but nothing is slected, fall back to using the filename in the entry box as the "selected" file. svn path=/trunk/; revision=14994
* If the widget is non-NULL, then gtk_widget_destroy that bad boy...Jeffrey Stedfast2001-12-123-5/+12
| | | | | | | | | | 2001-12-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-select-file.c (file_selection_info_destroy_notify): If the widget is non-NULL, then gtk_widget_destroy that bad boy... svn path=/trunk/; revision=14984
* select_file_attachments now returns a GPtrArray so handle that and loopJeffrey Stedfast2001-12-114-53/+128
| | | | | | | | | | | | | | | | | | | | | 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
* Only execute an executable sig file if a magic environment variable isJon Trowbridge2001-12-112-1/+7
| | | | | | | | | 2001-12-10 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (get_file_content): Only execute an executable sig file if a magic environment variable is set. svn path=/trunk/; revision=14962
* Added. Executes the given file and returns its output as a string.Jon Trowbridge2001-12-072-11/+64
| | | | | | | | | | | | 2001-12-06 Jon Trowbridge <trow@ximian.com> * e-msg-composer.c (executed_file_output): Added. Executes the given file and returns its output as a string. (get_file_content): Stats the file to see if it is executable. If it is, execute it and return the string. If not, just read the file and return the contents. svn path=/trunk/; revision=14917
* oops, something got fubar'd in the merge I guess...Jeffrey Stedfast2001-12-061-0/+2
| | | | | | add a char *tooltip. svn path=/trunk/; revision=14891
* I should have merged in the patch rather than being lazy and copying the ↵Jeffrey Stedfast2001-12-051-10/+22
| | | | | | file from the other branch. *kicks myself in the butt* svn path=/trunk/; revision=14872
* Change the FileSend tooltip the be the same as the FileSendLater tooltipJeffrey Stedfast2001-12-052-32/+20
| | | | | | | | | 2001-11-30 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): Change the FileSend tooltip the be the same as the FileSendLater tooltip if we are in offline mode. svn path=/trunk/; revision=14871
* If we come back online, switch the Send accelerator back to the SendJeffrey Stedfast2001-11-202-0/+14
| | | | | | | | | | 2001-11-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (setup_ui): If we come back online, switch the Send accelerator back to the Send button from the Send Later button. svn path=/trunk/; revision=14752
* Allow drag & drop for vcards.Jeffrey Stedfast2001-11-162-0/+21
| | | | | | | | | 2001-11-11 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (drag_data_received): Allow drag & drop for vcards. svn path=/trunk/; revision=14727
* popup failure dialog if we cannot get a valid editor_engine.Larry Ewing2001-11-152-4/+36
| | | | | | | | | | | 2001-11-14 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (create_composer): popup failure dialog if we cannot get a valid editor_engine. (prepare_engine): make the checks robust and make sure that we unset the engine if any part fails. svn path=/trunk/; revision=14715
* use hash table to eliminate duplicatesRadek Doulik2001-11-052-1/+12
| | | | | | | | | 2001-11-02 Radek Doulik <rodo@ximian.com> * e-msg-composer.c (add_inlined_images): use hash table to eliminate duplicates svn path=/trunk/; revision=14587
* New function, enable/disable autosave for the composer temporarily.22001-11-033-1/+22
| | | | | | | | | | | 2001-11-02 <NotZed@Ximian.com> * e-msg-composer.c (e_msg_composer_set_enable_autosave): New function, enable/disable autosave for the composer temporarily. (autosave_run_foreach_cb): Only save if we have enable autosave turned on. In other cases we want to save it regardless. svn path=/trunk/; revision=14574
* Add back the "remove Content-Disposition when sending itip" hack.Dan Winship2001-10-312-0/+12
| | | | | | | * e-msg-composer.c (build_message): Add back the "remove Content-Disposition when sending itip" hack. svn path=/trunk/; revision=14516
* New.Dan Winship2001-10-315-47/+72
| | | | | | | | | | | | | * Evolution-Composer.idl (setMultipartType): New. * evolution-composer.c (impl_Composer_set_multipart_type): Allow caller to specify a multipart/alternative rather than multipart/mixed. * e-msg-composer.c (build_message): Revert yesterday's changes. Add new ones for sending multipart/alternative. svn path=/trunk/; revision=14510
* Always force a save query for now.Larry Ewing2001-10-311-1/+1
| | | | svn path=/trunk/; revision=14486
* add dirty prototype.Larry Ewing2001-10-313-4/+24
| | | | | | | | | | 001-10-30 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add dirty prototype. * e-msg-composer.c: add dirty implementation. svn path=/trunk/; revision=14485
* new helper function, extracted (insert_paragraph_after): dittoRadek Doulik2001-10-312-15/+76
| | | | | | | | | | | | | | 2001-10-30 Radek Doulik <rodo@ximian.com> * listener.c (insert_paragraph_before): new helper function, extracted (insert_paragraph_after): ditto (impl_event): process command_before and command_after, use new functions (clear_signature): reset style to be sure (reply_indent): ditto svn path=/trunk/; revision=14465
* Remove Content-Disposition in the no_body case. (More kludging aroundDan Winship2001-10-302-0/+7
| | | | | | | | * e-msg-composer.c (build_message): Remove Content-Disposition in the no_body case. (More kludging around Outlook iCalendar brokenness.) svn path=/trunk/; revision=14433
* Put the charset encoding submenu in the EncodingPlaceholder.Ettore Perazzoli2001-10-302-1/+6
| | | | | | | * e-msg-composer.c (setup_ui): Put the charset encoding submenu in the EncodingPlaceholder. svn path=/trunk/; revision=14407
* Set the (new) "no_body" flag on the composer.Dan Winship2001-10-304-5/+52
| | | | | | | | | | | | | | * evolution-composer.c (init): Set the (new) "no_body" flag on the composer. (impl_Composer_set_body_text): And unset it here. (unset_no_body): And here (called if/when the composer is realized). * e-msg-composer.c (build_message): If the composer has the "no_body" flag set, and a single attachment, promote that attachment to be the message body. svn path=/trunk/; revision=14393
* simplified, requires new gtkhtmlRadek Doulik2001-10-302-4/+4
| | | | | | | | 2001-10-30 Radek Doulik <rodo@ximian.com> * listener.c (reply_indent): simplified, requires new gtkhtml svn path=/trunk/; revision=14383
* add GList to hold the current images.Larry Ewing2001-10-304-10/+44
| | | | | | | | | | | | | | | | | | | 2001-10-29 Larry Ewing <lewing@ximian.com> * e-msg-composer.h: add GList to hold the current images. * listener.c (resolve_image_url): keep track of the images that the editor is currently uses in current_images as well as storing the images in the hash. * e-msg-composer.c (clear_current_images): clear the list of images actually in the message. (add_inlined_images): use the current image list rather than the hash tables. (build_message): clear the current image list when appropriate. (init): initialize current_images. svn path=/trunk/; revision=14379
* More fixing of the license texts.Ettore Perazzoli2001-10-282-22/+20
| | | | svn path=/trunk/; revision=14217
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-2712-24/+24
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* New function that replaces handle_multpart() andJeffrey Stedfast2001-10-253-121/+231
| | | | | | | | | | | | | | | | | | | | | 2001-10-24 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_from_multipart): New function that replaces handle_multpart() and handle_multipart_alternative() for add_message_attachments(). (e_msg_composer_add_message_attachments): Call add_attachments_from_multipart(). (handle_multipart_alternative): Now only used by new_with_message() and is really only designed to work well with messages generated by Evolution (ie for editing Drafts and such). (handle_multipart): Same. (e_msg_composer_new_with_message): No longer calls add_message_attachments() because we can't ever have this fail and the logic in add_message_attachments() is impossible logic. Instead do like what we used to do before the addition of add_message_attachments() came along. svn path=/trunk/; revision=14084
* rework this so that we don't end up freeing the cid then reading from it.Larry Ewing2001-10-252-3/+8
| | | | | | | | | | 2001-10-24 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (e_msg_composer_add_inline_image_from_mime_part): rework this so that we don't end up freeing the cid then reading from it. svn path=/trunk/; revision=14077
* Check that account->id->address != NULL.Jon Trowbridge2001-10-232-26/+41
| | | | | | | | | 2001-10-22 Jon Trowbridge <trow@ximian.com> * e-msg-composer-hdrs.c (create_from_optionmenu): Check that account->id->address != NULL. svn path=/trunk/; revision=13886
* fix broken default changelog email address in last entryDan Winship2001-10-221-1/+1
| | | | svn path=/trunk/; revision=13854
* Make inline images used for replies not show up asDan Winship2001-10-226-125/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Now takes a 'attach_all' argument. If !attach_all, then only attach theJeffrey Stedfast2001-10-203-13/+30
| | | | | | | | | | | | | | | | 2001-10-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (handle_multipart): Now takes a 'attach_all' argument. If !attach_all, then only attach the attachment if the part has a content-id, otherwise we can safely assume that nothing references it thus we don't need to attach it. (e_msg_composer_add_message_attachments): Now takes a 'attach_all' argument that overrides the "only attach attachments if they have a content-id header" behavior. (e_msg_composer_new_with_message): Pass TRUE as the attach_all argument to add_message_attachments. svn path=/trunk/; revision=13800
* Don't use a g_return_val_if_fail after iconv_open, this is a valid errorJeffrey Stedfast2001-10-193-51/+40
| | | | | | | | | | | | | | 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
* s/apply/flush/. (e_msg_composer_flush_pending_body): renamed from applyLarry Ewing2001-10-162-12/+23
| | | | | | | | | | | | | | 001-10-15 Larry Ewing <lewing@ximian.com> * e-msg-composer.c (e_msg_composer_add_message_attachments): s/apply/flush/. (e_msg_composer_flush_pending_body): renamed from apply now takes apply as an argument. (e_msg_composer_show_sig_file): s/g_assert/g_return_if_fail/ warnings make for less painful bugs than crashes. (set_editor_text): s/g_assert/g_return_if_fail/ svn path=/trunk/; revision=13681
* Don't pop up an "unable to retrieve message" if the composer neverDan Winship2001-10-145-36/+50
| | | | | | | | | | | | | | | | | * e-msg-composer.c (autosave_manager_unregister): Don't pop up an "unable to retrieve message" if the composer never finished initializing. (init): Don't call autosave_manager_register here: wait until the end of create_composer. (create_composer): Remove the distinction between this and e_msg_composer_construct since there's no need for the latter. Use e_activation_failure_dialog if either the selectnames component or the gtkhtml editor fails. * e-msg-composer-hdrs.c (setup_corba): Don't g_warn if the oaf activation fails. create_composer() will tell the user. svn path=/trunk/; revision=13661
* Deleted declaration of len.Jeffrey Stedfast2001-10-124-28/+40
| | | | | | | | | | | | 2001-10-11 Jeffrey Stedfast <fejj@ximian.com> * listener.c (impl_event): Deleted declaration of len. * e-msg-composer.c (e_msg_composer_add_message_attachments): Take a settext argument. (e_msg_composer_new_with_message): Updated to pass the settext argument. svn path=/trunk/; revision=13595