Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/graphics/tray.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/graphics/tray.py b/tests/graphics/tray.py
index 4de9b46..f589f4e 100644
--- a/tests/graphics/tray.py
+++ b/tests/graphics/tray.py
@@ -21,9 +21,8 @@ Test the sugar.graphics.icon.Icon widget.
import gtk
-from sugar.graphics.tray import HTray
-from sugar.graphics.tray import VTray
-from sugar.graphics.tray import TrayButton
+from sugar.graphics.tray import HTray, VTray
+from sugar.graphics.tray import TrayButton, TrayIcon
import common
@@ -47,9 +46,9 @@ vbox.pack_start(tray, False)
tray.show()
for i in range(0, 10):
- button = TrayButton(icon_name=theme_icons[i])
- tray.add_item(button)
- button.show()
+ icon = TrayIcon(icon_name=theme_icons[i])
+ tray.add_item(icon)
+ icon.show()
hbox = gtk.HBox()