[epiphany] ephy-embed.c: enable undo/redo
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-embed.c: enable undo/redo
- Date: Wed, 26 Aug 2009 13:34:12 +0000 (UTC)
commit af11d9fcb260247311432bfec92b5eeead458846
Author: Xan Lopez <xan gnome org>
Date: Wed Aug 26 16:32:04 2009 +0300
ephy-embed.c: enable undo/redo
Depends on WebKitGTK+ r47776 (will be in 1.1.14)
Bug #591072
embed/ephy-embed.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 2a786e3..ddbb5dd 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]