summaryrefslogtreecommitdiffstats
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
parent9e6f220a5420a8ec428c853d53de30c29dd88fe5 (diff)
downloadpoky-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>
-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 df0ebe2328..865933c95a 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -155,6 +155,10 @@ class MainWindow (gtk.Window):
155 def data_generated(self, handler): 155 def data_generated(self, handler):
156 self.generating = False 156 self.generating = False
157 self.image_combo.set_model(self.model.images_model()) 157 self.image_combo.set_model(self.model.images_model())
158 # Without this the image combo is incorrectly sized on first load of the GUI
159 self.image_combo.set_active(0)
160 self.image_combo.set_active(-1)
161
158 if not self.image_combo_id: 162 if not self.image_combo_id:
159 self.image_combo_id = self.image_combo.connect("changed", self.image_changed_cb) 163 self.image_combo_id = self.image_combo.connect("changed", self.image_changed_cb)
160 self.enable_widgets() 164 self.enable_widgets()