aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-02-28 18:17:46 +0800
committerXan Lopez <xan@src.gnome.org>2009-02-28 18:17:46 +0800
commitd68e5b3261be67d57eee2da5cab4d3428434e6cb (patch)
treebd28f975751f86d044720afeed2c097697eacf85
parentaf49861cc569d77cab3469fd362cff19d24df49b (diff)
downloadgsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.tar
gsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.tar.gz
gsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.tar.bz2
gsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.tar.lz
gsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.tar.xz
gsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.tar.zst
gsoc2013-epiphany-d68e5b3261be67d57eee2da5cab4d3428434e6cb.zip
Remove get_backend function, there's only one possibility now.
svn path=/trunk/; revision=8825
-rw-r--r--embed/ephy-embed-single.c17
-rw-r--r--embed/ephy-embed-single.h2
-rw-r--r--embed/webkit/webkit-embed-single.c9
-rw-r--r--src/epiphany.defs6
-rw-r--r--src/window-commands.c7
5 files changed, 1 insertions, 40 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 9d4c210c1..f24fef1c6 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -288,20 +288,3 @@ ephy_embed_single_open_window (EphyEmbedSingle *single,
EphyEmbedSingleIface *iface = EPHY_EMBED_SINGLE_GET_IFACE (single);
return iface->open_window (single, parent, address, name, features);
}
-
-/**
- * ephy_embed_single_get_backend_name
- * @single: the #EphyEmbedSingle
- *
- * Can be used to find the particular backend that is being used
- * for rendering pages.
- *
- * Returns: the name of the backend. Valid returns are "gecko-1.7",
- * "gecko-1.8", "gecko-1.9" and "WebKit"
- */
-const char *
-ephy_embed_single_get_backend_name (EphyEmbedSingle *single)
-{
- EphyEmbedSingleIface *iface = EPHY_EMBED_SINGLE_GET_IFACE (single);
- return iface->get_backend_name (single);
-}
diff --git a/embed/ephy-embed-single.h b/embed/ephy-embed-single.h
index e4d0e0e19..8ae5d92cb 100644
--- a/embed/ephy-embed-single.h
+++ b/embed/ephy-embed-single.h
@@ -101,8 +101,6 @@ gboolean ephy_embed_single_get_network_status (EphyEmbedSingle *single);
GList *ephy_embed_single_get_font_list (EphyEmbedSingle *single,
const char *lang_group);
-const char *ephy_embed_single_get_backend_name (EphyEmbedSingle *single);
-
G_END_DECLS
#endif
diff --git a/embed/webkit/webkit-embed-single.c b/embed/webkit/webkit-embed-single.c
index 60e4c5a4d..9363e2377 100644
--- a/embed/webkit/webkit-embed-single.c
+++ b/embed/webkit/webkit-embed-single.c
@@ -128,14 +128,6 @@ impl_get_network_status (EphyEmbedSingle *esingle)
return WEBKIT_EMBED_SINGLE (esingle)->priv->online;
}
-static const char *
-impl_get_backend_name (EphyEmbedSingle *esingle)
-{
- /* If you alter the return values here, remember to update
- * the docs in ephy-embed-single.c */
- return "WebKit";
-}
-
static GList *
impl_get_font_list (EphyEmbedSingle *shell,
const char *langGroup)
@@ -325,7 +317,6 @@ ephy_embed_single_iface_init (EphyEmbedSingleIface *iface)
iface->get_network_status = impl_get_network_status;
iface->get_font_list = impl_get_font_list;
iface->open_window = impl_open_window;
- iface->get_backend_name = impl_get_backend_name;
}
static void
diff --git a/src/epiphany.defs b/src/epiphany.defs
index a5b5673d5..ad5c8c06d 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -860,12 +860,6 @@
)
)
-(define-method get_backend_name
- (of-object "EphyEmbedSingle")
- (c-name "ephy_embed_single_get_backend_name")
- (return-type "const-char*")
-)
-
;; From ../embed/ephy-embed-type-builtins.h
(define-function ephy_embed_net_state_get_type
diff --git a/src/window-commands.c b/src/window-commands.c
index ddcfce740..dfd512310 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -784,8 +784,6 @@ window_cmd_help_about (GtkAction *action,
"51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA")
};
- EphyEmbedShell *shell;
- EphyEmbedSingle *single;
char *licence, *comments;
GKeyFile *key_file;
GError *error = NULL;
@@ -863,11 +861,8 @@ window_cmd_help_about (GtkAction *action,
g_key_file_free (key_file);
- shell = ephy_embed_shell_get_default ();
- single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (shell));
-
comments = g_strdup_printf (_("Lets you view web pages and find information on the internet.\n"
- "Powered by %s"), ephy_embed_single_get_backend_name (single) );
+ "Powered by WebKit"));
licence = g_strjoin ("\n\n",
_(licence_part[0]),