def image_for_type(type, size=48, flags=0): """See mime.image_for_type""" return mime.image_for_type(type, size, flags)
def _set_icon(self, type): pixbuf = mime.image_for_type(type) if pixbuf: self.icon.set_from_pixbuf(pixbuf) else: self.icon.set_from_stock(g.STOCK_MISSING_IMAGE, g.ICON_SIZE_DND)