Commit Graph

590 Commits

Author SHA1 Message Date
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
b5f6fc71f9 Change the order of the ok/cancel buttons.
2003-04-21  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.glade: Change the order of the
	ok/cancel buttons.

svn path=/trunk/; revision=20904
2003-04-21 17:45:52 +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
e19d08f357 Return FALSE so the signal gets propogated further up the chain. Fixes bug
2003-04-14  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.c (file_name_focus_out_cb): Return
	FALSE so the signal gets propogated further up the chain. Fixes
	bug #41238.
	(e_msg_composer_attachment_edit): The focus-out-event signal name
	changed (although the old name still works...for now?).

svn path=/trunk/; revision=20847
2003-04-15 17:33:36 +00:00
09b2777481 Updated to comply with the HIG. Fixes bug #41239 and bug #41241.
2003-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.glade: Updated to comply with the
	HIG. Fixes bug #41239 and bug #41241.

svn path=/trunk/; revision=20832
2003-04-11 20:48:47 +00:00
60c63acae0 Updated to comply with the HIG.
2003-04-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.glade: Updated to comply with the HIG.

svn path=/trunk/; revision=20831
2003-04-11 20:44:58 +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
377bfb9b0c Guard against the filesel's selection being NULL. Fixes bug #40679.
2003-04-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-select-file.c (e_msg_composer_select_file): Guard
	against the filesel's selection being NULL. Fixes bug #40679.

svn path=/trunk/; revision=20648
2003-04-02 18:51:01 +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
c15a1c9677 Use GnomeIconList instead of EIconList so we don't have to maintain an
2003-03-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c: Use GnomeIconList instead of
	EIconList so we don't have to maintain an exact copy/paste of
	GnomeIconList ourselves. I don't udnerstand why we ever did.

	* e-icon-list.[c,h]: Removed.

svn path=/trunk/; revision=20251
2003-03-11 16:48:53 +00:00
4e98841191 add send_cb/save_draft_cb arguments. (impl_Composer_send): use the local
2003-03-11  Not Zed  <NotZed@Ximian.com>

        * evolution-composer.c (evolution_composer_new): add
        send_cb/save_draft_cb arguments.
        (impl_Composer_send): use the local send_cb.
        (evolution_composer_init): dont init send, save-draft signals
        here.
        (evolution_composer_new): init signals here, fix params to
        composer_construct().
        (evolution_composer_factory_init): remove, part of mailer now.
        (factory_fn): same.
        (finalise): disconnect from callbacks first.

        * evolution-composer.h: add send_cb/save_draft_cb to composer object.

2003-03-10  Not Zed  <NotZed@Ximian.com>

        * evolution-composer.c (finalise): from destroy.
        (evolution_composer_class_init): gtkobject->gobject stuff.
        (evolution_composer_new): remove old redundant stuff.

svn path=/trunk/; revision=20227
2003-03-10 06:35:54 +00:00
4a28f62c6c Don't allow the returned charset to be NULL. (get_file_content): Make sure
2003-03-04  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (composer_get_default_charset_setting): Don't
	allow the returned charset to be NULL.
	(get_file_content): Make sure there is buffered data before trying
	to convert it to UTF-8.

svn path=/trunk/; revision=20139
2003-03-04 18:31:35 +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
e5f2139df7 Same as below.
2003-02-25  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c: Same as below.

	* e-msg-composer-attachment-bar.c: Go back to using
	e_iconv_charset_name().

svn path=/trunk/; revision=20059
2003-02-25 20:54:19 +00:00
afea60336c Make sure the url is != NULL? I can't think of anything else in this code
2003-02-24  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (drag_data_received): Make sure the url is !=
	NULL? I can't think of anything else in this code that could
	possibly cause bug #38382.

svn path=/trunk/; revision=20046
2003-02-24 22:15:26 +00:00
4b4eb5589a Fixed a memory leak.
2003-02-24  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment-bar.c (pixbuf_for_mime_type): Fixed a
	memory leak.

