geary/test
Michael James Gratton 9f5def0d0f Re-implement alt text filename fallback when saving inline images.
This restores some old behaviour after teh WK2 port.

* src/client/conversation-viewer/conversation-message.vala
  (ConversationMessage): Add alt_text param to ::save_image
  signal. Replace ::set_action_param_string with
  ::set_action_param_string so we can pass a (url, alt_text) tuple for
  the save_image tuple and update call sites. Set this tuple for the
  action when enabling it, and pass the two values to the ::save_image
  signal handler when activated.

* src/engine/api/geary-attachment.vala (Attachment::get_safe_file_name):
  Add alt_file_name param method, use that when constructing a file
  name. Add doc comment, test.

* src/client/application/geary-controller.vala: Updated to pass alt text
  from save_imge signal emission all thr way through to
  get_safe_file_name.
2017-02-16 08:58:58 +11:00
..
client Don't insert multiple blank lines in the composer. Bug 778125. 2017-02-07 12:09:29 +11:00
engine Re-implement alt text filename fallback when saving inline images. 2017-02-16 08:58:58 +11:00
js Don't insert multiple blank lines in the composer. Bug 778125. 2017-02-07 12:09:29 +11:00
CMakeLists.txt Clean up default filename when saving attachments. 2017-02-16 08:44:27 +11:00
main.vala Clean up default filename when saving attachments. 2017-02-16 08:44:27 +11:00
testcase.vala Update some test code attributions. 2017-02-01 00:41:45 +11:00