From 6b1e1d1c8b1ffbefedaf6f07d87a6160b76dc1fd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 10 Apr 2006 21:29:50 +0000 Subject: [PATCH] remove useless function. It has moved to dialogs.py. --- src/vcard.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index b416c74c4..7bd1de284 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -157,19 +157,6 @@ class VcardWindow: self.xml.get_widget('PHOTO_image').set_from_pixbuf(None) self.avatar_encoded = None - def update_preview(self, widget): - path_to_file = widget.get_preview_filename() - if path_to_file is None or os.path.isdir(path_to_file): - # nothing to preview or directory - # make sure you clean image do show nothing - widget.get_preview_widget().set_from_file(None) - return - try: - pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(path_to_file, 100, 100) - except gobject.GError: - return - widget.get_preview_widget().set_from_pixbuf(pixbuf) - def on_set_avatar_button_clicked(self, widget): f = None def on_ok(widget, path_to_file):