From 8d08fa859cd2629100da93c089a116e0a76dca3f Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Thu, 10 Sep 2009 20:25:46 +0300 Subject: Remove a couple of references to EphyCommandManager --- doc/reference/tmpl/ephy-command-manager.sgml | 115 --------------------------- src/Makefile.am | 1 - 2 files changed, 116 deletions(-) delete mode 100644 doc/reference/tmpl/ephy-command-manager.sgml diff --git a/doc/reference/tmpl/ephy-command-manager.sgml b/doc/reference/tmpl/ephy-command-manager.sgml deleted file mode 100644 index 3f13ca145..000000000 --- a/doc/reference/tmpl/ephy-command-manager.sgml +++ /dev/null @@ -1,115 +0,0 @@ - -EphyCommandManager - - -Performs commands, such as cut/copy/paste - - - -An #EphyCommandManager is an interface to an #EphyEmbed which is used to perform -commands, such as cut/copy/paste. To perform any command, use -ephy_command_manager_do_command(). To test the availability of a command, use -ephy_command_manager_can_do_command(). The availability of commands depends on -the selection and actions previously performed in the #EphyEmbed. For instance, -%cmd_copy is only available if text has been selected; %cmd_undo is only -available if the user has a text input focused and has typed or erased some of -its text. - - - -Copying selected text in an #EphyEmbed -#]]> -# - -static void -copy_selected_text (EphyEmbed *embed) -{ - EphyCommandManager *manager; - - manager = EPHY_COMMAND_MANAGER (embed); - g_return_if_fail (EPHY_IS_COMMAND_MANAGER (manager)); - - if (!ephy_command_manager_can_do_command (manager, "cmd_copy")) return; - - ephy_command_manager_do_command (manager, "cmd_copy"); -}]]> - - - - -The #EphyCommandManager interface can perform any command which is defined in -Mozilla. However, for purposes of abstraction, only a certain subset of commands -should be used: - -Available Commands -cmd_copy -Copies selected text - -cmd_cut -Cuts selected text. - -cmd_paste -Pastes text from the clipboard (for example, into a text entry) - - -cmd_undo -Undoes the last action (for example, typing text into a text -entry - -cmd_redo -Redoes previously %undone actions (for example, in a -text entry) - - - - - - - - - - - - - - - - - - - - - - -@ephycommandmanager: the object which received the signal. -@arg1: - - - - - - -@base_iface: -@do_command: -@can_do_command: -@command_changed: - - - - - - -@manager: -@command: - - - - - - - -@manager: -@command: -@Returns: - - diff --git a/src/Makefile.am b/src/Makefile.am index 492a7688c..5a9dcc0d6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -282,7 +282,6 @@ MAINTAINERCLEANFILES = $(stamp_files) $(BUILT_SOURCES) if ENABLE_INTROSPECTION EPHY_GIR_H_FILES = \ - $(top_srcdir)/embed/ephy-command-manager.h \ $(top_srcdir)/embed/ephy-embed-event.h \ $(top_srcdir)/embed/ephy-embed.h \ $(top_srcdir)/embed/ephy-embed-persist.h \ -- cgit