Commit Graph

418 Commits

Author SHA1 Message Date
edafb41f2a Same as below.
2003-09-24  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (get_default_charset): Same as
	below.

	* e-msg-composer.c (composer_get_default_charset_setting): Handle
	empty-string as the charset value gotten from gconf as this can
	happen. Partial fix for bug #47638.

svn path=/trunk/; revision=22692
2003-09-24 20:12:02 +00:00
939c8a4b82 fixed a comment
svn path=/trunk/; revision=22630
2003-09-19 21:01:52 +00:00
21c57eeb74 updated for CamelTransferEncoding namespace changes
2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c: updated for
	CamelTransferEncoding namespace changes

	* e-msg-composer.c: updated for CamelTransferEncoding namespace
	changes

svn path=/trunk/; revision=22616
2003-09-18 19:01:13 +00:00
a72785e2a7 Updated for namespace changes in Camel.
2003-09-18  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c:
	* e-msg-composer-attachment.c:
	* e-msg-composer.c: Updated for namespace changes in Camel.

svn path=/trunk/; revision=22611
2003-09-18 17:05:43 +00:00
a36a1bb70b ** Merge in mail-refactor-2-branch
2003-09-17  Not Zed  <NotZed@Ximian.com>

        ** Merge in mail-refactor-2-branch

svn path=/trunk/; revision=22601
2003-09-17 21:17:11 +00:00
c9150be94f Added an entry_uic field for a BonoboUIComponent for the non-control
2003-09-11  Federico Mena Quintero  <federico@ximian.com>

	* e-msg-composer.h (EMsgComposer): Added an entry_uic field for a
	BonoboUIComponent for the non-control entries (e.g. the Subject
	line).

	* e-msg-composer.c (create_composer): Set autoactivate to true on
	the HTML control's BonoboControlFrame.
	(setup_ui): Create the composer->entry_uic.
	(destroy): Free the composer->entry_uic.
	(entry_verbs): New array of verbs for the non-control entries.
	Moved the Edit* verbs to here, as they should not be part of the
	main set.
	(composer_entry_focus_in_event_cb): Load
	evolution-composer-entries.xml here for the non-control entries' UI.
	(composer_entry_focus_out_event_cb): Remove the menu items.

