From a09a786ff7a2ccc5657ac2708e048a183c90360c Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 02 Sep 2007 23:48:03 +0000 Subject: Use Tray also for the frame friends view. Drop the deprecated IconButton. --- (limited to 'tests') 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() -- cgit v0.9.1