Use Tray also for the frame friends view.

Drop the deprecated IconButton.
This commit is contained in:
Marco Pesenti Gritti
2007-09-03 01:48:03 +02:00
parent 8a2cb49ffb
commit a09a786ff7
9 changed files with 56 additions and 88 deletions
+5 -6
View File
@@ -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()