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 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-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-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-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 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-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-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-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
* 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-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-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-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-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-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-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-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-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-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-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-07 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (composer_get_default_charset): Convenience
function.
(get_file_content): Use the convenience function to get the
default charset setting.
(best_charset): Same.
(e_msg_composer_new): Use gconf to get the send_html setting.
(e_msg_composer_new_post): Same.
svn path=/trunk/; revision=19269
2002-12-07 Jeffrey Stedfast <fejj@ximian.com>
Fix for bug #33295
* e-msg-composer-attachment.c: Change the parent_class to a
GObjectClass pointer instead of a GtkObjectClass pointer.
(e_msg_composer_attachment_edit): Ref the attachment object so
that if the attachment is removed while it is still being edited,
the attachment object will still exist and therefor foil the
user's attempt to make Evolution crash when they close the
properties dialog for this attachment.
(close_cb): Unref the attachment object.
svn path=/trunk/; revision=19053
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-11-25 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (init): Remove the window size
setting.
(e_msg_composer_attachment_bar_new): Move the window size setting
here. Also set icon width based on 15 approximate characters, so
the icon text is more readable.
svn path=/trunk/; revision=18906
2002-11-22 Not Zed <NotZed@Ximian.com>
* e-msg-composer-select-file.c: rewrote most of this. Just use
gtkfileselection directly, no e-file-selector, much
smaller/simpler.
2002-11-21 Not Zed <NotZed@Ximian.com>
* e-msg-composer-attachment-bar.c (remove_attachment): fix
g_signal_emit params, detail in wrong spot.
(add_common): Same.
* e-icon-list.c (icon_new_from_pixbuf): remove the
'use_broken_event_handling' set.
(emit_select): Add detail to signal emit.
(text_changed): Same.
* e-msg-composer.c (subject_changed_cb): Duh! dont free subject &
simplify logic a little.
svn path=/trunk/; revision=18904
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