Movie list menu: store the movie source
[cinaest] / src / movie-window.vala
index ecc4e9e..bb92083 100644 (file)
@@ -46,15 +46,15 @@ public class MovieWindow : StackableWindow {
                if (movie.poster != null && movie.poster.large != null) {
                        image.pixbuf = movie.poster.large;
                } else {
-                       if (movie.poster != null && movie.poster.icon != null) {
+                       if (movie.poster != null && movie.poster.small != null) {
                                // FIXME
-                               image.pixbuf = movie.poster.icon.scale_simple (268, 424, Gdk.InterpType.BILINEAR);
+                               image.pixbuf = movie.poster.small.scale_simple (288, 400, Gdk.InterpType.BILINEAR);
                        } else {
                                // FIXME
                                if (no_poster == null) try {
-                                       no_poster = new Gdk.Pixbuf.from_file ("/usr/share/icons/hicolor/64x64/hildon/imageviewer_no_pic.png");
+                                       no_poster = new Gdk.Pixbuf.from_file ("/usr/share/icons/hicolor/64x64/hildon/general_no_thumbnail.png");
                                } catch (Error e) {
-                                       critical ("Missing general_video icon: %s\n", e.message);
+                                       critical ("Missing general_no_thumbnail icon: %s\n", e.message);
                                }
                                image.pixbuf = no_poster;
                        }
@@ -104,7 +104,7 @@ public class MovieWindow : StackableWindow {
                } else {
                        hbox.pack_start (image, false, false, MARGIN_DOUBLE);
                        hbox.reorder_child (image, 0);
-                       plot.set_size_request (800 - 268 /* image */ - 3 * MARGIN_DOUBLE, -1);
+                       plot.set_size_request (800 - 288 /* image */ - 3 * MARGIN_DOUBLE, -1);
                        pannable.set_size_request (-1, 424);
                }
 
@@ -190,7 +190,7 @@ public class MovieWindow : StackableWindow {
                        hbox.pack_start (image, false, false, MARGIN_DOUBLE);
                        hbox.reorder_child (image, 0);
                        pannable.set_size_request (-1, 424);
-                       plot.set_size_request (800 - 268 /* image */ - 3 * MARGIN_DOUBLE, -1);
+                       plot.set_size_request (800 - 288 /* image */ - 3 * MARGIN_DOUBLE, -1);
                }
        }
 }