geary/ui
Michael James Gratton 2bd5306d30 Reenable undo/redo composer actions.
* src/client/composer/composer-web-view.vala (ComposerWebView): Add new
  ::command_stack_changed signal to manage undo/redo enabled state, hook
  it up to a JS callback. Add ::is_empty property as a non-functioning
  shim in lieu of can_undo going away. Remove ::can_undo and ::can_redo,
  replace them with methods to actually fire an undo and redo.

* src/client/composer/composer-widget.vala (ComposerWidget): Use
  ClientWebView::is_empty rather inplace of can_redo for determining
  editing state. Remove old undo/redo signal hookups, replace with
  ::command_stack_changed and manage action enable state from there.
  (ComposerWidget::action_entries): Add explicit actions for undo/redo,
  since they need some custom code over on on the web process side.
  (ComposerWidget::on_compose_as_html_toggled): Explciitly manage the
  visibility of rich text toolbar buttons, don't rely on obscure
  GtkBuilder magic that Glade doesn't support.

* ui/composer-web-view.js: Add a mutation observer for the message body
  and explcit methods for firing undo/redo commands, so we can keep track
  of how the command stack changes. As it does, fire commandStackChanged
  messages back to the client process. Explicity set the message body as
  content-editable after the document has been mutated for quotes, etc.

* ui/composer-widget.ui: Add bonus undo/redo toobar buttons for the
  composer.
2017-02-01 00:41:44 +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 Minor code cleanup. 2017-02-01 00:41:43 +11:00
CMakeLists.txt Re-enable spell checking in composer. 2017-02-01 00:41:44 +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 Re-enable custom composer context menu, add WK text entry items to it. 2017-02-01 00:41:44 +11:00
composer-web-view.js Reenable undo/redo composer actions. 2017-02-01 00:41:44 +11:00
composer-widget.ui Reenable undo/redo composer actions. 2017-02-01 00:41:44 +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 Fix attachments UI not ever being displayed. 2017-02-01 00:41:43 +11:00
conversation-message-menus.ui Use Unicode in translatable strings 2016-12-16 02:14:14 +01:00
conversation-message.ui Fix attachments UI not ever being displayed. 2017-02-01 00:41:43 +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 Work around rendering quote controller buttons, enable expanding quotes. 2017-02-01 00:41:43 +11:00
conversation-web-view.js Minor code cleanup. 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-dialog.ui Re-enable spell checking in composer. 2017-02-01 00:41:44 +11: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