From 9067f7bfc295e2f47fda8031d2bcdcce8f63e894 Mon Sep 17 00:00:00 2001 From: Liming An Date: Mon, 9 Apr 2012 22:13:51 +0800 Subject: Hob:Fixed some incorrect values of Build configuration tab Because some variables not be updated when building started, so add them to the updating function of configuration class, and add reset function of configurate treeview of building detail page [YOCTO #2244] (Bitbake rev: 06ce753fd4680a204ccc63949ace637dc1c115e2) Signed-off-by: Liming An Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/builddetailspage.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/builddetailspage.py') diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py index cd4413b18c..23aaacd891 100755 --- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py @@ -81,16 +81,16 @@ class BuildConfigurationTreeView(gtk.TreeView): # renew the tree model after get the configuration messages self.set_model(listmodel) - def show(self, src_config_info, src_params): + def show(self, src_config_info): vars = [] - vars.append(self.set_vars("BB version:", src_params.bb_version)) - vars.append(self.set_vars("Target arch:", src_params.target_arch)) - vars.append(self.set_vars("Target OS:", src_params.target_os)) + vars.append(self.set_vars("BB version:", src_config_info.bb_version)) + vars.append(self.set_vars("Target arch:", src_config_info.target_arch)) + vars.append(self.set_vars("Target OS:", src_config_info.target_os)) vars.append(self.set_vars("Machine:", src_config_info.curr_mach)) vars.append(self.set_vars("Distro:", src_config_info.curr_distro)) - vars.append(self.set_vars("Distro version:", src_params.distro_version)) + vars.append(self.set_vars("Distro version:", src_config_info.distro_version)) vars.append(self.set_vars("SDK machine:", src_config_info.curr_sdk_machine)) - vars.append(self.set_vars("Tune feature:", src_params.tune_pkgarch)) + vars.append(self.set_vars("Tune feature:", src_config_info.tune_pkgarch)) vars.append(self.set_vars("Layers:", src_config_info.layers)) for path in src_config_info.layers: @@ -105,6 +105,9 @@ class BuildConfigurationTreeView(gtk.TreeView): self.set_config_model(vars) + def reset(self): + self.set_model(None) + # # BuildDetailsPage # @@ -208,6 +211,7 @@ class BuildDetailsPage (HobPage): self.box_group_area.pack_start(self.vbox, expand=True, fill=True) self.progress_bar.reset() + self.config_tv.reset() self.vbox.pack_start(self.progress_box, expand=False, fill=False) self.vbox.pack_start(self.notebook, expand=True, fill=True) @@ -244,5 +248,5 @@ class BuildDetailsPage (HobPage): if (v_adj.upper <= v_adj.page_size) or (v_adj.value == v_adj.upper - v_adj.page_size): treeview.scroll_to_cell(path) - def show_configurations(self, configurations, params): - self.config_tv.show(configurations, params) + def show_configurations(self, configurations): + self.config_tv.show(configurations) -- cgit v1.2.3-54-g00ecf