summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2009-10-16 18:11:28 +0200
committermatgic78 <matgic78@gmail.com>2009-10-16 18:11:28 +0200
commit947fe24bde29df84e03cb9c3c221df1aea52d0ce (patch)
treec11f67a6aa533d0c33084a0eefe153ee427f6e15
parentarrow-right icon for urlbar when homepage shown (diff)
downloadrekonq-947fe24bde29df84e03cb9c3c221df1aea52d0ce.tar.xz
show icons corresponding to homepage pages on tabs
-rw-r--r--src/application.cpp12
1 files changed, 9 insertions, 3 deletions
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())