From: Cyrille Giquello Date: Tue, 23 Oct 2012 21:22:10 +0000 (+0200) Subject: replace custom icon with a theme icon name X-Git-Url: https://adrianiainlam.tk/git/?p=indicator-chars.git;a=commitdiff_plain;h=a988ac127416e3e053748188da6cd1fb0d0db482 replace custom icon with a theme icon name --- diff --git a/indicator-chars.py b/indicator-chars.py index 6434a1e..50fcee6 100755 --- a/indicator-chars.py +++ b/indicator-chars.py @@ -50,7 +50,10 @@ class IndicatorChars: def __init__(self): self.ind = appindicator.Indicator( - "Chars", os.path.join(self.SCRIPT_DIR, 'light16x16.png'), + # Custom icon seems to doesn't work on my Ubuntu 12.04 LTS running Unity 2D + #"Chars", os.path.join(self.SCRIPT_DIR, 'light16x16.png'), + # So fallback to an referenced theme's icon name + "Chars", "accessories-character-map", appindicator.CATEGORY_APPLICATION_STATUS) self.ind.set_status(appindicator.STATUS_ACTIVE)