prevent TB in cell_renderer_pixbuf. fixes #3544

This commit is contained in:
Yann Leboulanger 2007-11-09 18:08:12 +00:00
parent cbedeb9839
commit b40d8a5fe5
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,8 @@ class CellRendererImage(gtk.GenericCellRenderer):
if self.image.get_storage_type() == gtk.IMAGE_ANIMATION:
if self.image not in self.iters:
if not isinstance(widget, gtk.TreeView):
return
animation = self.image.get_animation()
iter = animation.get_iter()
self.iters[self.image] = iter