From af11d9fcb260247311432bfec92b5eeead458846 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 26 Aug 2009 16:32:04 +0300 Subject: ephy-embed.c: enable undo/redo Depends on WebKitGTK+ r47776 (will be in 1.1.14) Bug #591072 --- embed/ephy-embed.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 2a786e3a6..ddbb5dd25 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -77,6 +77,10 @@ impl_manager_do_command (EphyCommandManager *manager, return webkit_web_view_paste_clipboard (web_view); else if (! strcmp (command, "cmd_selectAll")) return webkit_web_view_select_all (web_view); + else if (! strcmp (command, "cmd_undo")) + return webkit_web_view_undo (web_view); + else if (! strcmp (command, "cmd_redo")) + return webkit_web_view_redo (web_view); } static gboolean @@ -91,6 +95,10 @@ impl_manager_can_do_command (EphyCommandManager *manager, return webkit_web_view_can_cut_clipboard (web_view); else if (! strcmp (command, "cmd_paste")) return webkit_web_view_can_paste_clipboard (web_view); + else if (! strcmp (command, "cmd_undo")) + return webkit_web_view_can_undo (web_view); + else if (! strcmp (command, "cmd_redo")) + return webkit_web_view_can_redo (web_view); return FALSE; } -- cgit v1.2.3