Commit Graph

78 Commits

Author SHA1 Message Date
ac9c64ee1a If we are in redirect mode, use the original message and set the resent-*
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
2002-01-29 19:33:08 +00:00
08fe7bd670 Set the X-Evolution-Format header to text/plain if that is the editing
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
2002-01-07 19:56:23 +00:00
02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
708dc70ac5 Check that account->id->address != NULL.
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
2001-10-22 18:39:47 +00:00
da2d6ee08c Don't pop up an "unable to retrieve message" if the composer never
* 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
2001-10-13 17:35:40 +00:00
7e628d1745 Check for either a matching account name, or for a matching e-mail address
2001-10-10  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account):
        Check for either a matching account name, or for a matching e-mail
        address embedded in the passed-in string. (Fixes half of bug
        #3255)
        (destroy): Call bonobo_object_release_unref on corba_select_names,
        not CORBA_Object_release.  Otherwise we leak stuff all over the
        place. (Bug #11878)

        * e-msg-composer.c (e_msg_composer_new_with_message): If our message
        doesn't contain an X-Evolution-Account header, pass in the From
        header as the account name.  (Fixes the other half of #3255)

svn path=/trunk/; revision=13567
2001-10-10 20:47:46 +00:00
7054bd6586 Don't gtk_object_destroy() the pixbuf loader, unref it instead.
2001-09-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (update): Don't
	gtk_object_destroy() the pixbuf loader, unref it instead.

	* e-msg-composer-hdrs.c (destroy): Don't forget to free the
	private structure.

svn path=/trunk/; revision=12862
2001-09-16 20:54:07 +00:00
936f363f4f Originally was corba_recipientlist_to_glist. (impl_Composer_set_headers):
2001-09-08  Jon Trowbridge  <trow@ximian.com>

	* evolution-composer.c (corba_recipientlist_to_destv): Originally
	was corba_recipientlist_to_glist.
	(impl_Composer_set_headers): Use corba_recipientlist_to_destv, new
	destination-based api.

	* e-msg-composer.c (build_message): Get rid of that 'sending'
	stuff.  That was a bad idea.
	(e_msg_composer_new_with_message): Apply the revised api and work
	with vectors of destinations rather than just lists.
	(e_msg_composer_get_recipients): Added.  Returns the full set of
	recipient destinations in a vector.

	* e-msg-composer-hdrs.c: Removed free_destv function.  We use
	e_destination_freev instead.
	(e_msg_composer_hdrs_get_to): Changed to return a vector of
	EDestinations.  This function now works.
	(e_msg_composer_hdrs_get_cc): Ditto.
	(e_msg_composer_hdrs_get_bcc): Ditto.
	(e_msg_composer_hdrs_get_recipients): Added.  Returns a vector of
	EDestinations that is the union of the to, cc and bcc lines.
	(e_msg_composer_hdrs_set_to): Changed to take a vector of
	EDestinations, rather than a GList.
	(e_msg_composer_hdrs_set_cc): Ditto.
	(e_msg_composer_hdrs_set_bcc): Ditto.
	(e_msg_composer_hdrs_to_message): Use our new, improved API, rather
	than a bunch of poking around in BonoboPropertyBags, etc.

svn path=/trunk/; revision=12711
2001-09-09 04:10:54 +00:00
7028220378 Remove some debugging messages that don't check for NULL strings and crash
* e-msg-composer-hdrs.c (set_recipients_from_destv): Remove some
	debugging messages that don't check for NULL strings and crash
	Solaris.

svn path=/trunk/; revision=12701
2001-09-08 03:54:33 +00:00
8c22a4d62e Pass in FALSE as the 'sending' arg to e_msg_composer_get_message.
2001-08-29  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer.c (e_msg_composer_get_message_draft): Pass
	in FALSE as the 'sending' arg to e_msg_composer_get_message.
	(build_message): Added a 'sending' arg, which is passed to
	e_msg_composer_get_message.
	(e_msg_composer_get_message): Added a 'sending' arg,
	which gets passed directly on to build_message.

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_to_message): Added
	a "sending" arg, which should be TRUE if the message is being
	sent now (rather than being autosaved, etc.).  The address
	use scores are only updated when sending. (Bug #8332)
	Removed obsolete (#if 0/#endif-ed) code.

2001-08-29  Jon Trowbridge  <trow@ximian.com>

	* mail-callbacks.c (composer_get_message): When calling
	e_msg_composer_get_message, pass in TRUE for the 'sending' arg.
	(Part of the fix for bug #8332)

svn path=/trunk/; revision=12518
2001-08-29 21:21:22 +00:00
6fba7d7077 In the GUI, the toggle is labelled "hide addresses", not "show addresses"
2001-08-22  Jon Trowbridge  <trow@ximian.com>

        * gui/contact-list-editor/e-contact-list-editor.c (extract_info):
        In the GUI, the toggle is labelled "hide addresses", not "show
        addresses" -- so we have to reverse the boolean value we read in.
        (fill_in_info): Same bug as before: since the GUI reads "hide", we
        have to initialize the toggle to '!show_addresses', not
        'show_addresses'.

        * backend/ebook/e-destination.c
        (e_destination_list_show_addresses): Added.
        (e_destination_xml_encode): Encode the value of
        e_destination_list_show_addresses into the XML.
        (e_destination_xml_decode): Read and store the "show_addresses"
        flag.

2001-08-22  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients_from_destv): Added.  Try
        to properly handle contact lists in which the addresses of the
        list members should be hidden.
        (e_msg_composer_hdrs_to_message): Changed to extract the
        destination data from the entries and pass it along to
        set_recipients_from_destv.


2001-08-22  Jon Trowbridge  <trow@ximian.com>

        * mail-callbacks.c (ask_confirm_for_only_bcc): Provide alternative
        text for this dialog for the case when a message has only Bcc
        recipients because of a hidden contact list's addresses being
        moved from To/Cc to Bcc.
        (composer_get_message): Try to detect when our message has only
        Bcc recipients because of moving addresses around due to a hidden
        contact list, and show the dialog with the revised wording in this
        case.

svn path=/trunk/; revision=12414
2001-08-23 02:58:14 +00:00
49bce76449 formatted code nicer
svn path=/trunk/; revision=12181
2001-08-17 21:34:50 +00:00
d398be6895 Toggle the View->Attachments menu item. This fixes bug #6107.
2001-08-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (show_attachments): Toggle the
	View->Attachments menu item. This fixes bug #6107.

svn path=/trunk/; revision=12177
2001-08-17 21:09:39 +00:00
78544223ad Removed comment about the need to resolve nicknames properly, because we
2001-08-10  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Removed comment about
	the need to resolve nicknames properly, because we now do that.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * e-filter-bar.h: Set the subitems to NULL in the pre-defined
        ESearchBarItems.

        * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's
        subitems to NULL.
        (build_items): Set the ESearchBarItem's subitems to NULL.
        (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL.

        * e-search-bar.c: Added support for subitems, so that a search
        option can key off of another option menu rather than just an
        entry.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/component/addressbook.c: Set the ESearchBarItem
        subitems explicitly to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/cal-search-bar.c: Where we have ESearchBarItems, set their
        subitems to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c: Set our ESearchBarItems subitems to NULL.

svn path=/trunk/; revision=11904
2001-08-10 22:36:41 +00:00
6b0d359b25 Set the smime/pgp always-sign options when here so it updates when the
2001-08-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (from_changed_cb): Set the smime/pgp
	always-sign options when here so it updates when the user changes
	his/her identity.

svn path=/trunk/; revision=11840
2001-08-09 19:10:45 +00:00
e239e423dd Set the PGP/MIME and S/MIME options to FALSE before getting the message
2001-08-08  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_get_message_draft): Set the
	PGP/MIME and S/MIME options to FALSE before getting the message
	draft and restore the values afterward.

svn path=/trunk/; revision=11802
2001-08-08 21:11:29 +00:00
09365bf01c Removed some debugging chatter.
2001-07-26  Jon Trowbridge  <trow@ximian.com>

	* backend/ebook/e-card.c: Removed some debugging chatter.

	* gui/component/select-names/e-select-names-manager.c
	(e_select_names_manager_create_entry): Store the completion
        handler in the entry's object data.

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_get_property_fn): Added support for getting "destinations"
	and "allow_contact_lists" properties.
        (entry_set_property_fn): Added support for setting "destinations"
	and "allow_contact_lists" properties.
	(impl_SelectNames_get_entry_for_section): Added definitions for
	"destinations" and "allow_contact_lists" properties.

	* gui/component/select-names/e-select-names-completion.c
	(e_select_names_completion_get_match_contact_lists): Added.
	(e_select_names_completion_set_match_contact_lists): Added.
	Controls whether contact lists are offered as options during
        completion.
	(book_query_process_card_list): Check if match_contact_lists
	is set before (duh!) matching on a contact list.
	(e_select_names_completion_init): Set match_contact_lists
	to TRUE by default.


2001-07-26  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Get "destinations",
	rather than "text" from the entry_widget.  (The getters/setters in
	the control have been made more symmetric.)

svn path=/trunk/; revision=11422
2001-07-26 05:46:37 +00:00
fbc89c9d81 Update to the new way of finding the default account.
2001-07-18  Jason Leach  <jleach@ximian.com>

	* e-msg-composer-hdrs.c (create_from_optionmenu): Update to the
	new way of finding the default account.

svn path=/trunk/; revision=11219
2001-07-19 01:25:35 +00:00
4216b42320 Removed a warning that I don't need anymore. This code is working
2001-07-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (menu_changed_charset_cb): Removed a warning
	that I don't need anymore. This code is working wonderfully ;-)

svn path=/trunk/; revision=11074
2001-07-12 23:06:19 +00:00
d0e85041da Use camel_internet_address_format_address rather than camel_address_encode
2001-07-09  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_with_message): Use
	camel_internet_address_format_address rather than
	camel_address_encode since we want display-friendly addresses.

svn path=/trunk/; revision=10930
2001-07-09 20:16:20 +00:00
622ee65eb6 Make sure that our destination string (dest_str) is not the empty string
2001-07-07  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Make sure that our
        destination string (dest_str) is not the empty string before we
        try to use it.

svn path=/trunk/; revision=10880
2001-07-07 05:47:23 +00:00
b6b1a2148d Touch all of our EDestinations before we unref them, updating the last-use
2001-06-30  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients): Touch all of our
        EDestinations before we unref them, updating the last-use records
        in the addressbook.

svn path=/trunk/; revision=10627
2001-06-30 05:23:31 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
3ca3f79dbe Return the serialized EDestinations (rather than just a string w/ e-mail
2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * gui/component/select-names/e-select-names-bonobo.c
        (entry_get_property_fn): Return the serialized EDestinations
        (rather than just a string w/ e-mail addresses) through the bonobo
        component's property bag.

        * gui/component/select-names/e-select-names-model.c
        (e_select_names_model_export_destinationv): Added.  A convenience routine
        for serializing the model's EDestinations into a string.

        * gui/component/select-names/e-select-names-popup.c
        (add_html_mail): Added.  Puts in a check menu item for whether or
        not the recipient wants HTML mail.
        (popup_menu_card): Add menu item for HTML mail.  Enable edit
        contact info item.
        (popup_menu_nocard): Add menu item for HTML mail.  Enable edit
        contact info item.

        * backend/ebook/e-book-util.c (e_book_use_local_address_book):
        Added.  Fetches the local addressbook and caches it on the first
        call.  This is meant to be an easy and efficient way to get at the
        local addressbook with the minimum of code.
        (e_book_query_address_locally): Added.  Convenience code that
        does an e-mail only e_book_name_and_email_query against the
        local address book.

        * backend/ebook/e-destination.c
        (e_destination_set_html_mail_pref): Added.  Allows the intended
        recipient's HTML mail preference to be manipulated.
        (e_destination_get_email_verbose): Added.  Cleaned up to use
        e_destination_get_name.
        (e_destination_get_html_mail_pref): Added.  Read the recipient's HTML mail
        preference.  If the destination is linked to a card, the
        preference is taken from the card (unless it has been explicitly
        overridden by a called to e_destination_set_html_mail_pref).
        (e_destination_get_address_textv): Added.  Form a unified address string
        from a NULL-terminated vector of EDestinations.
        (e_destination_export): Added.  Serialize an EDestination to a string.
        (e_destination_import): Added.  Unserialize a string to build an
        EDestination.
        (e_destination_exportv): Added.  Serialize a NULL-terminated vector of
        EDestinations to a string.
        (e_destination_importv): Added.  Unserialize a string to build a
        NULL-terminated vector of EDestinations.

        * gui/component/select-names/e-select-names-completion.c:
        Implemented local versions of g_strcasecmp and g_strncasecmp
        (which should really be in glib, I think...) for utf8, and used
        them to make this code utf8-safe.

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (evolution_mail_LDADD): Added libebook.la (which is
        now required by the composer.)

2001-05-18  Jon Trowbridge  <trow@ximian.com>

        * e-msg-composer-hdrs.c (set_recipients): Properly unserialize the
        string returned by the "text" property of the bonobo control,
        convert it into EDestinations, and use them to get the e-mail
        addresses of our recipients.

22001-05-18  Jon Trowbridge  <trow@ximian.com>

        * Makefile.am (SUBDIRS): Changed build order.  Now addressbook
        gets built before mail.

svn path=/trunk/; revision=9878
2001-05-18 07:10:04 +00:00
0f25a90781 signature changing
* signature changing

2001-04-25  Radek Doulik  <rodo@ximian.com>

        * listener.c (impl_event): reflect object data type change

        * e-msg-composer.c (get_sig_file_content): renamed from
        get_signature
        (get_signature_html): new helper function, uses
        get_sig_file_content
        (set_editor_text): removed signature parameters
        (from_changed_cb): new signal handler, sets signature by identity
        change
        (delete_old_signature): new function, deletes old signature from
        the document
        (e_msg_composer_set_sig_file): new method, set's signature
        filename
        (e_msg_composer_mark_text_orig): removed (obsolete)

        * e-msg-composer-hdrs.c: added signal FROM_CHANGED

svn path=/trunk/; revision=9557
2001-04-25 09:31:56 +00:00
f66390af64 Here goes my additional simple include fixes.
svn path=/trunk/; revision=9191
2001-04-05 00:39:19 +00:00
570cebb69a Fix headers. Same here.
2001-04-04  Kjartan Maraas  <kmaraas@gnome.org>

	* e-msg-composer-attachment.c: Fix headers.
	* e-msg-composer-hdrs.c: Same here.

svn path=/trunk/; revision=9181
2001-04-04 20:42:11 +00:00
8a0c0a6802 Replace #include <gtk/gtk.h> Replace #include <gnome.h> Remove #include
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* e-icon-list.c: Replace #include <gtk/gtk.h>
	* e-msg-composer-attachment-bar.c: Replace #include <gnome.h>
	* e-msg-composer-attachment-bar.h: Remove #include <gnome.h>
	* e-msg-composer-attachment.c: Remove #include <gnome.h>
	* e-msg-composer-attachment.h: Same here.
	* e-msg-composer-hdrs.c: Replace #include <gnome.h> and <bonobo.h>
	* e-msg-composer-hdrs.h: Replace #include <gnome.h>
	* e-msg-composer-file.c: #include <gtk/gtkmain.h>, <gtk/gtksignal.h>
	* e-msg-composer.c: Replace #include <bonobo.h>, <gnome.h>
	* e-msg-composer.h: Replace #include <gnome.h> and <bonobo.h>
	* evolution-composer.c: Replace #include <bonobo.h>
	* listener.c: Same here.

svn path=/trunk/; revision=9023
2001-03-29 20:22:54 +00:00
5908c8f777 Make sure the reply_to text is non-NULL before trying to pass it off to
2001-03-17  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_reply_to): Make
	sure the reply_to text is non-NULL before trying to pass it off to
	the address parser.

svn path=/trunk/; revision=8791
2001-03-18 03:13:01 +00:00
14538bdee1 Use gnome_vfs_mime_type_from_name rather than gnome_vfs_mime_info, since
* e-msg-composer-attachment.c (update_mime_type): Use
	gnome_vfs_mime_type_from_name rather than gnome_vfs_mime_info,
	since the entered filename doesn't have to be a real file on disk.
	Deal with it returning NULL too.
	(e_msg_composer_attachment_edit): Select the right item in the
	inline/attachment menu.

	* e-msg-composer-hdrs.c: s/Pair/EMsgComposerHdrPair/. Namespace!

svn path=/trunk/; revision=8673
2001-03-13 17:23:14 +00:00
b1f9622c1a Added view_replyto member.
2001-03-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.h: Added view_replyto member.

	* e-msg-composer.c (e_msg_composer_get_visible_flags): Find out if
	we want to view the Reply-To header.
	(e_msg_composer_set_view_replyto): A new function to set the state
	of the replyto header.
	(menu_view_replyto_cb): Callback for setting the ReplyTo state.
	(set_config): Make static.
	(setup_ui): Setup the ReplyTo bonobo stuff.
	(load_from_property_bag): More defaults for the ReplyTo, yay.
	(load_from_gnome_config): Again...
	(e_msg_composer_get_view_bcc): Implemented.
	(e_msg_composer_get_view_cc): Implemented.
	(e_msg_composer_get_view_from): Implemented.
	(e_msg_composer_get_view_replyto): Implemented.

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_reply_to_entry):
	New function, yay.
	(e_msg_composer_hdrs_get_reply_to): Another new function.
	(e_msg_composer_hdrs_set_reply_to): Yet another new function...
	(create_headers): Create the reply-to header.
	(attach_headers): Attach the reply_to.
	(headers_set_visibility): Set the reply_to visibility.
	(e_msg_composer_hdrs_to_message): Set the message's reply-to here
	based on the user-set reply-to header.

