From a3fd1663d05dd8e62b1bda1f50bc58364d593fc8 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sun, 26 Feb 2006 14:33:15 +0000 Subject: [PATCH] add comment; improve varname --- src/roster_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 2bd43548e..830dbcd24 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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