From 0f85ef5cce2b5ba6d4519a049017646e5472e71c Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 03 Feb 2013 21:09:19 +0000 Subject: access icon_search_path --- 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 -- cgit v0.9.1