[kupfer] plugin.shorten_links: Add icons to Services



commit 03c56ec70eefa36f1e2a473d891d69803d7f5173
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Dec 22 00:54:28 2009 +0100

    plugin.shorten_links: Add icons to Services
    
    For now, we use the generic internet icons: globe icon to represent
    all services, a text-html document for each site.

 kupfer/plugin/shorten_links.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/shorten_links.py b/kupfer/plugin/shorten_links.py
index 201d107..03b4721 100644
--- a/kupfer/plugin/shorten_links.py
+++ b/kupfer/plugin/shorten_links.py
@@ -6,7 +6,7 @@ import urllib
 from kupfer.objects import Leaf, Action, Source, UrlLeaf
 from kupfer import pretty
 
-__kupfer_name__ = _("Shorten links")
+__kupfer_name__ = _("Shorten Links")
 __kupfer_actions__ = ("ShortenLinks", )
 __description__ = _("Shorten links with various services (for now only TinyUrl)")
 __version__ = "2009-12-21"
@@ -14,7 +14,8 @@ __author__ = "Karol BÄ?dkowski <karol bedkowski gmail com>"
 
 
 class _ShortLinksService(Leaf):
-	pass
+	def get_icon_name(self):
+		return "text-html"
 
 
 TINYURL_PATH="/api-create.php?"
@@ -77,3 +78,5 @@ class ServicesSource(Source):
 	def get_items(self):
 		yield TinyUrl()
 
+	def get_icon_name(self):
+		return "applications-internet"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]