Skip to content
Snippets Groups Projects
Commit 6b1e1d1c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

remove useless function. It has moved to dialogs.py.

parent e20824e6
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment