diff --git a/activity.py b/activity.py
index 2252983..ab091d6 100644
a
|
b
|
from sugar3.activity.widgets import StopButton |
29 | 29 | from sugar3.activity.widgets import ShareButton |
30 | 30 | from sugar3.activity.widgets import DescriptionItem |
31 | 31 | |
| 32 | from sugar3.graphics.icon import EventIcon |
| 33 | from sugar3.graphics.icon import Icon |
| 34 | |
32 | 35 | class HelloWorldActivity(activity.Activity): |
33 | 36 | """HelloWorldActivity class as specified in activity.info""" |
34 | 37 | |
… |
… |
class HelloWorldActivity(activity.Activity): |
58 | 61 | share_button = ShareButton(self) |
59 | 62 | toolbar_box.toolbar.insert(share_button, -1) |
60 | 63 | share_button.show() |
61 | | |
| 64 | |
62 | 65 | separator = Gtk.SeparatorToolItem() |
63 | 66 | separator.props.draw = False |
64 | 67 | separator.set_expand(True) |
… |
… |
class HelloWorldActivity(activity.Activity): |
72 | 75 | self.set_toolbar_box(toolbar_box) |
73 | 76 | toolbar_box.show() |
74 | 77 | |
75 | | # label with the text, make the string translatable |
76 | | label = Gtk.Label(_("Hello World!")) |
77 | | self.set_canvas(label) |
78 | | label.show() |
| 78 | box = Gtk.VBox() |
| 79 | |
| 80 | icon = Icon(icon_name="computer-xo") |
| 81 | icon.props.badge_name = 'emblem-favorite' |
| 82 | box.pack_start(icon, False, False, 0) |
| 83 | icon.show() |
| 84 | |
| 85 | icon = EventIcon(icon_name="computer-xo") |
| 86 | icon.props.badge_name = 'emblem-favorite' |
| 87 | box.pack_start(icon, False, False, 0) |
| 88 | icon.show() |
| 89 | |
| 90 | self.set_canvas(box) |
| 91 | box.show() |