From 38956a20d942387e3d5b839c4b962713bd60cdf0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sat, 25 Oct 2003 15:15:35 +0000 Subject: Interface for commands. Useful for undo. (cmd_undo works). 2003-10-25 Marco Pesenti Gritti * embed/Makefile.am: * embed/ephy-command-manager.c: (ephy_command_manager_get_type), (ephy_command_manager_base_init), (ephy_command_manager_do_command), (ephy_command_manager_can_do_command), (ephy_command_manager_observe_command): * embed/ephy-command-manager.h: Interface for commands. Useful for undo. (cmd_undo works). * embed/ephy-embed.c: * embed/ephy-embed.h: Remove all clipboard calls. * embed/mozilla/EphyWrapper.cpp: * embed/mozilla/EphyWrapper.h: * embed/mozilla/Makefile.am: * embed/mozilla/mozilla-embed.cpp: Implement part of the commands interface. No regressions. * src/window-commands.c: (window_cmd_edit_cut), (window_cmd_edit_copy), (window_cmd_edit_paste), (window_cmd_edit_select_all): Implement clipboard using commands. --- embed/ephy-embed.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'embed/ephy-embed.h') diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h index 811fa91e6..66678e404 100644 --- a/embed/ephy-embed.h +++ b/embed/ephy-embed.h @@ -231,13 +231,6 @@ struct EphyEmbedClass gboolean reflow); gresult (* zoom_get) (EphyEmbed *embed, float *zoom); - gresult (* selection_can_cut) (EphyEmbed *embed); - gresult (* selection_can_copy) (EphyEmbed *embed); - gresult (* can_paste) (EphyEmbed *embed); - gresult (* selection_cut) (EphyEmbed *embed); - gresult (* selection_copy) (EphyEmbed *embed); - gresult (* paste) (EphyEmbed *embed); - gresult (* select_all) (EphyEmbed *embed); gresult (* shistory_count) (EphyEmbed *embed, int *count); gresult (* shistory_get_nth) (EphyEmbed *embed, @@ -342,21 +335,6 @@ gresult ephy_embed_zoom_set (EphyEmbed *embed, gresult ephy_embed_zoom_get (EphyEmbed *embed, float *zoom); -/* Clipboard */ -gresult ephy_embed_selection_can_cut (EphyEmbed *embed); - -gresult ephy_embed_selection_can_copy (EphyEmbed *embed); - -gresult ephy_embed_can_paste (EphyEmbed *embed); - -gresult ephy_embed_selection_cut (EphyEmbed *embed); - -gresult ephy_embed_selection_copy (EphyEmbed *embed); - -gresult ephy_embed_paste (EphyEmbed *embed); - -gresult ephy_embed_select_all (EphyEmbed *embed); - /* Session history */ gresult ephy_embed_shistory_count (EphyEmbed *embed, int *count); -- cgit