svn path=/trunk/; revision=8657
2001-03-13 00:05:02 +00:00
6145f688cc New function. Used to store integer values into the configuration engine.
2001-03-06  Miguel de Icaza  <miguel@ximian.com>

	* e-msg-composer.c (set_config): New function.  Used to store
	integer values into the configuration engine.  Handles the case of
	Bonobo-conf being installed, or falls back to gnome_config.

	* e-msg-composer-hdrs.c (add_header): Renamed to be
	header_new_recipient().  Now we take care of the other cases in
	create_headers, which is a lot nicer now.

	(create_optionmenu): Removed extra "name" argument which was not
	being used anyways (the only arg passed was From:).
	(init): Removed all the redundant NULL initialization by using
	nice g_new0

	(create_headers): New function, much cleaner.

	Use of Pair structure everywhere instead of individual widgets to
	keep track of which ones are visible and which ones are not.

	* e-msg-composer.c (setup_ui): Handle ViewFrom and ViewBCC
	commands.
	(menu_view_bcc_cb, menu_view_from_cb): New functions that
	implement the features described.

	(menu_format_html_cb): Removed unrequired test, as
	e_msg_composer_set_send_html already optimizes the case of the
	state being the same.
	(menu_security_pgp_encrypt_cb): Remove redundant code.
	(menu_security_pgp_sign_cb): ditto.

