- if ((movie.poster != null) && (movie.poster.thumbnail != null))
- value.set_object (movie.poster.thumbnail);
- else
+ if ((movie.poster != null) && (movie.poster.small != null)) {
+ value.set_object (movie.poster.small);
+ } else {
+ // FIXME
+ if (no_poster == null) try {
+ // var no_pic = new Gdk.Pixbuf.from_file ("/usr/share/icons/hicolor/64x64/hildon/imageviewer_no_pic.png");
+ var no_pic = new Gdk.Pixbuf.from_file ("/usr/share/icons/hicolor/64x64/hildon/general_no_thumbnail.png");
+ no_poster = new Gdk.Pixbuf (Gdk.Colorspace.RGB, true, 8, Poster.SMALL_WIDTH, Poster.SMALL_HEIGHT);
+ no_poster.fill (0);
+ no_pic.copy_area (0, 0, no_pic.width, no_pic.height, no_poster,
+ (Poster.SMALL_WIDTH - no_pic.width) / 2, (Poster.SMALL_HEIGHT - no_pic.height) / 2);
+ } catch (Error e) {
+ critical ("Missing general_video icon: %s\n", e.message);
+ }