Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-02-03 21:09:19 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-02-03 21:09:19 (GMT)
commit0f85ef5cce2b5ba6d4519a049017646e5472e71c (patch)
tree5f672ee4a9423ab3af2df4bcc6ca84b08e71ad4f
parentd106625268e756880a5cccc05ac2c27b8e061e90 (diff)
access icon_search_path
-rw-r--r--src/jarabe/web/online_accounts_manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jarabe/web/online_accounts_manager.py b/src/jarabe/web/online_accounts_manager.py
index bd518d2..2505267 100644
--- a/src/jarabe/web/online_accounts_manager.py
+++ b/src/jarabe/web/online_accounts_manager.py
@@ -34,6 +34,7 @@ class OnlineAccountsManager(GObject.GObject):
accounts = []
icon_theme = Gtk.IconTheme.get_default()
+ icon_search_path = icon_theme.get_search_path()
web_path = os.path.join(config.ext_path, 'web')
for d in os.listdir(web_path):
@@ -53,7 +54,8 @@ class OnlineAccountsManager(GObject.GObject):
elif f == 'icons':
icon_path = os.path.join(dir_path, f)
if os.path.isdir(icon_path) and \
- icon_path not in icon_theme:
+ icon_path not in icon_search_path:
+ logging.debug("OnelineAccountsManager adding %s to icon_theme" % (icon_path))
icon_theme.append_search_path(icon_path)
return accounts