From 947fe24bde29df84e03cb9c3c221df1aea52d0ce Mon Sep 17 00:00:00 2001 From: matgic78 Date: Fri, 16 Oct 2009 18:11:28 +0200 Subject: show icons corresponding to homepage pages on tabs --- src/application.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index fbe5ef43..69acf2f2 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -245,12 +245,18 @@ KIcon Application::icon(const KUrl &url) { if(!Application::instance()->mainWindowList().isEmpty()) // avoid infinite loop at startup { - if(url.scheme() == "rekonq") - return KIcon("go-home"); - // means it is the urlbar if(url.isEmpty() && Application::instance()->mainWindow()->currentTab()->url().scheme() == "rekonq") return KIcon("arrow-right"); + + if(url == KUrl("rekonq:allTabs")) + return KIcon("tab-duplicate"); + if(url == KUrl("rekonq:history")) + return KIcon("view-history"); + if(url == KUrl("rekonq:bookmarks")) + return KIcon("bookmarks"); + if(url == KUrl("rekonq:home") || url == KUrl("rekonq:favorites")) + return KIcon("emblem-favorite"); } if(url.isEmpty()) -- cgit v1.2.1