diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-19 16:53:55 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-04-19 16:53:55 (GMT) |
commit | cb997a5264bd78db73c558595126c89215718537 (patch) | |
tree | 3f54ea6649c282e34d42d848c51968ac067b93c4 | |
parent | d223579f22c4327eec367b0362cc18f214137e76 (diff) |
More work on the new toolbars
-rw-r--r-- | data/gtkrc | 1 | ||||
-rwxr-xr-x | tests/test-ui.py | 18 |
2 files changed, 19 insertions, 0 deletions
@@ -4,3 +4,4 @@ gtk-font-name = "Bitstream Vera Sans 7" gtk-icon-sizes = "gtk-menu=32,32:gtk-button=32,32" gtk-cursor-theme-name = "olpc" gtk-cursor-theme-size = 48 +gtk-toolbar-style = GTK_TOOLBAR_ICONS diff --git a/tests/test-ui.py b/tests/test-ui.py index 6c1f667..ad324cc 100755 --- a/tests/test-ui.py +++ b/tests/test-ui.py @@ -18,11 +18,29 @@ import gtk + +class Toolbar(gtk.Toolbar): + def __init__(self): + gtk.Toolbar.__init__(self) + + icon = gtk.ToolButton() + icon.set_icon_name('text-format-bold') + self.insert(icon, -1) + icon.show() + class Window(gtk.Window): def __init__(self): gtk.Window.__init__(self) self.set_default_size(800, 600) + box = gtk.VBox() + self.add(box) + box.show() + + toolbar = Toolbar() + box.pack_start(toolbar, False) + toolbar.show() + window = Window() window.connect("destroy", lambda w: gtk.main_quit()) window.show() |