add comment; improve varname
This commit is contained in:
parent
b2cde9b6ba
commit
a3fd1663d0
|
@ -2375,11 +2375,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
if os.path.exists(file):
|
if os.path.exists(file):
|
||||||
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()
|
# add pixbuf2 on top-left corner of image
|
||||||
|
pixbuf1 = image.get_pixbuf()
|
||||||
pixbuf2.composite(pix, 0, 0, pixbuf2.get_property('width'),
|
pixbuf2.composite(pix, 0, 0, pixbuf2.get_property('width'),
|
||||||
pixbuf2.get_property('height'), 0, 0, 1.0, 1.0,
|
pixbuf2.get_property('height'), 0, 0, 1.0, 1.0,
|
||||||
gtk.gdk.INTERP_HYPER, 255)
|
gtk.gdk.INTERP_HYPER, 255)
|
||||||
image.set_from_pixbuf(pix)
|
image.set_from_pixbuf(pixbuf1)
|
||||||
break
|
break
|
||||||
return imgs
|
return imgs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue