we always scale avatar image to 100x100

This commit is contained in:
Nikos Kouremenos 2005-09-05 12:26:05 +00:00
parent 217318a3b1
commit 4523a1f4b3
1 changed files with 2 additions and 1 deletions

View File

@ -120,7 +120,8 @@ class VcardWindow:
def update_preview(self, widget):
path_to_file = widget.get_preview_filename()
widget.get_preview_widget().set_from_file(path_to_file)
pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(path_to_file, 100, 100)
widget.get_preview_widget().set_from_pixbuf(pixbuf)
def on_set_avatar_button_clicked(self, widget):
f = None