Commit Graph

391 Commits

Author SHA1 Message Date
d0aff59f86 Removed {BEGIN,END}_GNOME_DECLS.
* 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
2002-11-13 16:46:43 +00:00
316e12adf3 bonobo api changes.
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * e-msg-composer.c (setup_ui): bonobo api changes.

svn path=/trunk/; revision=18733
2002-11-13 09:39:00 +00:00
234540a383 Fix bonobo object setup.
2002-11-08  Not Zed  <NotZed@Ximian.com>

        * listener.c: Fix bonobo object setup.

        * e-msg-composer-hdrs.c: Remove oaf stuff, fix destroy to be
        multi-call safe.

        * e-msg-composer-attachment.c (e_msg_composer_attachment_new):
        Remove utf8 from locale conversions, & glib api changes.
        (ok_cb): "

        * e-msg-composer-attachment-bar.c (add_from_file): gtk message
        dialog.
        (pixbuf_for_mime_type): glib,gnome-vfs api changes.
        (init): Estimate the icon_height based on the pango font
        description size, this is probably not correct.
        (properties_cb):
        (remove_cb): Changed signature for gnomeui callbacks.
        (popup_icon_context_menu):
        (popup_context_menu): popup_menu api change
        (destroy): Protect from multiple calls.
        (e_msg_composer_attachment_bar_new): Remove push/pop
        visual/colormap stuff.

        * composer-marshal.list: The list of marshallers used by the
        composer.

        * Makefile.am (composer-marshal.h): Added composer marshal builder.

        * evolution-composer.c (class_init): bonobo object epv setup change.
        (factory_fn): Fix changes to factory callback.

        * e-icon-list.c: (icon_get_height): Use bounding box to calc
        height.
        (icon_event): drop gtk_selection_extended.
        (e_icon_list_remove): "
        (select_icon):
        (unselect_icon): "

        * e-msg-composer.c (autosave_save_draft): Dup fd rather than poke
        camel_stream_fd's data.  Also, use camel_stream_close() rather
        than flush.
        (autosave_manager_query_load_orphans): Port to gtk dialog.
        (autosave_query_cb): Removed, redundant.
        (save): Port to gtkdialog.
        (prepare_engine): Fix bonobo-object-client code.
        (get_file_content): gtk dialog
        (do_exit): gtk dialog.
        (setup_signatures_menu): dump gtkutf8 stuff.
        (marshal_NONE__NONE_INT): What WAS jeff thinking?  Removed :)
        (class_init): g object setup.
        (e_msg_composer_get_type): "
        (create_composer): remove bonobo_window_construct, use create
        property instead.  g_signal stuff.  bonobo stuff.
        (is_special_header): Use ascii_strncasecmp
        (e_msg_composer_set_pending_body): gtk->g_object_get/set_data.
        (e_msg_composer_set_body): use ascii_strncasecmp
        (e_msg_composer_add_inline_image_from_mime_part): make cid const.
        (autosave_manager_register):
        (autosave_manager_unregister): Use g_path_get_basename() & account
        for differences.
        (composer_shutdown): rename to finalise/etc.
        (class_init): Use object:finalize instead of shutdown.
        (e_msg_composer_set_body): Use _() rather than U_().
        (build_message): gtk dialog.

2002-11-06  Not Zed  <NotZed@Ximian.com>

        * e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Add
        error return to gdk_pixbuf_new_from_file().

svn path=/trunk/; revision=18659
2002-11-08 06:49:14 +00:00
9e8d970488 Add support for an attach option in the mailto: url.
2002-11-01  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_from_url): Add support for
	an attach option in the mailto: url.

svn path=/trunk/; revision=18489
2002-11-01 20:26:54 +00:00
f3b55ed92d Make sure to save References and In-Reply-To headers. Fixes bug #32932.
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
2002-10-30 19:47:20 +00:00
a57815af6b Don't create a new file if the file doesn't exist.
2002-10-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (get_file_content): Don't create a new file if
	the file doesn't exist.

