diff options
author | Xan Lopez <xan@gnome.org> | 2009-09-10 23:05:54 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-09-10 23:05:54 +0800 |
commit | b93c0ee2b3db46db54b6ae45909fb8b5f54d9f4c (patch) | |
tree | 17ddf4e087e8ab7bff4c89cf24da8097ca693119 /src/ephy-window.c | |
parent | b2dbd47c3f06203d4394c10599011734ad77ae32 (diff) | |
download | gsoc2013-epiphany-b93c0ee2b3db46db54b6ae45909fb8b5f54d9f4c.tar.gz gsoc2013-epiphany-b93c0ee2b3db46db54b6ae45909fb8b5f54d9f4c.tar.zst gsoc2013-epiphany-b93c0ee2b3db46db54b6ae45909fb8b5f54d9f4c.zip |
Get rid of EphyCommandManager
It was just another useless abstraction at this point.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index d4d29c297..635a7798b 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -24,7 +24,6 @@ #include "ephy-window.h" #include "ephy-type-builtins.h" #include "ephy-embed-type-builtins.h" -#include "ephy-command-manager.h" #include "ephy-state.h" #include "ppview-toolbar.h" #include "window-commands.h" @@ -1179,20 +1178,18 @@ update_edit_actions_sensitivity (EphyWindow *window, gboolean hide) else { EphyEmbed *embed; + WebKitWebView *view; embed = window->priv->active_embed; g_return_if_fail (embed != NULL); - can_copy = ephy_command_manager_can_do_command - (EPHY_COMMAND_MANAGER (embed), "cmd_copy"); - can_cut = ephy_command_manager_can_do_command - (EPHY_COMMAND_MANAGER (embed), "cmd_cut"); - can_paste = ephy_command_manager_can_do_command - (EPHY_COMMAND_MANAGER (embed), "cmd_paste"); - can_undo = ephy_command_manager_can_do_command - (EPHY_COMMAND_MANAGER (embed), "cmd_undo"); - can_redo = ephy_command_manager_can_do_command - (EPHY_COMMAND_MANAGER (embed), "cmd_redo"); + view = EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed); + + can_copy = webkit_web_view_can_copy_clipboard (view); + can_cut = webkit_web_view_can_cut_clipboard (view); + can_paste = webkit_web_view_can_paste_clipboard (view); + can_undo = webkit_web_view_can_undo (view); + can_redo = webkit_web_view_can_redo (view); } action_group = window->priv->action_group; |