diff options
author | Walter Bender <walter.bender@gmail.com> | 2013-02-03 17:55:26 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2013-02-03 17:55:26 (GMT) |
commit | 8a56a1dd6c6c71fc89c2ab04692b6e59c594f7f9 (patch) | |
tree | a8c3c0fa1b335afc2dd306e3b66b2b981abfe5b8 /src | |
parent | 07bee8131cf9164be6988ed1a74a613cf10bf51f (diff) |
add_icon_path method to prototype
Diffstat (limited to 'src')
-rw-r--r-- | src/jarabe/util/online_account.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jarabe/util/online_account.py b/src/jarabe/util/online_account.py index b908538..560c252 100644 --- a/src/jarabe/util/online_account.py +++ b/src/jarabe/util/online_account.py @@ -21,6 +21,7 @@ #THE SOFTWARE. from gi.repository import GObject +from gi.repository import Gtk from sugar3.graphics.menuitem import MenuItem from sugar3.graphics.toolbutton import ToolButton @@ -38,6 +39,11 @@ class OnlineAccount(GObject.GObject): def get_refresh_button(self): raise Exception("Not defined") + def _add_icon_path(self, icon_path): + icon_theme = Gtk.IconTheme.get_default() + if os.path.exists(icon_path) and not icon_path in icon_theme: + icon_theme.append_search_path(icon_path) + class OnlineShareMenu(MenuItem): pass |