aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-08-26 21:32:04 +0800
committerXan Lopez <xan@gnome.org>2009-08-26 21:33:12 +0800
commitaf11d9fcb260247311432bfec92b5eeead458846 (patch)
treef6ffc4244213c6cd4f42fcea269b7369975ba0a1 /embed
parenta8f5e7457282e02a515b828f09b25e5fd4b61b4c (diff)
downloadgsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.tar
gsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.tar.gz
gsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.tar.bz2
gsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.tar.lz
gsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.tar.xz
gsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.tar.zst
gsoc2013-epiphany-af11d9fcb260247311432bfec92b5eeead458846.zip
ephy-embed.c: enable undo/redo
Depends on WebKitGTK+ r47776 (will be in 1.1.14) Bug #591072
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c8
1 files changed, 8 insertions, 0 deletions
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;
}