[gthumb] grid view: draw the thumbnail frame using the help function
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] grid view: draw the thumbnail frame using the help function
- Date: Mon, 22 Apr 2019 10:08:27 +0000 (UTC)
commit 38838f692a488111778ef55a954751f7a308b9f8
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Apr 22 11:51:48 2019 +0200
grid view: draw the thumbnail frame using the help function
gthumb/gth-grid-view.c | 31 +++++--------------------------
1 file changed, 5 insertions(+), 26 deletions(-)
---
diff --git a/gthumb/gth-grid-view.c b/gthumb/gth-grid-view.c
index 904dabee..4607189d 100644
--- a/gthumb/gth-grid-view.c
+++ b/gthumb/gth-grid-view.c
@@ -1403,32 +1403,11 @@ _gth_grid_view_item_draw_thumbnail (GthGridViewItem *item,
cairo_set_line_width (cr, 0.5);
cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
- frame_rect = item->thumbnail_area;
-
- /* the drop shadow */
-
- cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 0.33);
- _cairo_draw_rounded_box (cr,
- frame_rect.x + 2,
- frame_rect.y + 2,
- frame_rect.width - 1,
- frame_rect.height - 1,
- 0);
- cairo_fill (cr);
-
- /* the outer frame */
-
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- _cairo_draw_rounded_box (cr,
- frame_rect.x,
- frame_rect.y,
- frame_rect.width - 1,
- frame_rect.height - 1,
- 0);
- cairo_fill_preserve (cr);
-
- cairo_set_source_rgba (cr, 0.0, 0.0, 0.0, 0.55);
- cairo_stroke (cr);
+ _cairo_draw_thumbnail_frame (cr,
+ item->thumbnail_area.x,
+ item->thumbnail_area.y,
+ item->thumbnail_area.width,
+ item->thumbnail_area.height);
cairo_restore (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]