Commit graph

17 commits

Author SHA1 Message Date
Michael Gratton
e426517b30 Rename Config class and source file to match code style
Rename `Configuration` => `Application.Configuration` and
`geary-config.vala to `application-config.vala`. Update call sites and
test cases.
2019-11-17 16:53:42 +11:00
Kristian Klausen
48c93655cf Remove trailing whitespace
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
2019-02-28 23:05:31 +01:00
Michael Gratton
664950ba0a Cleanup attachment save handling
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.
2018-10-24 21:36:15 +11:00
Michael James Gratton
19a1202062 Fix a crash when adding an attachment from a virtual folder. 2018-08-02 20:20:51 +10:00
Michael James Gratton
c57cc281fb Remove GTK 3.20/3.22 source defines and the conditionals using them. 2017-10-10 14:32:50 -07:00
Michael James Gratton
527399be76 Remember attachments dir and reuse adding/saving attachments and images.
* 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.
2017-02-24 12:06:42 +11:00
Michael James Gratton
0f8a3d1752 Fix compilation after rebasing against current master. 2016-10-04 10:45:02 +11:00
Michael James Gratton
13e775bc98 Allow adding inline attachments to the composer widget. Bug 712995.
* 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.
2016-10-04 10:36:44 +11:00
Gautier Pelloux-Prayer
65fed2c04a Usage native file chooser when GTK 3.20+ is available. Bug 770467. 2016-10-04 10:04:13 +11:00
Rico Tzschichholz
f2d392bed5 Fix compile warnings with vala git 2016-07-08 09:56:42 +02:00
Yosef Or Boczko
0da3cb9d26 Use margin-{start,end} instead of margin-{left,right}: Close bgo #730611 2016-05-20 16:42:45 +10:00
Adam Dingle
654e513f9c Transfer Yorba copyrights to Software Freedom Conservancy 2016-05-06 08:33:37 -04:00
Jim Nelson
29448cab65 Update copyright to 2015 2015-02-06 12:43:33 -08:00
Jim Nelson
dc1445d6f0 Update copyrights to 2014: Closes bgo#722381 2014-02-04 19:01:09 -08:00
Jim Nelson
403dd8508e Drop Gtk.Stock: Closes #7203, Closes #7294
These changes also invalidates #7218, as we're no longer using
buttons with icons with these changes.
2013-08-02 15:28:33 -07:00
Jim Nelson
e9a27e55be JPEG Orientation now respected in viewer, thumbnails, file chooser: Closes #7007, Closes #7074
This may also close issue #7073, but more investigation is required.
2013-06-13 15:17:04 -07:00
Avi Levy
696a9f7d95 Closes #5990 Previews in attach dialog 2013-06-04 11:22:17 -07:00