From patchwork Fri Mar 30 12:01:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 7/7] Hob: Set stop button sensitive after task started Date: Fri, 30 Mar 2012 12:01:19 -0000 From: Dongxiao Xu X-Patchwork-Id: 24939 Message-Id: <5c76a9d3a0087339045bab14794c7fb6eabfebfb.1333108781.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org Signed-off-by: Dongxiao Xu --- lib/bb/ui/crumbs/builddetailspage.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/bb/ui/crumbs/builddetailspage.py b/lib/bb/ui/crumbs/builddetailspage.py index 1440039..84ab72a 100755 --- a/lib/bb/ui/crumbs/builddetailspage.py +++ b/lib/bb/ui/crumbs/builddetailspage.py @@ -133,6 +133,7 @@ class BuildDetailsPage (HobPage): self.progress_hbox.pack_start(self.progress_bar, expand=True, fill=True) self.stop_button = HobAltButton("Stop") self.stop_button.connect("clicked", self.stop_button_clicked_cb) + self.stop_button.set_sensitive(False) self.progress_hbox.pack_end(self.stop_button, expand=False, fill=False) self.notebook = HobNotebook() @@ -169,6 +170,7 @@ class BuildDetailsPage (HobPage): recipe = os.path.basename(recipe_path).rstrip(".bb") tsk_msg = "Running task %s of %s: %s\nRecipe: %s" % (current, total, recipe_task, recipe) self.task_status.set_markup(tsk_msg) + self.stop_button.set_sensitive(True) def reset_build_status(self): self.task_status.set_markup("\n") # to ensure layout is correct