keep 2.6.x compat [for how long.. :P]
This commit is contained in:
parent
e751343173
commit
8b7c67414c
|
@ -2313,9 +2313,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
image.set_from_file(file)
|
image.set_from_file(file)
|
||||||
if pixbuf2 and image.get_storage_type() == gtk.IMAGE_PIXBUF:
|
if pixbuf2 and image.get_storage_type() == gtk.IMAGE_PIXBUF:
|
||||||
pix = image.get_pixbuf()
|
pix = image.get_pixbuf()
|
||||||
pixbuf2.composite(pix, 0, 0, pixbuf2.props.width,
|
pixbuf2.composite(pix, 0, 0, pixbuf2.get_property('width'),
|
||||||
pixbuf2.props.height, 0, 0, 1.0, 1.0, gtk.gdk.INTERP_HYPER,
|
pixbuf2.get_property('height'), 0, 0, 1.0, 1.0,
|
||||||
255)
|
gtk.gdk.INTERP_HYPER, 255)
|
||||||
image.set_from_pixbuf(pix)
|
image.set_from_pixbuf(pix)
|
||||||
break
|
break
|
||||||
return imgs
|
return imgs
|
||||||
|
|
Loading…
Reference in New Issue