From 4f3f32fd5a8b5ac9e60ce865c395ea92c87ffaff Mon Sep 17 00:00:00 2001 From: Sebastian Silva Date: Wed, 27 Jul 2016 01:52:05 -0500 Subject: [PATCH] Assign icon to window regardless of environment. Makes Sugar Activities more standard. --- src/sugar3/activity/activity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py index efec0cdf..2061232d 100644 --- a/src/sugar3/activity/activity.py +++ b/src/sugar3/activity/activity.py @@ -440,9 +440,8 @@ class Activity(Window, Gtk.Container): self.__jobject_updated_cb) self.set_title(self._jobject.metadata['title']) - if 'SUGAR_VERSION' not in os.environ: - bundle = get_bundle_instance(get_bundle_path()) - self.set_icon_from_file(bundle.get_icon()) + bundle = get_bundle_instance(get_bundle_path()) + self.set_icon_from_file(bundle.get_icon()) def run_main_loop(self):