GNOME Bugzilla – Bug 678596
Port editing commands API to WebKit2
Last modified: 2012-06-25 10:29:55 UTC
Created attachment 216995 [details] [review] Add helper function to update action sensitivity Use WebKit2 API to run editing commands and query their availability.
Created attachment 216996 [details] [review] Patch
Review of attachment 216995 [details] [review]: Nice.
Review of attachment 216996 [details] [review]: Can push with those two nitpicks fixed. ::: src/ephy-window.c @@ +1236,3 @@ +#ifdef HAVE_WEBKIT2 + CanEditCommandAsyncData *data; I think this will give a warning about variables being declared in the middle of the method. @@ +1240,3 @@ + data = can_edit_command_async_data_new (window, "EditCopy", hide); + webkit_web_view_can_execute_editing_command (view, WEBKIT_EDITING_COMMAND_COPY, NULL, + (GAsyncReadyCallback) can_edit_command_callback, The style guide says don't use spaces between the cast type and the variable.