find . -name '*.vala' -type f -exec sed -i 's/ *$//g' {} +
The following files was ignored:
test/client/composer/composer-web-view-test.vala
test/engine/util-html-test.vala
Fix#271
Follow GTK+ reccomendation for (not) setting folder paths in save file
choosers, ensure UTF-8 display names and file system encodings are used
as appropriate, and report errors to the user when they occur.
* src/client/application/geary-controller.vala (GearyController): Replace
use of last_save_directory with new attachments_dir property on the
configuration object.
* src/client/dialogs/attachment-dialog.vala (AttachmentDialog): Replace
current_folder with use of last_save_directory with new attachments_dir
property on the configuration object. Add config object as ctor param
and object field, update call sites.
* src/client/composer/composer-widget.vala (AttachmentError): New
exception type for attachment errors.
(ComposerWidget): Replace attachment_files field with two,
attached_files for attachment parts and inline_files for inline parts,
update uses of them.
(ComposerWidget::add_attachment): Throw an error when an error occurs,
rather than trying to handle it internally. Allow content disposition
type type to be specified, and only add it to the attahcments UI if not
inline. Update call sites.
(ComposerWidget::on_add_attachment): Manage adding attachments from
AttachmentDialog directly, rather than relying on AttachmentDialog to
do the work.
(ComposerWidget::on_insert_image): Also manage AttachmentDialog
directly, specify inline when attaching, inset IMG element into HTML
document.
* src/client/dialogs/attachment-dialog.vala (is_finished): Removed, since
ComposerWidget is managing this itself now.