aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 4d9e54e33..d7d48834b 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -399,6 +399,40 @@ window_cmd_file_close_window (GtkAction *action,
}
void
+window_cmd_edit_undo (GtkAction *action,
+ EphyWindow *window)
+{
+ GtkWidget *widget;
+ GtkWidget *embed;
+
+ widget = gtk_window_get_focus (GTK_WINDOW (window));
+ embed = gtk_widget_get_ancestor (widget, EPHY_TYPE_EMBED);
+
+ if (embed)
+ {
+ ephy_command_manager_do_command (EPHY_COMMAND_MANAGER (embed),
+ "cmd_undo");
+ }
+}
+
+void
+window_cmd_edit_redo (GtkAction *action,
+ EphyWindow *window)
+{
+ GtkWidget *widget;
+ GtkWidget *embed;
+
+ widget = gtk_window_get_focus (GTK_WINDOW (window));
+ embed = gtk_widget_get_ancestor (widget, EPHY_TYPE_EMBED);
+
+ if (embed)
+ {
+ ephy_command_manager_do_command (EPHY_COMMAND_MANAGER (embed),
+ "cmd_redo");
+ }
+}
+
+void
window_cmd_edit_cut (GtkAction *action,
EphyWindow *window)
{