Support icons inside the activity
This commit is contained in:
@@ -152,6 +152,8 @@ def run(bundle_path):
|
||||
bundle.get_locale_path())
|
||||
gettext.textdomain(bundle.get_service_name())
|
||||
|
||||
gtk.icon_theme_get_default().append_search_path(bundle.get_icons_path())
|
||||
|
||||
os.environ['SUGAR_BUNDLE_PATH'] = bundle_path
|
||||
os.environ['SUGAR_BUNDLE_SERVICE_NAME'] = bundle.get_service_name()
|
||||
os.environ['SUGAR_BUNDLE_NAME'] = bundle.get_name()
|
||||
|
||||
@@ -139,6 +139,10 @@ class Bundle:
|
||||
"""Get the locale path inside the activity bundle."""
|
||||
return os.path.join(self._path, 'locale')
|
||||
|
||||
def get_icons_path(self):
|
||||
"""Get the icons path inside the activity bundle."""
|
||||
return os.path.join(self._path, 'icons')
|
||||
|
||||
def get_path(self):
|
||||
"""Get the activity bundle path."""
|
||||
return self._path
|
||||
|
||||
Reference in New Issue
Block a user