diff options
author | Adam Hooper <adamh@src.gnome.org> | 2004-03-30 00:36:40 +0800 |
---|---|---|
committer | Adam Hooper <adamh@src.gnome.org> | 2004-03-30 00:36:40 +0800 |
commit | 3a4910096aaf0a3aa807f1c5c54178a11443bf50 (patch) | |
tree | 02cfda6ee8261c5f9b9a8defdec15deac6c96783 /embed | |
parent | 9fb5753f5269d9ce94a0815660dfc907c6d96cdf (diff) | |
download | gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.tar gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.tar.gz gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.tar.bz2 gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.tar.lz gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.tar.xz gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.tar.zst gsoc2013-epiphany-3a4910096aaf0a3aa807f1c5c54178a11443bf50.zip |
Documented EphyCommandManager
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-command-manager.c | 25 | ||||
-rw-r--r-- | embed/ephy-command-manager.h | 6 |
2 files changed, 28 insertions, 3 deletions
diff --git a/embed/ephy-command-manager.c b/embed/ephy-command-manager.c index 2f9375d9e..9161b7a8c 100644 --- a/embed/ephy-command-manager.c +++ b/embed/ephy-command-manager.c @@ -57,6 +57,15 @@ ephy_command_manager_base_init (gpointer g_class) if (!initialized) { +/** + * EphyCommandManager::command-changed: + * @manager: + * @command: The command whose avalability has changed + * + * The ::command-changed signal is emitted when @command has changed from being + * available to unavailable, or vice-versa. The new availability can be tested + * with ephy_command_manager_can_do_command(). + **/ g_signal_new ("command_changed", EPHY_TYPE_COMMAND_MANAGER, G_SIGNAL_RUN_FIRST, @@ -71,6 +80,13 @@ ephy_command_manager_base_init (gpointer g_class) } } +/** + * ephy_command_manager_do_command: + * @manager: an #EphyCommandManager + * @command: the command + * + * Performs @command. + **/ void ephy_command_manager_do_command (EphyCommandManager *manager, const char *command) @@ -79,6 +95,15 @@ ephy_command_manager_do_command (EphyCommandManager *manager, iface->do_command (manager, command); } +/** + * ephy_command_manager_can_do_command: + * @manager: an #EphyCommandManager + * @command: the command + * + * Returns %TRUE if @command can be performed. + * + * Return value: %TRUE if @command can be performed. + **/ gboolean ephy_command_manager_can_do_command (EphyCommandManager *manager, const char *command) diff --git a/embed/ephy-command-manager.h b/embed/ephy-command-manager.h index aee7004d3..b64c1c8b1 100644 --- a/embed/ephy-command-manager.h +++ b/embed/ephy-command-manager.h @@ -33,10 +33,10 @@ G_BEGIN_DECLS #define EPHY_IS_COMMAND_MANAGER_IFACE(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_COMMAND_MANAGER)) #define EPHY_COMMAND_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), EPHY_TYPE_COMMAND_MANAGER, EphyCommandManagerIface)) -typedef struct EphyCommandManager EphyCommandManager; -typedef struct EphyCommandManagerIface EphyCommandManagerIface; +typedef struct _EphyCommandManager EphyCommandManager; +typedef struct _EphyCommandManagerIface EphyCommandManagerIface; -struct EphyCommandManagerIface +struct _EphyCommandManagerIface { GTypeInterface base_iface; |