2001-03-06  Miguel de Icaza  <miguel@ximian.com>

	* evolution-message-composer.xml: Reorder menus to be File, Edit,
	View, Insert, Format (instead of File, Edit, Format, View, Insert).

	Add View/From Field and View/From BCC

	Add Insert/File.

	Add File/Send menu item.

	Change the look to follow the "mailer" look (thiner display).

svn path=/trunk/; revision=8590
2001-03-08 02:06:26 +00:00
bd655cb765 If @account_name is NULL, pick the default account rather than giving a
* e-msg-composer-hdrs.c (e_msg_composer_hdrs_set_from_account): If
	@account_name is NULL, pick the default account rather than giving
	a g_warning.

	* e-msg-composer.c (e_msg_composer_set_headers): Note in the
	doc comment that @from can be NULL if you want the default account
	(since there is code that expects this).

svn path=/trunk/; revision=8243
2001-02-15 17:38:54 +00:00
aae60baf01 Updated. We might want to change the corba interface for this to allow
2001-02-10  Jeffrey Stedfast  <fejj@ximian.com>

	* evolution-composer.c (impl_Composer_set_headers): Updated. We
	might want to change the corba interface for this to allow setting
	the from-address as well.

	* e-msg-composer.c (e_msg_composer_new_with_message): Updated.
	(e_msg_composer_set_headers): Now takes a 'From' argument so that
	we can try to pre-determine the account the user will want to send
	from.

