Patchwork [bitbake-devel] hob: Improved behavior for error reporting window

login
register
mail settings
Submitter Cristian Iorga
Date Oct. 2, 2012, 2:44 p.m.
Message ID <1349189095-24862-1-git-send-email-cristian.iorga@intel.com>
Download mbox | patch
Permalink /patch/37613/
State New
Headers show

Comments

Cristian Iorga - Oct. 2, 2012, 2:44 p.m.
Scrollbars have now an automatic behavior, depending on
the error's text size and error window size.

Fixes [YOCTO #2983]

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hig.py |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index c5307df..c7a50ba 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -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)