Adapt the test to API changes

This commit is contained in:
Marco Pesenti Gritti 2007-08-16 15:46:19 +02:00
parent f229899fea
commit 4ad4fe9ec8

View File

@ -35,16 +35,20 @@ class TextToolbar(gtk.Toolbar):
self.insert(button, -1)
button.show()
palette = Palette()
palette = Palette('Title')
button.set_palette(palette)
palette.set_primary_state('This is a palette')
menu_item = gtk.MenuItem('First menu item')
palette.append_menu_item(menu_item)
palette.menu.append(menu_item)
menu_item.show()
menu_item = gtk.MenuItem('Second menu item')
palette.append_menu_item(menu_item)
palette.menu.append(menu_item)
menu_item.show()
menu_item = gtk.MenuItem('Third menu item')
palette.append_menu_item(menu_item)
palette.menu.append(menu_item)
menu_item.show()
class ImageToolbar(gtk.Toolbar):
def __init__(self):