bitbake: hob: Improved behavior for error reporting window
authorCristian Iorga <cristian.iorga@intel.com>
Tue, 2 Oct 2012 14:44:55 +0000 (17:44 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Oct 2012 15:48:33 +0000 (16:48 +0100)
Scrollbars have now an automatic behavior, depending on
the error's text size and error window size.

Fixes [YOCTO #2983]

(Bitbake rev: 0c0a25672498520fb2c46164f08959dda83c61e0)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/hig.py

index c5307df..c7a50ba 100644 (file)
@@ -280,6 +280,7 @@ class CrumbsMessageDialog(CrumbsDialog):
             self.label_long.show()
             self.textWindow = gtk.ScrolledWindow()
             self.textWindow.set_shadow_type(gtk.SHADOW_IN)
+            self.textWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
             self.msgView = gtk.TextView()
             self.msgView.set_editable(False)
             self.msgView.set_wrap_mode(gtk.WRAP_WORD)