diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-07-30 16:20:10 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-07-30 16:20:10 (GMT) |
commit | 7ca9574ca1232dd4f884befd33af02404592a036 (patch) | |
tree | e48d11cfe69ea48508c18602cc7319503070adc6 /examples | |
parent | b69d87520146291208c5e4e327f7b67cad46df1f (diff) |
Rename ToolbarBox.top to ToolbarBox.bar
Diffstat (limited to 'examples')
-rw-r--r-- | examples/toolbar.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/toolbar.py b/examples/toolbar.py index 6a6c143..8dde7a1 100644 --- a/examples/toolbar.py +++ b/examples/toolbar.py @@ -15,24 +15,24 @@ box.pack_start(toolbar, False) tollbarbutton_1 = ToolbarButton( page=gtk.Button('sub-widget #1'), icon_name='computer-xo') -toolbar.top.insert(tollbarbutton_1, -1) +toolbar.bar.insert(tollbarbutton_1, -1) tollbarbutton_2 = ToolbarButton( page=gtk.Button('sub-widget #2'), icon_name='button_cancel', tooltip='with custom palette instead of sub-widget') -toolbar.top.insert(tollbarbutton_2, -1) +toolbar.bar.insert(tollbarbutton_2, -1) -toolbar.top.insert(gtk.SeparatorToolItem(), -1) +toolbar.bar.insert(gtk.SeparatorToolItem(), -1) def del_cb(widget): - toolbar.top.remove(tollbarbutton_3) + toolbar.bar.remove(tollbarbutton_3) del_b = gtk.Button('delete sub-widget #3') del_b.connect('clicked', del_cb) tollbarbutton_3 = ToolbarButton( page=del_b, icon_name='activity-journal') -toolbar.top.insert(tollbarbutton_3, -1) +toolbar.bar.insert(tollbarbutton_3, -1) subbar = gtk.Toolbar() subbutton = ToolButton( @@ -44,7 +44,7 @@ subbar.show_all() tollbarbutton_4 = ToolbarButton( page=subbar, icon_name='document-save') -toolbar.top.insert(tollbarbutton_4, -1) +toolbar.bar.insert(tollbarbutton_4, -1) print [i.props.page for i in toolbar.subs] |