Ejemplo n.º 1
0
def image_for_type(type, size=48, flags=0):
    """See mime.image_for_type"""
    return mime.image_for_type(type, size, flags)
Ejemplo n.º 2
0
def image_for_type(type, size=48, flags=0):
	"""See mime.image_for_type"""
	return mime.image_for_type(type, size, flags)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
	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)