From 4e9047e324c443b666f07cc356f38a21702c9268 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 29 Aug 2012 02:26:26 +0200 Subject: ephy-navigation-history-action: fix overview title The overview is not an actual web page, so it won't have a title as far as WebKit is concerned. Hardcode "Most Visited" as its title. --- src/ephy-navigation-history-action.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/ephy-navigation-history-action.c b/src/ephy-navigation-history-action.c index f8892bf4b..6898001ee 100644 --- a/src/ephy-navigation-history-action.c +++ b/src/ephy-navigation-history-action.c @@ -37,6 +37,7 @@ #include "ephy-type-builtins.h" #include "ephy-window.h" +#include #include #ifdef HAVE_WEBKIT2 #include @@ -540,6 +541,10 @@ build_dropdown_menu (EphyNavigationHistoryAction *action) title = g_strdup (webkit_web_history_item_get_title (hitem)); #endif + /* The overview is not actually a webpage, so we need to hardcode + * this here. */ + if (g_strcmp0 (uri, "ephy-about:overview") == 0) + title = g_strdup (_("Most Visited")); if (title == NULL || g_strstrip (title)[0] == '\0') item = new_history_menu_item (EPHY_WEB_VIEW (web_view), uri, uri); -- cgit v1.2.3