aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-11-04 17:08:47 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-11-04 17:08:47 +0800
commitb446f6693c136813dd6ad780ab826a45939e89ce (patch)
treef37c82d24c2141f1b31ef22bf78d3bd675e1c844 /src/window-commands.c
parent78c2e1a47c7fc6074a80c8b91dbdc1f57e3ba817 (diff)
downloadgsoc2013-epiphany-b446f6693c136813dd6ad780ab826a45939e89ce.tar.gz
gsoc2013-epiphany-b446f6693c136813dd6ad780ab826a45939e89ce.tar.zst
gsoc2013-epiphany-b446f6693c136813dd6ad780ab826a45939e89ce.zip
update undo/redo sensitivity
2003-11-04 Marco Pesenti Gritti <marco@gnome.org> * src/ephy-window.c: (window_cmd_edit): update undo/redo sensitivity 2003-11-04 David Adam Bordoley <bordoley@msu.edu> * data/ui/epiphany-ui.xml: * src/window-commands.c: (window_cmd_edit_undo), (window_cmd_edit_redo): * src/window-commands.h: Menus for Undo/Redo
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)
{