aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-03-30 17:12:42 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-30 17:20:21 +0100
commit525275dcfdc1549e26e5390c0d61111fba31a2ba (patch)
treef8737528372c5ff117dd98e30fe7148a6cfd8bab /bitbake
parent984c23f7d7d18464a060aa66be7c02abb8266a08 (diff)
downloadopenembedded-core-contrib-525275dcfdc1549e26e5390c0d61111fba31a2ba.tar.gz
Hob: In building log page, fixed the issue about 'endpath' not clear when next to start build
Fixed the issue about the building log scrollbar can not auto scroll to page end sometimes [YOCTO #2098] (Bitbake rev: 035e146ff92236a3eda71ad71e8389737f91753b) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builddetailspage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 1440039c3e..aee258a6fc 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -172,6 +172,7 @@ class BuildDetailsPage (HobPage):
def reset_build_status(self):
self.task_status.set_markup("\n") # to ensure layout is correct
+ self.endpath = (0,)
def show_issues(self):
self.num_of_issues += 1
@@ -234,7 +235,8 @@ class BuildDetailsPage (HobPage):
if treeview and v_adj:
if path[0] > self.endpath[0]: # check the event is a new row append or not
self.endpath = path
- if v_adj.value == (v_adj.upper - v_adj.page_size): # check the gtk.adjustment position is at end boundary or not
+ # check the gtk.adjustment position is at end boundary or not
+ 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):