diff --git a/README.markdown b/README.markdown index 7dcdbae..1ad1ade 100644 --- a/README.markdown +++ b/README.markdown @@ -36,4 +36,5 @@ If things get really mucked up, deleting ~/.hrafn.db will reset the application ### Notes -The system tray icon is Public Domain from: http://commons.wikimedia.org/wiki/File:Capi_x_Raven.svg +The system tray icon is Public Domain from http://commons.wikimedia.org/wiki/File:Capi_x_Raven.svg +The question mark icon is Public Domain from http://commons.wikimedia.org/wiki/File:Question_mark.svg diff --git a/ui/question_mark.svg b/ui/question_mark.svg new file mode 100644 index 0000000..1af8d2a --- /dev/null +++ b/ui/question_mark.svg @@ -0,0 +1,3 @@ + +? + \ No newline at end of file diff --git a/usercache.py b/usercache.py index d48b1e0..64653e5 100644 --- a/usercache.py +++ b/usercache.py @@ -99,6 +99,11 @@ def add_to_av_cache(user): loader.write(str(data)) image = loader.get_pixbuf() loader.close() + + if image is None: + image = gtk.gdk.pixbuf_new_from_file('ui/question_mark.svg') + image = image.scale_simple(48, 48, gtk.gdk.INTERP_BILINEAR) + with AvCache().lock: AvCache().map[user.screen_name] = image except (URLError, ValueError):