summaryrefslogtreecommitdiff
path: root/embed/ephy-web-view.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2014-02-10 20:35:25 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2014-02-18 14:38:09 +0100
commit05b453413675b765a121d33fd7ab4536851b1695 (patch)
tree5a4c3ef2e8f496e7fb0346a08e5e3404a410338f /embed/ephy-web-view.c
parent65a1e4d1d4a46dd5ff781a3d1fa78879e2efbc4c (diff)
downloadepiphany-05b453413675b765a121d33fd7ab4536851b1695.tar.gz
Remove the overview widget and use the html based one instead
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r--embed/ephy-web-view.c15
1 files changed, 13 insertions, 2 deletions
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