aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-11-05 07:59:35 +0800
committerChristian Persch <chpe@src.gnome.org>2003-11-05 07:59:35 +0800
commitbb356f3a3548ce549e4cb3a4d30371ea0ac6f564 (patch)
treed345f45bb5374ec4b39059eab454d7f5a26d7209 /embed
parent0258ff08cfd0eff38e1d13704ce0d47c99706df5 (diff)
downloadgsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.tar
gsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.tar.gz
gsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.tar.bz2
gsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.tar.lz
gsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.tar.xz
gsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.tar.zst
gsoc2013-epiphany-bb356f3a3548ce549e4cb3a4d30371ea0ac6f564.zip
Renamed to get_command_state to can_do_command.
2003-11-05 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-command-manager.c: (ephy_command_manager_can_do_command): * embed/ephy-command-manager.h: * embed/mozilla/mozilla-embed.cpp: * src/ephy-window.c: (edit_menu_show_cb): Renamed to get_command_state to can_do_command.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-command-manager.c8
-rw-r--r--embed/ephy-command-manager.h8
-rw-r--r--embed/mozilla/mozilla-embed.cpp6
3 files changed, 12 insertions, 10 deletions
diff --git a/embed/ephy-command-manager.c b/embed/ephy-command-manager.c
index d71017446..68ca46510 100644
--- a/embed/ephy-command-manager.c
+++ b/embed/ephy-command-manager.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, 2001, 2002 Marco Pesenti Gritti
+ * Copyright (C) 2000-2003 Marco Pesenti Gritti
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
*/
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "config.h"
#endif
#include "ephy-command-manager.h"
@@ -88,9 +88,9 @@ ephy_command_manager_do_command (EphyCommandManager *manager,
}
gboolean
-ephy_command_manager_get_command_state (EphyCommandManager *manager,
+ephy_command_manager_can_do_command (EphyCommandManager *manager,
const char *command)
{
EphyCommandManagerClass *klass = EPHY_COMMAND_MANAGER_GET_CLASS (manager);
- return klass->get_command_state (manager, command);
+ return klass->can_do_command (manager, command);
}
diff --git a/embed/ephy-command-manager.h b/embed/ephy-command-manager.h
index c8eaf0514..c0dabc3c0 100644
--- a/embed/ephy-command-manager.h
+++ b/embed/ephy-command-manager.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000, 2001, 2002 Marco Pesenti Gritti
+ * Copyright (C) 2000-2003 Marco Pesenti Gritti
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,6 +14,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
*/
#ifndef EPHY_COMMAND_MANAGER_H
@@ -40,7 +42,7 @@ struct EphyCommandManagerClass
void (* do_command) (EphyCommandManager *manager,
const char *command);
- gboolean (* get_command_state) (EphyCommandManager *manager,
+ gboolean (* can_do_command) (EphyCommandManager *manager,
const char *command);
/* Signals */
@@ -54,7 +56,7 @@ GType ephy_command_manager_get_type (void);
void ephy_command_manager_do_command (EphyCommandManager *manager,
const char *command);
-gboolean ephy_command_manager_get_command_state (EphyCommandManager *manager,
+gboolean ephy_command_manager_can_do_command (EphyCommandManager *manager,
const char *command);
G_END_DECLS
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 5f73cb0ea..25018af17 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -209,8 +209,8 @@ impl_manager_do_command (EphyCommandManager *manager,
}
static gboolean
-impl_manager_get_command_state (EphyCommandManager *manager,
- const char *command)
+impl_manager_can_do_command (EphyCommandManager *manager,
+ const char *command)
{
MozillaEmbedPrivate *mpriv = MOZILLA_EMBED(manager)->priv;
nsresult result;
@@ -225,7 +225,7 @@ static void
ephy_command_manager_init (EphyCommandManagerClass *manager_class)
{
manager_class->do_command = impl_manager_do_command;
- manager_class->get_command_state = impl_manager_get_command_state;
+ manager_class->can_do_command = impl_manager_can_do_command;
}
GType