From patchwork Mon Apr 2 15:22:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel,3/4] Hob: remove grab_default() for deploy button Date: Mon, 02 Apr 2012 15:22:39 -0000 From: Shane Wang X-Patchwork-Id: 25083 Message-Id: <9139433c0ccc1c574c96ba6060398fb7343c0f20.1333379931.git.shane.wang@intel.com> To: bitbake-devel@lists.openembedded.org 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. Signed-off-by: Shane Wang --- bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 39ccfdc..1cac6b2 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py @@ -330,7 +330,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