[gthumb] grid view: make the emblems more visible using a white background
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] grid view: make the emblems more visible using a white background
- Date: Tue, 4 Jul 2017 16:00:36 +0000 (UTC)
commit 425e179e8e23a59cc51d7bf9e1881a2c33f5eda3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Jul 1 19:30:41 2017 +0200
grid view: make the emblems more visible using a white background
gthumb/gth-grid-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 828afa1..15e0c08 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -1558,17 +1558,19 @@ _gth_grid_view_item_draw_emblems (GthGridViewItem *item,
icon = g_themed_icon_new (emblem);
image = gth_icon_cache_get_surface (grid_view->priv->icon_cache, icon);
if (image != NULL) {
- cairo_set_source_surface (cr, image, item->thumbnail_area.x + emblem_offset + 1,
item->thumbnail_area.y + 1);
cairo_rectangle (cr,
item->thumbnail_area.x + emblem_offset + 1,
item->thumbnail_area.y + 1,
cairo_image_surface_get_width (image),
cairo_image_surface_get_height (image));
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ cairo_fill_preserve (cr);
+ cairo_set_source_surface (cr, image, item->thumbnail_area.x + emblem_offset + 1,
item->thumbnail_area.y + 1);
cairo_fill (cr);
cairo_surface_destroy (image);
- emblem_offset += EMBLEM_SIZE + (EMBLEM_SIZE / 2);
+ emblem_offset += EMBLEM_SIZE;
}
g_object_unref (icon);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]