From accd46c65f7eb51b96adb495efe9bcdbaacd4948 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Fri, 15 Jul 2011 18:06:41 -0700 Subject: [PATCH] ui/hob: add more guidance to the stop dialog This patch adds explanation of the different options when asking the user to choose between Stop and Force Stop so they can make an informed choice. Fixes [YOCTO #1223] (Bitbake rev: afb87a809962b756f8282c9e9fdf9b15cdb9192b) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/hob.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index 06d936e71b..aed7eacbaa 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py @@ -650,7 +650,14 @@ class MainWindow (gtk.Window): return vbox def cancel_build(self, button): - lbl = "Stop build?\n\nAre you sure you want to stop this build?" + lbl = "Stop build?\n\nAre you sure you want to stop this build?\n" + lbl = lbl + "'Force Stop' will stop the build as quickly as" + lbl = lbl + " possible but may well leave your build directory in an" + lbl = lbl + " unusable state that requires manual steps to fix.\n" + lbl = lbl + "'Stop' will stop the build as soon as all in" + lbl = lbl + " progress build tasks are finished. However if a" + lbl = lbl + " lengthy compilation phase is in progress this may take" + lbl = lbl + " some time." dialog = CrumbsDialog(self, lbl, gtk.STOCK_DIALOG_WARNING) dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL) dialog.add_button("Stop", gtk.RESPONSE_OK)