svn path=/trunk/; revision=18325
2002-10-04 18:10:44 +00:00
ebbafa91b4 If the user hits cancel when signing/encrypting, don't continue
2002-10-01  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): If the user hits cancel when
	signing/encrypting, don't continue constructing the message,
	instead abort (and just don't pop up a dialog).

svn path=/trunk/; revision=18291
2002-10-01 21:30:15 +00:00
8427b2c852 When signing/encrypting a part, if a USER_CANCEL occurs, re-use the part
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
2002-10-01 21:21:03 +00:00
43dfa91e96 It's a grand old string-review! Nitpicky and minor changes; details in the appropriate ChangeLog files.
svn path=/trunk/; revision=18268
2002-09-30 20:11:15 +00:00
bb3273ae2f Don't reuse the part that we've signed and/or encrypted, create a new part
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
2002-09-28 02:45:50 +00:00
eda4e47a7d Fix non-ANSI switch statement
* e-msg-composer.c (save): Fix non-ANSI switch statement

svn path=/trunk/; revision=18159
2002-09-23 01:36:56 +00:00
3a8fd4e95b allow to select last 2 menu items
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
2002-09-19 21:27:21 +00:00
85d6c111af Handle multipart/signed and multipart/encrypted parts in a more expected
2002-09-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (add_attachments_from_multipart): Handle
	multipart/signed and multipart/encrypted parts in a more expected
	way. Fixes bug #28453.

svn path=/trunk/; revision=18099
2002-09-17 21:27:23 +00:00
a29fc1746b Mark a string for translation.
2002-09-15  Kjartan Maraas  <kmaraas@gnome.org>

	* e-msg-composer.c: Mark a string for translation.

svn path=/trunk/; revision=18072
2002-09-15 23:28:24 +00:00
1fa08a33f8 (composer_key_pressed): Don't chain the event
handler here -- that's just wrong!  Also stop emission of the
signal when we catch Escape.

svn path=/trunk/; revision=17987
2002-09-05 17:29:14 +00:00
f92642ab4f Make it so that the composer will close when the user hits Escape.
2002-09-04  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (create_composer): Make it so that the composer
	will close when the user hits Escape.

svn path=/trunk/; revision=17983
2002-09-04 23:53:00 +00:00
3e580fc532 removed "Set as default" menu item
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
2002-08-27 18:27:14 +00:00
70e176f79d Oops, we were overwriting 'multipart' with our child multipart. Fixes
2002-08-26  Peter Williams  <peterw@ximian.com>

	* e-msg-composer.c (handle_multipart): Oops, we were overwriting
	'multipart' with our child multipart. Fixes 29399.
	(handle_multipart_alternative): Here too.

svn path=/trunk/; revision=17864
2002-08-26 18:34:12 +00:00
b0e603fa0f Fixes bug #29016
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
2002-08-22 22:04:36 +00:00
419fb428ad Don't turn on pgp signing if this is an iMIP message and pgp_no_imip_sign
* e-msg-composer.c (from_changed_cb): Don't turn on pgp signing if
	this is an iMIP message and pgp_no_imip_sign is set.
	(e_msg_composer_set_body): If setting a text/calendar body and
	pgp_no_imip_sign is true, turn off signing.

svn path=/trunk/; revision=17779
2002-08-15 13:16:26 +00:00
953f044bac Make the warning dialog display the message subject so that it is more
2002-08-13  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (do_exit): Make the warning dialog display the
	message subject so that it is more clear which composer the dialog
	is referring to. Fixes bug #25467.

svn path=/trunk/; revision=17772
2002-08-13 20:57:04 +00:00
0e39518ba7 Set the file-selection window icon. Fixes the mailer part of bug #7368.
2002-08-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-select-file.c (create_file_selection): Set the
	file-selection window icon. Fixes the mailer part of bug #7368.

	* e-msg-composer-attachment.c (e_msg_composer_attachment_new):
	Don't call new_from_mime_part() since that function now does some
	copying of the mime part rather than simply reffing it.
	(e_msg_composer_attachment_new_from_mime_part): Make a copy of the
	MIME part so that if the message that this part belongs to gets
	deleted from the the remote store, the composer will still have a
	copy of it. Fixes bug #20308.

svn path=/trunk/; revision=17763
2002-08-12 21:00:58 +00:00
7f6f1b6844 Parse the auto-cc/bcc recipients and then later when parsing the cc/bcc
2002-07-31  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_with_message): Parse the
	auto-cc/bcc recipients and then later when parsing the cc/bcc
	recipients into EDestination objects, if the address is an
	auto-*cc address, then set auto_recipient to TRUE on that
	EDestination. This fixes bug #28339.

