From e1d463eb3931014427a1d108944eaa55f21880c0 Mon Sep 17 00:00:00 2001 From: Liming An Date: Mon, 9 Apr 2012 22:13:33 +0800 Subject: Hob: add fadeout display effection for package view include page [YOCTO #2100] (Bitbake rev: c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5) Signed-off-by: Liming An Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobwidget.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py') diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py index c6e3bb1ae6..8c8bf9bc77 100644 --- a/bitbake/lib/bb/ui/crumbs/hobwidget.py +++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py @@ -1072,7 +1072,11 @@ class HobCellRendererToggle(gtk.CellRendererToggle): if (not self.ctrl) or (not widget): return if self.ctrl.is_active(): - path = widget.get_path_at_pos(cell_area.x + cell_area.width/2, cell_area.y + cell_area.height/2)[0] + path = widget.get_path_at_pos(cell_area.x + cell_area.width/2, cell_area.y + cell_area.height/2) + # sometimes the parameters of cell_area will be a negative number,such as pull up down the scroll bar + # it's over the tree container range, so the path will be bad + if not path: return + path = path[0] if path in self.ctrl.running_cell_areas: cr = window.cairo_create() color = gtk.gdk.Color(HobColors.WHITE) -- cgit v1.2.3-54-g00ecf