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 <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Shane Wang 2012-04-02 23:22:39 +08:00 committed by Richard Purdie
parent 17db3877d1
commit 3d594b7749
1 changed files with 0 additions and 1 deletions

View File

@ -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