add comment; improve varname

This commit is contained in:
Nikos Kouremenos 2006-02-26 14:33:15 +00:00
parent b2cde9b6ba
commit a3fd1663d0
1 changed files with 3 additions and 2 deletions

View File

@ -2375,11 +2375,12 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
if os.path.exists(file):
image.set_from_file(file)
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.get_property('height'), 0, 0, 1.0, 1.0,
gtk.gdk.INTERP_HYPER, 255)
image.set_from_pixbuf(pix)
image.set_from_pixbuf(pixbuf1)
break
return imgs