summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/hob.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-07-19 16:06:32 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-26 20:15:48 +0100
commit20101e9544fe596577bd4b407404feab65bc7767 (patch)
tree58de973d7467dd7a89350a8f34b026d4fef0dac2 /bitbake/lib/bb/ui/hob.py
parent9e6f220a5420a8ec428c853d53de30c29dd88fe5 (diff)
downloadast2050-yocto-poky-20101e9544fe596577bd4b407404feab65bc7767.zip
ast2050-yocto-poky-20101e9544fe596577bd4b407404feab65bc7767.tar.gz
ui/hob: Force the 'Base image combo' to be drawn correctly
As the combo is created before its backing model it's common for the combo to be drawn at its minimum size and then grow the first time the user activates it. This slight ugly patch forces the combo to be resized as soon as the model is associated so that by the time the user interacts with the widget it is less likely to change size. (Bitbake rev: 65819447ccc96ae2af8d42cf3a31769ef3d2d26e) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/hob.py')
-rw-r--r--bitbake/lib/bb/ui/hob.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index df0ebe2..865933c 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -155,6 +155,10 @@ class MainWindow (gtk.Window):
def data_generated(self, handler):
self.generating = False
self.image_combo.set_model(self.model.images_model())
+ # Without this the image combo is incorrectly sized on first load of the GUI
+ self.image_combo.set_active(0)
+ self.image_combo.set_active(-1)
+
if not self.image_combo_id:
self.image_combo_id = self.image_combo.connect("changed", self.image_changed_cb)
self.enable_widgets()
OpenPOWER on IntegriCloud