svn path=/trunk/; revision=8165
2001-02-11 04:12:12 +00:00
2350726ebb Set the default argument to
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* e-msg-composer-hdrs.c (address_button_clicked_cb, add_header):
	Set the default argument to
	GNOME_Evolution_Addressbook_SelectNames_activateDialog correctly.

svn path=/trunk/; revision=8018
2001-02-06 15:24:00 +00:00
292149afa5 make sure we convert from utf-8 before creating the option menu items.
2001-01-30  Larry Ewing  <lewing@ximian.com>

	* e-msg-composer-hdrs.c (create_optionmenu): make sure we convert
	from utf-8 before creating the option menu items.

svn path=/trunk/; revision=7908
2001-01-30 10:23:18 +00:00
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
5dfe74f610 Use "Full Name <address>" for the label in the menu rather than the
2001-01-19  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-hdrs.c (create_optionmenu): Use "Full Name
	<address>" for the label in the menu rather than the account
	name. Specify the account name only if it's not the same as the
	address.

svn path=/trunk/; revision=7652
2001-01-19 21:07:33 +00:00
62a2dc7c2e (Adding a boolean "entry_changed" BonoboPropertyBag arg)
2001-01-19  Jason Leach  <jasonleach@usa.net>

	(Adding a boolean "entry_changed" BonoboPropertyBag arg)

	* gui/component/select-names/e-select-names-bonobo.c
	(entry_set_property_fn): Use a gtk_object_set_data to set the
	property to TRUE here.

	(entry_changed): New function, calls bonobo_control_set_property
	if entry_changed hasn't been set to TRUE yet.

	(impl_SelectNames_get_entry_for_section): Connect "changed" on
	each entry_widget to the new entry_changed() func.

