From 3d594b7749e12804d038c9b2aa633d3439a04328 Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Mon, 2 Apr 2012 23:22:39 +0800 Subject: Hob: remove grab_default() for deploy button When the deploy button is disabled since there is no deployable image, the console will show the warning message: WARNING: /home/yocto-build5/poky-contrib/bitbake/lib/bb/ui/crumbs/imagedetailspage.py:333: GtkWarning: /build/buildd/gtk+2.0-2.22.0/gtk/gtkwidget.c:5684: widget not within a GtkWindow self.deploy_button.grab_default() This patch is to remove the warning message. (Bitbake rev: 51a9a5557bb798b559874a4e6dc9924380b5d9a4) Signed-off-by: Shane Wang Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index b12014a3c8..5a6324d2a4 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py @@ -327,7 +327,6 @@ class ImageDetailsPage (HobPage): self.deploy_button.set_size_request(205, 49) self.deploy_button.set_tooltip_text("Deploy image to get your target board") self.deploy_button.set_flags(gtk.CAN_DEFAULT) - self.deploy_button.grab_default() self.deploy_button.connect("clicked", self.deploy_button_clicked_cb) bottom_buttons.pack_end(self.deploy_button, expand=False, fill=False) created = True -- cgit v1.2.3-54-g00ecf