svn path=/trunk/; revision=20044
2003-02-24 19:57:54 +00:00
1247dfa0f3 Don't save the HTML format setting to gconf. This option menu is meant for
2003-02-22  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_set_send_html): Don't save the
	HTML format setting to gconf. This option menu is meant for a
	per-essage setting (ie. once the composer closes, the next
	composer will again use the default and not what the user chose
	last time).

svn path=/trunk/; revision=20004
2003-02-23 04:17:03 +00:00
d201fdec5a build libcomposer as a shared library so it can be linked into
* Makefile.am: build libcomposer as a shared library so it can be
        linked into libevolution-mail.so without portability problems

svn path=/trunk/; revision=19992
2003-02-21 19:05:27 +00:00
74171b6c89 Same as below.
2003-02-20  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (composer_get_default_charset_setting): Same as
	below.

	* e-msg-composer-attachment-bar.c (get_default_charset): Use
	camel_charset_canonical_name() rather than e_iconv_charset_name()
	as the latter will be removed shortly.

svn path=/trunk/; revision=19979
2003-02-20 21:46:51 +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
999cf94d61 Split out the mailto handling code from here so we can use it in the
2003-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_from_url): Split out the
	mailto handling code from here so we can use it in the drag-n-drop
	code too.
	(drag_data_received): If we find a mailto: url in the
	text/uri-list drop, pass that off to handle_mailto() so it can
	fill in the fields for us.

svn path=/trunk/; revision=19768
2003-02-05 20:16:44 +00:00
a5e82f72f8 updated for e scroll frame --> gtk scrolled window
svn path=/trunk/; revision=19736
2003-02-04 19:03:02 +00:00
3625118596 ops, build
ops, build

svn path=/trunk/; revision=19713
2003-02-03 19:17:22 +00:00
5b0dc680a2 Just use gnome_vfs_get_mime_type_from_name().
2003-02-03  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.c: Just use
	gnome_vfs_get_mime_type_from_name().

svn path=/trunk/; revision=19712
2003-02-03 19:10:40 +00:00
3238b44d77 Give gnome_vfs_get_uri_from_local_path a full path.
2003-02-01  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer-attachment.c (update_mime_type): Give
	gnome_vfs_get_uri_from_local_path a full path.

svn path=/trunk/; revision=19702
2003-02-02 02:20:48 +00:00
8644df4c44 If the subject or body components of the mailto url are not in UTF-8,
2003-01-27  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_new_from_url): If the subject
	or body components of the mailto url are not in UTF-8, convert
	them to UTF-8.

svn path=/trunk/; revision=19662
2003-01-28 04:04:51 +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
c968436720 (iconsdir): Remove, this is now defined in
configure.in.

svn path=/trunk/; revision=19621
2003-01-24 18:15:10 +00:00
cf7ef09cd0 Load the view menu states from gconf. (e_msg_composer_set_send_html): Save
2003-01-23  Jeffrey Stedfast  <fejj@ximian.com>

	* e-msg-composer.c (e_msg_composer_load_config): Load the view
	menu states from gconf.
	(e_msg_composer_set_send_html): Save the setting via gconf instead
	of bonobo-config.
	(e_msg_composer_set_view_from): Same.
	(e_msg_composer_set_view_replyto): Here too.
	(e_msg_composer_set_view_cc): Again here.
	(e_msg_composer_set_view_bcc): And finally here.
	(setup_ui): Fixed a #warning - use gconf instead of bonobo-conf.
	(destroy): No need to sync/destroy the bonobo-conf db, we don't
	use it anymore.

svn path=/trunk/; revision=19606
2003-01-23 22:02:44 +00:00
1ac51fc577 *** empty log message ***
svn path=/trunk/; revision=19555
2003-01-22 20:09:10 +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