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.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 46dee486b..b3391491c 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -464,6 +464,28 @@ window_cmd_edit_paste (GtkAction *action,
}
void
+window_cmd_edit_delete (GtkAction *action,
+ EphyWindow *window)
+{
+ GtkWidget *widget = gtk_window_get_focus (GTK_WINDOW (window));
+
+ if (GTK_IS_EDITABLE (widget))
+ {
+ gtk_editable_delete_text (GTK_EDITABLE (widget), 0, -1);
+ }
+ else
+ {
+ EphyEmbed *embed;
+
+ embed = ephy_window_get_active_embed (window);
+ g_return_if_fail (embed != NULL);
+
+ ephy_command_manager_do_command (EPHY_COMMAND_MANAGER (embed),
+ "cmd_delete");
+ }
+}
+
+void
window_cmd_edit_select_all (GtkAction *action,
EphyWindow *window)
{