geary/ui
Michael James Gratton 5b8c68f5fa Implement getting message selection for quoting and selection in WK2.
* src/client/conversation-viewer/conversation-web-view.vala
  (ConversationWebView): Remove has_selection method since we are
  using the signal to specify if a selection was found or not. Update
  call sites to use that.
  (ConversationWebView::get_selection_for_find,
  ConversationWebView::get_selection_for_quoting): Implement using calls
  to web process JS methods.

* src/client/application/geary-controller.vala
  (GearyController::create_reply_forward_widget): If we have a possible
  message view to quote from, handle constructing the compser widget
  asynchronously, when we know if we have a quote or not.

* src/client/conversation-viewer/conversation-viewer.vala:
  (ConversationViewer::on_find_mode_changed): Handle getting text
  selection for finds asynchonously.

* src/client/components/client-web-view.vala
  (ClientWebView::get_string_result): New helper for getting string
  values from JS calls.

* src/client/conversation-viewer/conversation-email.vala
  (ConversationEmail::get_selection_for_quoting,
  ConversationEmail::get_selection_for_find): Handxle errors when
  obtaining selections from a message view.

* src/client/conversation-viewer/conversation-message.vala: Remove
  methods that were simply passed through to the web view anyway. Update
  call sies.

* src/client/web-process/util-conversation.vala: Port all remaining
  functions to JS, remove.

* bindings/vapi/javascriptcore-4.0.vapi: Add methods needed to get
  strings out of WebKit.JavascriptResult instances.

* ui/conversation-web-view.js: Implement selection functions in JS, minor
  cleanup.
2017-02-01 00:41:43 +11:00
..
gtk Move context to the end of the tag in the shortcuts window 2016-10-04 21:43:32 +02:00
accelerators.ui Reimplement in-conversation find. 2016-10-04 10:58:17 +11:00
account_cannot_remove.glade Use margin-{start,end} instead of margin-{left,right}: Close bgo #730611 2016-05-20 16:42:45 +10:00
account_list.glade Use GtkHeaderBar for Accounts & Prefs dialogs: Bug #741240 2014-12-08 15:18:34 -08:00
account_spinner.glade Closes #6201 First batch of work for account manager. "Add account" functionality is complete (though Geary will still only display one email account in the main UI) 2013-01-22 18:23:07 -08:00
certificate_warning_dialog.glade Use Unicode in translatable strings 2016-12-16 02:14:14 +01:00
client-web-view-allow-remote-images.js Re-implement remote image loading management for WebKit2. 2017-02-01 00:41:43 +11:00
client-web-view.js Re-implement message HTML cleaning in JS in the web extension for WK2. 2017-02-01 00:41:43 +11:00
CMakeLists.txt Reimplement loading and cleaning message into WK2 composer web view. 2017-02-01 00:41:43 +11:00
composer-headerbar.ui Use click-to-focus prop on toolbar buttons rather than other workarounds. 2016-10-20 16:58:48 +11:00
composer-menus.ui Fix for the context menu. Bug 770356. 2016-09-21 15:02:31 +10:00
composer-web-view.js Reimplement loading and cleaning message into WK2 composer web view. 2017-02-01 00:41:43 +11:00
composer-widget.ui Use click-to-focus prop on toolbar buttons rather than other workarounds. 2016-10-20 16:58:48 +11:00
conversation-email-attachment-view.ui Replace Gtk.IconView with FlowBox for displaying email attachments. 2016-10-04 10:58:17 +11:00
conversation-email-menus.ui Use Unicode in translatable strings 2016-12-16 02:14:14 +01:00
conversation-email.ui Add translator notes about the conversation email star/unstar buttons. 2016-12-14 11:49:55 +11:00
conversation-message-menus.ui Use Unicode in translatable strings 2016-12-16 02:14:14 +01:00
conversation-message.ui Display Sender and Reply-To headers for conversation messages. 2016-10-04 10:58:17 +11:00
conversation-viewer.ui Remove border around conversation viewer's scrolled window. 2016-12-09 15:36:06 +11:00
conversation-web-view.css Remove some obsolete CSS from conversation-web-view.css. 2017-02-01 00:41:43 +11:00
conversation-web-view.js Implement getting message selection for quoting and selection in WK2. 2017-02-01 00:41:43 +11:00
edit_alternate_emails.glade Support multiple ("alternate") email addresses per acct: Bug #714922 2015-03-04 17:26:44 -08:00
empty-placeholder.ui Fix runtime errors when built/running against GTK +3.14. 2016-12-06 16:22:39 +11:00
find_bar.glade Use margin-{start,end} instead of margin-{left,right}: Close bgo #730611 2016-05-20 16:42:45 +10:00
folder-popover.ui Use Popover for Move/Label menu. Bug 767431. 2016-06-20 15:27:41 +10:00
geary.css Fix GTK+ widget style issues under GTK+ < 3.20. 2016-12-09 13:31:03 +11:00
login.glade Ensure all new account/login placeholder text strings are translatable. 2016-09-26 16:34:42 +10:00
main-toolbar.ui Remove 'EmptyMenu'-action. Bug 775018. 2016-11-29 00:19:40 +11:00
main-window.ui Fix the headerbar not showing in Unity. Bug 775865. 2016-12-11 19:28:45 +01:00
password-dialog.glade Password dialog improvements 2014-10-28 17:01:52 -07:00
preferences.glade Use margin-{start,end} instead of margin-{left,right}: Close bgo #730611 2016-05-20 16:42:45 +10:00
remove_confirm.glade Remove use of Gtk.Misc ::xpad and ::ypad. Bug 713991. 2016-05-21 12:45:13 +10:00
toolbar_empty_menu.ui Empty Trash and Empty Spam: Bug #714809, Bug #725260 2015-01-13 13:48:16 -08:00
toolbar_mark_menu.ui UI refresh. Closes #7267 Closes #7199 Closes #7198 Closes #7043 Closes #6819 Closes #5839 2013-08-26 14:56:46 -07:00
upgrade_dialog.glade Use margin-{start,end} instead of margin-{left,right}: Close bgo #730611 2016-05-20 16:42:45 +10:00