hob: Error reports are done in a clearer way
PATCH 1/1 hob: Error reports are done in a clearer way
For long errors (bigger than 200 letters), the text box is scrollable and resizable and text is selectable.
Additionaly, all message dialogs are modal. Otherwise, a user could still interact with hob even in an error case, leading to potential problems.
See design details in related bugs.
Fixes [YOCTO #2960], [YOCTO #2983]
--- bitbake/lib/bb/ui/crumbs/builder.py | 5 ++- bitbake/lib/bb/ui/crumbs/hig.py | 59 ++++++++++++++++++++++++++--------- 2 files changed, 46 insertions(+), 18 deletions(-)
bitbake/lib/bb/ui/crumbs/builder.py +2 -3
@@ -849,9 +849,8 @@ class Builder(gtk.Window): self.generate_image_async(True) def show_error_dialog(self, msg): - lbl = "<b>Error</b>\n" - lbl = lbl + "%s\n\n" % glib.markup_escape_text(msg) - dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_ERROR) + lbl = "<b>Hob found an error</b>\n" + dialog = CrumbsMessageDialog(self, lbl, gtk.STOCK_DIALOG_ERROR, msg) button = dialog.add_button("Close", gtk.RESPONSE_OK) HobButton.style_button(button) response = dialog.run()
bitbake/lib/bb/ui/crumbs/hig.py +44 -15
83 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Richard Purdie
AppliedQuoted 10 lines · Cristian Iorga
For long errors (bigger than 200 letters), the text box is scrollable and resizable and text is selectable.
Additionaly, all message dialogs are modal. Otherwise, a user could still interact with hob even in an error case, leading to potential problems.
See design details in related bugs.
Quoted 7 lines
Fixes [YOCTO #2960], [YOCTO #2983]
Signed-off-by Cristian Iorga <[email protected]>--- bitbake/lib/bb/ui/crumbs/builder.py | 5 ++- bitbake/lib/bb/ui/crumbs/hig.py | 59 ++++++++++++++++++++++++++--------- 2 files changed, 46 insertions(+), 18 deletions(-)
Merged to master, thanks.
Richard