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-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-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-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-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-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-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-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-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-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-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-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-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
* 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-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-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-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-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 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 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-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-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-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 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-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