From 05b453413675b765a121d33fd7ab4536851b1695 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 10 Feb 2014 20:35:25 +0100 Subject: Remove the overview widget and use the html based one instead --- embed/ephy-web-view.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'embed/ephy-web-view.c') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index f4e47a97e..8c121f5a7 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -37,7 +37,6 @@ #include "ephy-file-monitor.h" #include "ephy-form-auth-data.h" #include "ephy-history-service.h" -#include "ephy-overview.h" #include "ephy-prefs.h" #include "ephy-settings.h" #include "ephy-string.h" @@ -739,7 +738,7 @@ get_title_from_address (const char *address) return g_strdup (address + 7); else if (!strcmp (address, EPHY_ABOUT_SCHEME":overview") || !strcmp (address, "about:overview")) - return g_strdup (EPHY_OVERVIEW_TITLE); + return g_strdup (_("Most Visited")); else return ephy_string_get_host_name (address); } @@ -2302,6 +2301,18 @@ ephy_web_view_get_is_blank (EphyWebView *view) return view->priv->is_blank; } +gboolean +ephy_web_view_is_overview (EphyWebView *view) +{ + EphyWebViewPrivate *priv = view->priv; + + if (!priv->address) + return FALSE; + + return (!strcmp (priv->address, EPHY_ABOUT_SCHEME":overview") || + !strcmp (priv->address, "about:overview")); +} + /** * ephy_web_view_get_address: * @view: an #EphyWebView -- cgit v1.2.1