svn path=/trunk/; revision=22531
2003-09-11 20:46:28 +00:00
685a1ce3ce Connect response signal to attachment properties dialog, fix bug #47950.
2003-08-29  Antonio Xu  <antonio.xu@sun.com>

	* e-msg-composer-attachment.c (): Connect response signal to
	attachment properties dialog, fix bug #47950.

	* Makefile.am (INCLUDES): add EVOLUTION_IMAGESDIR define
	* e-msg-composer.c (create_composer): use EVOLUTION_IMAGESDIR
	and composer icon name to get the path of composer icon.
	[#47781]

svn path=/trunk/; revision=22411
2003-08-29 05:57:25 +00:00
a09cef605f temporarily reverting camel namespace changes until after other branches have been merged
svn path=/trunk/; revision=22374
2003-08-26 18:17:59 +00:00
cd393b7964 s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g
2003-08-26  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (message_rfc822_dnd):
	s/HSCAN_/CAMEL_MIME_PARSER_STATE_/g

svn path=/trunk/; revision=22366
2003-08-26 16:07:04 +00:00
5ba76c1079 updated for namespace changed made to camel-mime-utils.[c,h]
2003-08-25  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c: updated for namespace changed
	made to camel-mime-utils.[c,h]

	* e-msg-composer-attachment.c: updated for namespace changed made
	to camel-mime-utils.[c,h]

	* e-msg-composer.c: updated for namespace changed made to
	camel-mime-utils.[c,h]

svn path=/trunk/; revision=22356
2003-08-25 21:03:47 +00:00
ea129e916b Original patch from David Woodhouse, but modified a bit by me.
2003-08-19  Jeffrey Stedfast  <fejj@ximian.com>

	* Original patch from David Woodhouse, but modified a bit by me.

	* e-msg-composer.c (handle_mailto): Fix insertion of arbitrary
	headers from mailto: links. Ignore From: and Reply-To: headers.

svn path=/trunk/; revision=22285
2003-08-19 15:22:50 +00:00
15aaf53b7d don't set the rawtext bit anymore.
2003-07-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (attach_to_multipart): don't set
	the rawtext bit anymore.

	* e-msg-composer.c (build_message): Convert the plain part's
	content stream from UTF-8 to whatever charset we want.

svn path=/trunk/; revision=22172
2003-08-11 17:59:54 +00:00
3eb627ba99 add the drop type of mozilla browser link to make composer support to
2003-08-04  Antonio Xu  <antonio.xu@sun.com>

	* e-msg-composer.c (drag_data_received): add the drop type of
	mozilla browser link to make composer support to handle mozilla
	DnD data.  [#47131]

svn path=/trunk/; revision=22077
2003-08-04 12:50:11 +00:00
ce5e9c005b bump editor version
svn path=/trunk/; revision=21974
2003-07-25 22:09:02 +00:00
0dd1d18f1a Set default answer of dialog to 'yes' to try and prevent autosaved
2003-07-17  Michel Dänzer  <michel@daenzer.net>

	* e-msg-composer.c (autosave_manager_query_load_orphans): Set
	default answer of dialog to 'yes' to try and prevent autosaved
	messages from getting lost accidentally.

svn path=/trunk/; revision=21922
2003-07-23 18:17:20 +00:00
4f822eb8e2 Revert my previous changes here too.
2003-07-23  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (attach_to_multipart): Revert my
	previous changes here too.

	* e-msg-composer.c (build_message): Revert my previous changes.

svn path=/trunk/; revision=21918
2003-07-23 16:45:13 +00:00
ef517a5fba Init charset to NULL.
2003-07-21  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (build_message): Init charset to NULL.

svn path=/trunk/; revision=21882
2003-07-21 17:56:17 +00:00
8a2f94b835 Make this work again.
* e-msg-composer.c (build_message): Make this work again.

svn path=/trunk/; revision=21881
2003-07-21 17:44:55 +00:00
1dea5ca338 don't set the rawtext bit anymore.
2003-07-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (attach_to_multipart): don't set
	the rawtext bit anymore.

	* e-msg-composer.c (build_message): Convert the plain part's
	content stream from UTF-8 to whatever charset we want.

2003-07-16  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (popup_menu_event): Fix warnings
	and other breakage introduced by Maxx.

svn path=/trunk/; revision=21843
2003-07-16 20:45:56 +00:00
0b15e4defd Updated to use camel_strcase_hash/equal.
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
2003-07-07 21:33:14 +00:00
e712cc248a Change file url to absolute path. Fixes bug #44065.
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
2003-07-02 18:38:41 +00:00
bb4c3e2cd4 Connect to the save-draft signal too. Fixes bug #45531.
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
2003-07-02 16:31:56 +00:00
da6b6ab5b1 Set the rawtext bits for the 'plain' and 'html' data wrappers to FALSE.
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
2003-06-30 15:36:30 +00:00
13f8e60e3a Use e_iconv_open/close so that we get charset aliasing for free. Fixes bug
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
2003-06-18 17:57:01 +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
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
81237cc33b i2003-05-20 Larry Ewing <lewing@ximian.com>
* 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
2003-05-20 18:26:09 +00:00
9391bb6d08 Change the "would you like to recover unsaved drafts?" dialog a QUESTION
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
2003-04-29 16:55:52 +00:00
c459d39bd3 removed debug printfs.
2003-04-23  Not Zed  <NotZed@Ximian.com>

        * e-msg-composer.c (map_default_cb): removed debug printfs.

svn path=/trunk/; revision=20952
2003-04-24 01:57:47 +00:00
42a22586d2 Don't ever attach non-inlined text or message parts. Reverts a prior fix.
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
2003-04-22 18:14:44 +00:00
4c254fad07 added related argument, TRUE means that container of mime_part is
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
2003-04-22 08:01:37 +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
1bd3678dbe [ fixes #21499 ]
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
2003-04-18 17:46:26 +00:00
738650c1d1 Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno what
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
2003-04-09 22:51:47 +00:00
b6afda1669 Use e_iconv_locale_charset() instead of e_iconv_locale_name(), dunno what
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
2003-04-09 19:30:21 +00:00
c298b9af91 fix build, it's composer_get_default_charset_setting.
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
2003-04-09 10:21:42 +00:00
21fd865ec0 Same as with attachment-bar's get_default_charset(). (setup_ui): Instead
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
2003-04-09 06:06:45 +00:00
55c6c41bd4 Added some debug printfs. (create_composer): Call map_default_cb directly
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
2003-04-08 20:14:22 +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
7c9645a176 If the composer isn't 'dirty', then don't autosave the draft (no need to).
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
2003-04-04 18:25:52 +00:00
0b48a811d0 Add a select-all callback and verb. (composer_entry_focus_in_event_cb):
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
2003-04-03 21:39:53 +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
e20f64823d ** See bug #40300 & probably others.
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
2003-04-01 17:24:34 +00:00
0559db3959 Convert to libglade-2's format.
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
2003-03-31 22:14:51 +00:00
ce81bdab98 Update for e_notice move
* e-msg-composer.c: Update for e_notice move

svn path=/trunk/; revision=20501
2003-03-25 15:48:48 +00:00
91c10248f8 Fixes for bug #39813
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
2003-03-20 20:24:40 +00:00
079d44f566 Change the logic to attach text parts when appropriate. (map_default_cb):
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
2003-03-19 21:28:14 +00:00
e88c74b97d Change the logic to attach text parts when appropriate.
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
2003-03-19 20:28:44 +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
e88e730bb6 Default the composer's title to "Create a message". Fixes bug #39696.
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
2003-03-13 23:04:34 +00:00