From patchwork Tue Mar 20 00:18:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 3/6] ui/crumbs/hobpage: no need to force a Toolbar button type Date: Tue, 20 Mar 2012 00:18:03 -0000 From: Joshua Lock X-Patchwork-Id: 23831 Message-Id: <99b9fe836c07c12a36a9944331f89bbba4d46280.1332202341.git.josh@linux.intel.com> To: bitbake-devel@lists.openembedded.org This uses a more concise API that will be more flexible whent he Toolbar style is updated to match the visual design. Signed-off-by: Joshua Lock Acked-by: Dongxiao Xu --- lib/bb/ui/crumbs/hobpages.py | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/lib/bb/ui/crumbs/hobpages.py b/lib/bb/ui/crumbs/hobpages.py index 8137c0d..baf250b 100755 --- a/lib/bb/ui/crumbs/hobpages.py +++ b/lib/bb/ui/crumbs/hobpages.py @@ -81,7 +81,5 @@ class HobPage (gtk.VBox): pix_buffer = gtk.gdk.pixbuf_new_from_file(icon_display) icon.set_from_pixbuf(pix_buffer) tip_text = tip - button = toolbar.append_element(gtk.TOOLBAR_CHILD_RADIOBUTTON, None, - buttonname, tip_text, "Private text", icon, - cb, None) + button = toolbar.append_item(buttonname, tip, None, icon, cb) return button