[gthumb] draw the film strip over the video thumbnail



commit 4c9e33204c79a1556f157a20fbf3996862705a0c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Apr 13 17:09:21 2014 +0200

    draw the film strip over the video thumbnail
    
    to adapt to the new video thumnailer that doesn't draw the film
    strip by itself.

 gthumb/gth-grid-view.c |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 3dc4c44..8c758a7 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -1391,12 +1391,6 @@ _gth_grid_view_item_draw_thumbnail (GthGridViewItem *item,
        }
 
        if (item->style == ITEM_STYLE_VIDEO) {
-               cairo_pattern_t *pattern;
-               double           x;
-               double           film_scale;
-               cairo_matrix_t   matrix;
-               double           film_strip;
-
                frame_rect = item->thumbnail_area;
 
                /* the drop shadow */
@@ -1418,6 +1412,20 @@ _gth_grid_view_item_draw_thumbnail (GthGridViewItem *item,
                                 frame_rect.width,
                                 frame_rect.height);
                cairo_fill (cr);
+       }
+
+       /* thumbnail */
+
+       cairo_set_source_surface (cr, image, item->pixbuf_area.x, item->pixbuf_area.y);
+       cairo_rectangle (cr, item->pixbuf_area.x, item->pixbuf_area.y, item->pixbuf_area.width, 
item->pixbuf_area.height);
+       cairo_fill (cr);
+
+       if (item->style == ITEM_STYLE_VIDEO) {
+               cairo_pattern_t *pattern;
+               double           x;
+               double           film_scale;
+               cairo_matrix_t   matrix;
+               double           film_strip;
 
                /* left film strip */
 
@@ -1460,12 +1468,6 @@ _gth_grid_view_item_draw_thumbnail (GthGridViewItem *item,
                cairo_pattern_destroy (pattern);
        }
 
-       /* thumbnail */
-
-       cairo_set_source_surface (cr, image, item->pixbuf_area.x, item->pixbuf_area.y);
-       cairo_rectangle (cr, item->pixbuf_area.x, item->pixbuf_area.y, item->pixbuf_area.width, 
item->pixbuf_area.height);
-       cairo_fill (cr);
-
        if (item_state & GTK_STATE_FLAG_SELECTED) {
                GdkRGBA color;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]