[gnome-calendar] month-view: add selection background fill
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: add selection background fill
- Date: Sun, 13 Mar 2016 00:58:44 +0000 (UTC)
commit 8a72bf0ce7649a0107d94dba1a731532126bad1e
Author: fosero <fosero users noreply github com>
Date: Tue Mar 8 18:11:24 2016 +0100
month-view: add selection background fill
https://bugzilla.gnome.org/show_bug.cgi?id=763217
src/gcal-month-view.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 407b53e..59d9c42 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1762,8 +1762,11 @@ gcal_month_view_draw (GtkWidget *widget,
cairo_line_to (cr, start_x, start_y);
}
- cairo_stroke (cr);
- }
+ cairo_stroke_preserve (cr);
+ /* selection background fill */
+ cairo_set_source_rgba(cr, color.red, color.green, color.blue, 0.1);
+ cairo_fill(cr);
+ }
/* Draw focus rectangle */
if (priv->keyboard_cell > priv->days_delay - 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]