svn path=/trunk/; revision=17664
2002-07-31 23:26:30 +00:00
6cc38b99d6 new helper function (decode_signature_name): new helper function
2002-07-29  Radek Doulik  <rodo@ximian.com>

	* e-msg-composer.c (encode_signature_name): new helper function
	(decode_signature_name): new helper function
	(get_signature_html): use encode_signature_name
	(set_signature_gui): use decode_signature_name

svn path=/trunk/; revision=17636
2002-07-29 21:36:35 +00:00
f17d22edd0 (set_signature_gui): new helper method to set signature from draft
message
	(e_msg_composer_new_with_message): use set_signature_gui

svn path=/trunk/; revision=17621
2002-07-26 20:56:40 +00:00
d2a3ec5a4e don't assert on default, when ESC is pressed, the dialog is closed as well
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
2002-07-26 17:47:48 +00:00
d725c89684 Create the Post-To header. (headers_set_visibility): Possibly show the
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
2002-07-25 18:19:46 +00:00
4070ca160f Fix spelling.
* e-msg-composer.c (e_msg_composer_set_body): Fix spelling.

svn path=/trunk/; revision=17588
2002-07-25 16:36:17 +00:00
1bddc83831 restart automanager to avoid multiple dialog apearing
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
2002-07-23 22:42:59 +00:00
122a24ce8f Applied patch below.
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
2002-07-23 11:24:00 +00:00
00ca525caf Reverted some code that got committed by accident.
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
2002-07-23 06:08:05 +00:00
4747d7a5d4 fixed up some gtk-doc comments
svn path=/trunk/; revision=17540
2002-07-23 00:06:18 +00:00
4f5bca2bc9 more cleanup
svn path=/trunk/; revision=17539
2002-07-22 23:53:11 +00:00
26524d4a05 Removed a lot of extra g_return_if_fail's that we don't need (if we are
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
2002-07-22 23:34:34 +00:00
6e0ef227ee Removed a lot of extra g_return_if_fail's that we don't need (if we are
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
2002-07-22 23:32:15 +00:00
98998998f4 removed insert file menu item
svn path=/trunk/; revision=17534
2002-07-22 22:51:36 +00:00
690538a5bc use "saved" gtkhtml command (e_msg_composer_is_dirty): use "is-saved"
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
2002-07-17 18:14:49 +00:00
3556d21a8e Set the from-account last so that auto-cc/bcc recipients don't get
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
2002-07-16 23:22:40 +00:00
bc20187dc0 Instead of doing this with a weakref, do it by connecting to the destroy
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
2002-07-16 20:05:02 +00:00
f58d287adc added save_html_object_data parameter, use gtkhtml command to save object
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
2002-07-15 20:44:25 +00:00
903545fb9b Don't connect to the postpone signal, but do connect to the save-draft
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
2002-07-05 19:34:00 +00:00
d5898b33c7 Use the new CamelMultipartEncrypted class to do our encryption work for
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
2002-06-27 00:08:17 +00:00
26fb05c8cb Use the new CamelMultipartEncrypted class to do our encryption work for
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
2002-06-26 20:39:26 +00:00
5a70e4fee0 Use mail_crypto_get_pgp_cipher_context() so that the PGP/GPG decision is
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
2002-06-25 19:55:27 +00:00
ef162bbe12 Use the new gpg cipher context rather than the old pgp context.
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
2002-06-22 04:56:32 +00:00
4c9a2140b4 don't convert text to html twice
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
2002-06-19 19:55:04 +00:00
6e1b4aa52b added "Set as default" menu item
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
2002-06-10 21:26:18 +00:00
b84f0a894b use new script signature interface
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
2002-06-07 18:09:10 +00:00
f64614f29c Remove the customize toolbar thingy since Michael said that this would fix
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
2002-06-06 19:19:43 +00:00
5706b15132 put option menu to hbox to make space for signatures menu
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
2002-06-05 21:16:41 +00:00