diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2012-09-05 10:50:33 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-07 12:10:43 +0100 |
commit | e2b0eaef938eb11db44db3e3dfc182ffd4bba186 (patch) | |
tree | 041fc9535353a794c01c4082323f25adaab3e0e2 /bitbake/lib/bb | |
parent | ed17f44da649ba098651fb3f37d6e6286b6fa99e (diff) | |
download | poky-e2b0eaef938eb11db44db3e3dfc182ffd4bba186.tar.gz |
bitbake: hob: The 'run image' and 'deploy image' dialogs text and alignment corrections
-changed the text shown by both dialogs text
-make small tweaks to alignment
[YOCTO #2999]
(Bitbake rev: b193db13472908b8ec6c670da96ff3b0004e635b)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 1c4c597fc4..cb3ca86332 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
@@ -389,7 +389,13 @@ class ImageDetailsPage (HobPage): | |||
389 | label = gtk.Label() | 389 | label = gtk.Label() |
390 | label.set_use_markup(True) | 390 | label.set_use_markup(True) |
391 | label.set_alignment(0.0, 0.5) | 391 | label.set_alignment(0.0, 0.5) |
392 | label.set_markup("<span font_desc='12'>Select the image file you want to %s</span>" % primary_action) | 392 | label.set_padding(12,0) |
393 | if primary_action == "Run image": | ||
394 | label.set_markup("<span font_desc='12'>Select the image file you want to run:</span>") | ||
395 | elif primary_action == "Deploy image": | ||
396 | label.set_markup("<span font_desc='12'>Select the image file you want to deploy:</span>") | ||
397 | else: | ||
398 | label.set_markup("<span font_desc='12'>Select the image file you want to %s</span>" % primary_action) | ||
393 | dialog.vbox.pack_start(label, expand=False, fill=False) | 399 | dialog.vbox.pack_start(label, expand=False, fill=False) |
394 | 400 | ||
395 | # filter created images as action attribution (deploy or run) | 401 | # filter created images as action attribution (deploy or run) |
@@ -418,12 +424,12 @@ class ImageDetailsPage (HobPage): | |||
418 | sel_btn.set_active(fileitem['is_toggled']) | 424 | sel_btn.set_active(fileitem['is_toggled']) |
419 | sel_btn.connect('toggled', self.table_selected_cb, fileitem) | 425 | sel_btn.connect('toggled', self.table_selected_cb, fileitem) |
420 | if curr_row < 10: | 426 | if curr_row < 10: |
421 | table.attach(sel_btn, 2, 5, curr_row, curr_row + 1) | 427 | table.attach(sel_btn, 0, 4, curr_row, curr_row + 1, xpadding=24) |
422 | else: | 428 | else: |
423 | table.attach(sel_btn, 7, 10, curr_row - 10, curr_row - 9) | 429 | table.attach(sel_btn, 5, 9, curr_row - 10, curr_row - 9, xpadding=24) |
424 | curr_row += 1 | 430 | curr_row += 1 |
425 | 431 | ||
426 | dialog.vbox.pack_start(table, expand=False, fill=False, padding = 6) | 432 | dialog.vbox.pack_start(table, expand=False, fill=False, padding=6) |
427 | 433 | ||
428 | button = dialog.add_button("Cancel", gtk.RESPONSE_CANCEL) | 434 | button = dialog.add_button("Cancel", gtk.RESPONSE_CANCEL) |
429 | HobAltButton.style_button(button) | 435 | HobAltButton.style_button(button) |