Commit Graph

117 Commits

Author SHA1 Message Date
20cff5d6ba (header_new_recipient): Make the entry
non-focusable again.  The right fix for A11Y is to add
accelerators.

svn path=/trunk/; revision=22575
2003-09-15 18:30:14 +00:00
eceeca1b9f fixed an insulting error message. Fixes bug #47413.
2003-08-13  Lorenzo Gil Sanchez  <lgs@sicem.biz>

	* e-msg-composer-hdrs.c (account_removed_cb): fixed an insulting
	error message. Fixes bug #47413.

svn path=/trunk/; revision=22220
2003-08-13 17:24:23 +00:00
49a3666edc ** For bug #46013
2003-07-17  Maxx Cao  <maxx.cao@sun.com>

        ** For bug #46013

        * e-msg-composer-hdrs.c (header_new_recipient): To/cc/bcc buttons
        made focusable.

svn path=/trunk/; revision=21868
2003-07-18 13:49:22 +00:00
35fea29434 Fixes bug #44139.
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
2003-06-17 19:47:53 +00:00
eb2dd4c67d free the structure as well.
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
2003-06-11 00:21:14 +00:00
a9329a4a2e Same as the rest. (setup_ui): We didn't even seem to be using the gconf
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
2003-06-09 18:18:33 +00:00
5cf9db2208 [ fixes #40694 ] this can't hurt - set the frame to autoactivate so if by
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
2003-04-19 22:10:35 +00:00
3b414f4346 [ fixes bug #39763 ] remove the control_entry_focus_{in,out}_event_cb
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
2003-04-08 04:56:10 +00:00
d95c0f5a3c Keep track of which entry widget has focus.
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
2003-04-01 23:41:14 +00:00
e31a8b9678 e_msg_composer_hdrs_get_subject() now returns const so don't g_free() it
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
2003-03-18 22:11:02 +00:00
76f925a77b disconnect any signal handlers on the accounts object. For bug #37873.
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
2003-03-04 05:27:53 +00:00
1907e1a2d7 default_account is now a string value, not an int.
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
2003-02-18 20:50:23 +00:00
50ff525b79 clean up
* 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
2003-02-06 15:50:31 +00:00
143ba4162a Fixed a #warning by converting the filename into a uri before passing it
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
2003-01-27 18:05:56 +00:00
f4a030d2fa Updated to use EAccountList and iterators. (evolution_composer_init):
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
2003-01-17 23:32:07 +00:00
eb4f1afd89 don't pass NULL to bonobo_widget_set_property.
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
2003-01-10 01:05:48 +00:00
fef77b9924 need to ref/sink "new" so that the g_object_unref doesn't spew a warning.
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
2003-01-09 19:12:30 +00:00
d22be5639f Use gconf to get the default account index.
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
2003-01-08 18:45:38 +00:00
5eb3475aa2 fixed to build with -DG[TK]_DISABLE_DEPRECATED
svn path=/trunk/; revision=19208
2003-01-02 20:51:32 +00:00
aececffc14 removed warning about e_notice. its used too much, its here to stay.
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
2002-12-02 03:07:59 +00:00
7d4c791a79 Duh! dont free subject & simplify logic a little.
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
2002-11-20 23:46:04 +00:00
6cd18c10d9 dont unref after destroy. duh.
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
2002-11-19 04:58:22 +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
6dcb454f5a Only add the account address to the list of addresses if it is non-NULL.
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
2002-10-21 16:56:18 +00:00
f1877fa23b Use "mail/*" for the allowed_types for the posting folder selector.
* e-msg-composer-hdrs.c (create_headers): Use "mail/*" for the
	allowed_types for the posting folder selector.

svn path=/trunk/; revision=18224
2002-09-25 21:42:06 +00:00
370fd18999 Only append the account name to the end of the From menu item if the email
* 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
2002-09-24 21:45:35 +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
362583b764 Use an EvolutionFolderSelectorButton instead of a label to indicate the
* 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
2002-08-19 13:27:43 +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
d0b60c1e81 This should use address_encode, since its an rfc822 address, not
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
2002-07-19 07:05:44 +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
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
432ba0b3dd Agh, priv->from.entry is no longer a GtkOptionMenu - it is an hbox
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
2002-06-06 19:28:21 +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
91259ad3c0 Unref the priv->tooltips object here.
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
2002-04-17 02:16:58 +00:00
c49683a6da Change the Reply-To header contents. (e_msg_composer_hdrs_set_reply_to):
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
2002-04-12 05:50:16 +00:00
73f6d42fbd Use decode rather than unformat - the e_destination was changed (long time
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
2002-04-09 14:07:41 +00:00
c2c91ffed7 Fixes bug #3980.
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
2002-04-05 23:50:14 +00:00
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