Commit Graph

10 Commits

Author SHA1 Message Date
024435f8cc (Moving the flag for has_changed from the Hdrs to the Composer itself.
2001-01-25  Jason Leach  <jasonleach@usa.net>

        (Moving the flag for has_changed from the Hdrs to the Composer
	itself. Providing public methods to set/unset a composer as
	changed. Adding attachments now flags the composer as changed)

	* e-msg-composer.c (e_msg_composer_unset_changed): New function.
	  (e_msg_composer_set_changed): New function.

	* e-msg-composer.c (hdrs_changed_cb): Callback to the new signal,
	  uses the new composer_set_changed.
	  (attachment_bar_changed_cb): Add a call to the new _set_changed.

	* e-msg-composer-hdrs.c (class_init): New signal "hdrs_changed" to
	  tell the parent composer that any of the headers have changed.
	  (addressbook_entry_changed): emit the new signal here.
	  (entry_changed): And here.

svn path=/trunk/; revision=7818
2001-01-25 19:35:54 +00:00
f94261ab03 Updated to reflect changes to e_msg_composer_hdrs_get_from().
2001-01-18  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Updated to reflect changes to
	e_msg_composer_hdrs_get_from().

	* e-msg-composer-hdrs.c (set_recipients): Don't do anymore utf8
	conversions, the widget already does this (or should unless there
	is brokenness).
	(e_msg_composer_hdrs_get_from): Return a CamelInternetAddress like
	we should.
	(e_msg_composer_hdrs_to_message): Update to reflect changes made
	the the above function.

svn path=/trunk/; revision=7614
2001-01-18 05:44:08 +00:00
809a9d8014 (Bug #1192: Set the Composer window title to something useful)
2001-01-17  Jason Leach  <jasonleach@usa.net>

	(Bug #1192: Set the Composer window title to something useful)

	* e-msg-composer.c (e_msg_composer_construct): Connect up the new
	signal here.
	(subject_changed_cb): Set the composer window title to the subject
	as it's changed, or if it goes blank make it the default "Compose
	a message".

	* e-msg-composer-hdrs.c (class_init): Create a new signal
	"subject_changed".
	(entry_changed): Emit the signal here when the subject entry is
	changed.

svn path=/trunk/; revision=7610
2001-01-18 03:15:16 +00:00
8ad2b343a0 Call set_from_account which means we no longer have to do all the crap
2001-01-12  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer.c (build_message): Call set_from_account which
	means we no longer have to do all the crap involved in formatting
	strings into an internet-address.
	(e_msg_composer_get_preferred_account): New access function.

	* e-msg-composer-hdrs.c (add_header): case COMBOBOX has changed to
	OPTIOMENU.
	(create_optionmenu): Update to use an optionmenu of accounts.
	(from_changed): New callback for the From optionmenu.
	(setup_headers): s/COMBOBOX/OPTIONMENU
	(init): Set the account and from_options to NULL.
	(e_msg_composer_hdrs_get_from): Updated.
	(destroy): free the from_options.
	(e_msg_composer_hdrs_set_from_address): Renamed from set_from
	because it no longer takes a string arg but rather an account arg.

svn path=/trunk/; revision=7458
2001-01-12 21:13:26 +00:00
e41312f0b7 If the headers have changed, then continue with the prompt else just
2001-01-03  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer.c (do_exit): If the headers have changed, then
	continue with the prompt else just destroy the window.

	* e-msg-composer-hdrs.c (init): Initialize has_changed to FALSE.
	(entry_changed): New callback to set the value of has_changed.
	(add_header): Attach the "changed" signal.

svn path=/trunk/; revision=7234
2001-01-03 17:29:40 +00:00
1e291c07c0 Set the "From" address in the CamelMimeMessage. Also updated to use
2000-08-28  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message): Set the
	"From" address in the CamelMimeMessage. Also updated to use
	get_subject to both make our lives easier and prepare for using UTF8
	(e_msg_composer_hdrs_get_subject): Updated to behave similarly to
	get_from and return allocated memory (it will have to return
	allocated memory once it's converted to use UTF8 anyways)

	* e-msg-composer.c (setup_save_draft): Always set
	composer->send_html = TRUE so that formatting is preserved.

svn path=/trunk/; revision=5084
2000-08-28 19:33:45 +00:00
eb23edd391 Modified to allow dropdown entry-boxes as well (for headers like From:)
2000-08-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer-hdrs.c (add_header): Modified to allow dropdown
	entry-boxes as well (for headers like From:)
	(setup_headers): Modified to use the correct enum type.
	(create_dropdown_entry): New convenience function to add a
	drop-down combo box and fill it in with identities
	(init): Set from_entry to NULL
	(e_msg_composer_hdrs_get_from): New convenience function to get
	the text in the From widget in the composer
	(e_msg_composer_hdrs_set_from): New convenience function to set
	the From header in the composer

svn path=/trunk/; revision=4673
2000-08-09 22:19:41 +00:00
105f78dbe8 I18N the message composer's title bar. Don't install header files.
Initial implementation of the "Open" and "Save as" commands (not
really tested/finished, I am just syncing the tree before leaving).
Put the cursor on the "To:" field when the message composer is shown.
Set the correct shadow type in the scroll frame.

svn path=/trunk/; revision=3603
2000-06-17 03:10:38 +00:00
eb87301392 new functions
* e-msg-composer.c (e_msg_composer_set_headers):
	(e_msg_composer_set_body_text): new functions

	* e-msg-composer-hdrs.c: const poisoning
	(e_msg_composer_hdrs_set_subject):
	(e_msg_composer_hdrs_get_subject): new functions

	* e-msg-composer-address-entry.c: const poisoning

svn path=/trunk/; revision=2548
2000-04-21 18:38:04 +00:00
9663037f6c More work:
- Fixed some Camel API naming issues.
- Moved the message composer stuff to the `composer' directory.

svn path=/trunk/; revision=1395
1999-11-17 15:35:43 +00:00