summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobwidget.py
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-04-09 22:13:33 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:44 +0100
commite1d463eb3931014427a1d108944eaa55f21880c0 (patch)
tree3204c9042ee2822db9a02bcf73967ff433558808 /bitbake/lib/bb/ui/crumbs/hobwidget.py
parenta46aafb8b27bd86d046385a569deee6b4c9b8bb6 (diff)
downloadpoky-e1d463eb3931014427a1d108944eaa55f21880c0.tar.gz
Hob: add fadeout display effection for package view include page
[YOCTO #2100] (Bitbake rev: c0c81647dc5e72fe3abb1fb3b65a978aa4b226a5) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobwidget.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py6
1 files changed, 5 insertions, 1 deletions
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):
1072 if (not self.ctrl) or (not widget): 1072 if (not self.ctrl) or (not widget):
1073 return 1073 return
1074 if self.ctrl.is_active(): 1074 if self.ctrl.is_active():
1075 path = widget.get_path_at_pos(cell_area.x + cell_area.width/2, cell_area.y + cell_area.height/2)[0] 1075 path = widget.get_path_at_pos(cell_area.x + cell_area.width/2, cell_area.y + cell_area.height/2)
1076 # sometimes the parameters of cell_area will be a negative number,such as pull up down the scroll bar
1077 # it's over the tree container range, so the path will be bad
1078 if not path: return
1079 path = path[0]
1076 if path in self.ctrl.running_cell_areas: 1080 if path in self.ctrl.running_cell_areas:
1077 cr = window.cairo_create() 1081 cr = window.cairo_create()
1078 color = gtk.gdk.Color(HobColors.WHITE) 1082 color = gtk.gdk.Color(HobColors.WHITE)