summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Wang <shane.wang@intel.com>2012-04-02 23:22:39 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-05 14:00:27 +0100
commit3d594b7749e12804d038c9b2aa633d3439a04328 (patch)
tree427ae94fe6fe74b83abaf4d17cf6638e6a9a68af
parent17db3877d139b7c2d4b9a095fa1c82963bc4ff7c (diff)
downloadpoky-3d594b7749e12804d038c9b2aa633d3439a04328.tar.gz
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>
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py1
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 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):
327 self.deploy_button.set_size_request(205, 49) 327 self.deploy_button.set_size_request(205, 49)
328 self.deploy_button.set_tooltip_text("Deploy image to get your target board") 328 self.deploy_button.set_tooltip_text("Deploy image to get your target board")
329 self.deploy_button.set_flags(gtk.CAN_DEFAULT) 329 self.deploy_button.set_flags(gtk.CAN_DEFAULT)
330 self.deploy_button.grab_default()
331 self.deploy_button.connect("clicked", self.deploy_button_clicked_cb) 330 self.deploy_button.connect("clicked", self.deploy_button_clicked_cb)
332 bottom_buttons.pack_end(self.deploy_button, expand=False, fill=False) 331 bottom_buttons.pack_end(self.deploy_button, expand=False, fill=False)
333 created = True 332 created = True