[gthumb] grid view: center the video thumbnail
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] grid view: center the video thumbnail
- Date: Wed, 13 Nov 2013 20:08:59 +0000 (UTC)
commit 8b595fe0e7ef54aaedaf7d5a51165ad88b83f002
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Nov 13 21:06:24 2013 +0100
grid view: center the video thumbnail
gthumb/gth-grid-view.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index f46b9af..650a371 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -711,9 +711,6 @@ _gth_grid_view_place_item_at (GthGridView *self,
switch (item->style) {
case ITEM_STYLE_VIDEO:
- item->thumbnail_area.x = item->area.x + self->priv->cell_padding +
self->priv->thumbnail_border;
- item->thumbnail_area.y = item->area.y + self->priv->cell_padding +
self->priv->thumbnail_border;
- break;
case ITEM_STYLE_IMAGE:
item->thumbnail_area.x = item->area.x + ((self->priv->cell_size - item->thumbnail_area.width)
/ 2);
if (self->priv->no_caption)
@@ -1596,7 +1593,7 @@ _gth_grid_view_draw_item (GthGridView *self,
_gdk_rgba_lighter (&color, &color);
cairo_set_source_rgba (cr, color.red, color.green, color.blue, color.alpha);
- if (item->style == ITEM_STYLE_IMAGE) {
+ if (item->style != ITEM_STYLE_ICON) {
cairo_region_t *area;
cairo_rectangle_int_t extents;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]