[knuckles] fix typo. Fixes #1246

This commit is contained in:
Yann Leboulanger 2006-01-18 16:14:20 +00:00
parent b22bf5b404
commit 3eaa9c97ba
1 changed files with 2 additions and 2 deletions

View File

@ -851,12 +851,12 @@ class Interface:
else: else:
gajim.log.debug('gtkpixbuf cannot save other than jpeg and png formats. skipping avatar of %s' % jid) gajim.log.debug('gtkpixbuf cannot save other than jpeg and png formats. skipping avatar of %s' % jid)
# Generate and save the resized, color avatar # Generate and save the resized, color avatar
path_to_normal_file = path_to_file + '_notf_size_colored.png' path_to_normal_file = path_to_file + '_notif_size_colored.png'
pixbuf = gtkgui_helpers.get_scaled_pixbuf( pixbuf = gtkgui_helpers.get_scaled_pixbuf(
gtkgui_helpers.get_pixbuf_from_data(photo_decoded), 'notification') gtkgui_helpers.get_pixbuf_from_data(photo_decoded), 'notification')
pixbuf.save(path_to_normal_file, 'png') pixbuf.save(path_to_normal_file, 'png')
# Generate and save the resized, black and white avatar # Generate and save the resized, black and white avatar
path_to_bw_file = path_to_file + '_notf_size_bw.png' path_to_bw_file = path_to_file + '_notif_size_bw.png'
bwbuf = gtkgui_helpers.get_scaled_pixbuf( bwbuf = gtkgui_helpers.get_scaled_pixbuf(
gtkgui_helpers.make_pixbuf_grayscale(pixbuf), 'notification') gtkgui_helpers.make_pixbuf_grayscale(pixbuf), 'notification')
bwbuf.save(path_to_bw_file, 'png') bwbuf.save(path_to_bw_file, 'png')