impconverter: add icon data getters

Raw icon data is needed to set it on X11 windows.

QubesOS/qubes-issues#967
This commit is contained in:
Marek Marczykowski-Górecki 2015-09-20 04:47:38 +02:00
parent 8d5157a8ab
commit b853318baf

View File

@ -70,6 +70,18 @@ get_from_stream(), get_from_vm(), get_xdg_icon_from_vm(), get_through_dvm()'''
if p.wait():
raise Exception('Conversion failed')
@property
def data(self):
return self._rgba
@property
def width(self):
return self._size[0]
@property
def height(self):
return self._size[1]
def tint(self, colour):
'''Return new tinted image'''