2001-01-19  Jason Leach  <jasonleach@usa.net>

	* e-msg-composer-hdrs.c (create_addressbook_entry): Listen for
	property bag changes to "entry_changed" on here, which means on
	the To, Cc, and Bcc entries.
	(addressbook_entry_changed): New function that gets called when
	"entry_changed" property is changed (to TRUE).

svn path=/trunk/; revision=7649
2001-01-19 15:58:02 +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
cab9d633da (Plug leaking the subject string on each message sent)
2001-01-15  Jason Leach  <jasonleach@usa.net>

	(Plug leaking the subject string on each message sent)

	* e-msg-composer-hdrs.c (e_msg_composer_hdrs_get_subject): Don't
	strdup before returning the subject, it's already been strdup'd
	from the gtk_object_get().

svn path=/trunk/; revision=7516
2001-01-15 22:54:18 +00:00
fd1561b07e Oops. Make sure to attach the item to the menu ;-)
2001-01-12  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-hdrs.c (create_optionmenu): Oops. Make sure to
	attach the item to the menu ;-)

svn path=/trunk/; revision=7463
2001-01-12 22:09:57 +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
891d37dac8 Only attach to "changed" if the widget is an EEntry. The HEADER_COMBOBOX
2001-01-12  Miguel de Icaza  <miguel@ximian.com>

	* e-msg-composer-hdrs.c (add_header): Only attach to "changed" if
	the widget is an EEntry.  The HEADER_COMBOBOX and the
	HEADER_ADDRBOOK are a ComboBox and a remote Bonobo control
	respectively.

	* evolution-composer.c (get_object): Move getObject functionality
	here from e-msg-composer.c

svn path=/trunk/; revision=7441
2001-01-12 07:09:51 +00:00
c9246a157e Only set the popdown strings if we have anything to popdown.
2001-01-11  Miguel de Icaza  <miguel@ximian.com>

	* e-msg-composer-hdrs.c (create_dropdown_entry): Only set the
	popdown strings if we have anything to popdown.

svn path=/trunk/; revision=7425
2001-01-12 03:34:44 +00:00
20b3bc147c Updated for new config code - this time it works!
2001-01-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer-hdrs.c (create_dropdown_entry): Updated for new
	config code - this time it works!

svn path=/trunk/; revision=7312
2001-01-09 03:28:51 +00:00
6054c6897b Reverted back to old config code temporarily until I get the new config
2001-01-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer-hdrs.c (create_dropdown_entry): Reverted back to
	old config code temporarily until I get the new config code
	working 100%.

svn path=/trunk/; revision=7304
2001-01-08 20:44:58 +00:00
29b221b315 Updated to reflect changes to the mail-config API.
2001-01-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* e-msg-composer-hdrs.c (create_dropdown_entry): Updated to
	reflect changes to the mail-config API.

svn path=/trunk/; revision=7299
2001-01-08 02:19:48 +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