Support icons inside the activity

This commit is contained in:
Marco Pesenti Gritti
2007-05-31 11:30:16 +02:00
parent 9ea6b18027
commit fc53bf8667
3 changed files with 10 additions and 4 deletions
+2
View File
@@ -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()
+4
View File
@@ -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