From 5d2c5b98fff34eed18f7aede574fe2eeea8cd664 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Mon, 13 Jul 2009 02:58:49 +0000 Subject: Do not hide sub-widget when sub-palette was opened --- (limited to 'examples') diff --git a/examples/toolbar.py b/examples/toolbar.py index ad07f37..66c09f0 100644 --- a/examples/toolbar.py +++ b/examples/toolbar.py @@ -1,5 +1,6 @@ import gtk +from sugar.graphics.toolbutton import ToolButton from sugar.graphics.toolbar import Toolbar, ToolbarButton from sugar.graphics import style @@ -33,5 +34,17 @@ tollbarbutton_3 = ToolbarButton( icon_name='activity-journal') toolbar.top.insert(tollbarbutton_3, -1) +subbar = gtk.Toolbar() +subbutton = ToolButton( + icon_name='document-send', + tooltip='document-send') +subbar.insert(subbutton, -1) +subbar.show_all() + +tollbarbutton_4 = ToolbarButton( + page=subbar, + icon_name='document-save') +toolbar.top.insert(tollbarbutton_4, -1) + window.show_all() gtk.main() -- cgit v0.9.1