diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-10-25 04:30:24 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-10-25 04:30:24 (GMT) |
commit | d5801dadc90bcb3d8027a95a76bd0f77ee0e2af7 (patch) | |
tree | 26f794641b9c42cd4e056a872b2d7dfc7f221237 | |
parent | a71ce8cd2e9cb609984368cd394432e6649d3bb7 (diff) |
Fix markup bug that causes a lot of bugs
Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>
-rw-r--r-- | canvas.py | 3 | ||||
-rw-r--r-- | utils.py | 3 |
2 files changed, 3 insertions, 3 deletions
@@ -183,7 +183,6 @@ class ActivityWidget(gtk.HBox): label = gtk.Label() label.set_justify(gtk.JUSTIFY_LEFT) label.set_line_wrap(True) - label.set_use_markup(True) return label @@ -214,7 +213,7 @@ class ActivityWidget(gtk.HBox): self._progress_changed)).start() self._download_id = self._download_list.add_download( - self._activity_props[1]) + self._activity_props[1]) def _progress_changed(self, progress): self._download_list.set_download_progress(self._download_id, progress) @@ -29,6 +29,7 @@ from sugar.bundle.activitybundle import ActivityBundle # Paths LIST_DOWNLOAD = "http://www.fing.edu.uy/~aaguiar/files/store.lst" LIST_PATH = os.path.join(activity.get_bundle_path(), 'store.lst') +ICONS_DIR = os.path.join(activity.get_activity_root(), 'data') TMP_DIR = os.path.join(activity.get_activity_root(), "tmp") downloading = False @@ -85,7 +86,7 @@ def get_icon(activity_id): activity_obj = store_list[activity_id] number = activity_obj[0] - file_image = os.path.join(TMP_DIR, "icon%s" % number) + file_image = os.path.join(ICONS_DIR, "icon%s" % number) if not os.path.exists(file_image): url =\ 'http://activities.sugarlabs.org/en-US/sugar/images/addon_icon/' + number |