diff options
-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) |