diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-12-28 12:04:58 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-12-28 12:04:58 (GMT) |
commit | f07efe151b1fc9754ec46faf10d48d46cee95e3a (patch) | |
tree | f6b86cf41dce5254e811533a6441dbac7b260ea7 | |
parent | 0eb9604a00f86b5dd993c013a2e17952848b4fa7 (diff) |
Some corrections to activity
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
-rw-r--r-- | activity.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/activity.py b/activity.py index a4fd154..b7c9ad9 100644 --- a/activity.py +++ b/activity.py @@ -139,8 +139,8 @@ class UnitBrowser(activity.Activity): self._browser = WebKit.WebView() self._browser.connect('load-finished', self._load_finished_cb) self._browser.set_full_content_zoom(True) - #self._browser.set_zoom_level( - # self._browser.get_zoom_level() + 0.3) + self._browser.set_zoom_level( + self._browser.get_zoom_level() + 0.3) self._notebook.append_page(self._browser, Gtk.Label()) self.set_canvas(self._notebook) @@ -172,16 +172,17 @@ class UnitBrowser(activity.Activity): if os.path.exists(imagepath): image = GdkPixbuf.Pixbuf.new_from_file_at_size( imagepath, - style.XLARGE_ICON_SIZE * 2, - style.XLARGE_ICON_SIZE * 2) + style.XLARGE_ICON_SIZE * 1.5, + style.XLARGE_ICON_SIZE * 1.5) else: # We don't found the image image = GdkPixbuf.Pixbuf.new_from_file_at_size( 'icons/activities-list.svg', - style.XLARGE_ICON_SIZE * 2, - style.XLARGE_ICON_SIZE * 2) - - grade_buffer.append(['<b>%s</b>' % lesson[1], image, lesson[0]]) + style.XLARGE_ICON_SIZE * 1.5, + style.XLARGE_ICON_SIZE * 1.5) + name = lesson[1] + grade_buffer.append(['<b>%s</b>' % name, image, lesson[0]]) + logger.debug(i[0]) self.buffers[i[0]] = grade_buffer self.combobox.append_item(i[0], i[0]) |