[gnome-calendar] Added mark of the actual month to GcalYearView.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Added mark of the actual month to GcalYearView.
- Date: Sat, 1 Dec 2012 20:35:00 +0000 (UTC)
commit 44ddbdbf88942ecf2b0115d69536ef6204fc0e0f
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Fri Nov 23 23:02:49 2012 -0500
Added mark of the actual month to GcalYearView.
src/gcal-year-view.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 3278bfd..b781b70 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -749,6 +749,7 @@ gcal_year_view_draw_grid (GcalYearView *view,
GtkAllocation *alloc,
GtkBorder *padding)
{
+ GcalYearViewPrivate *priv;
GtkWidget *widget;
GtkStyleContext *context;
@@ -768,6 +769,7 @@ gcal_year_view_draw_grid (GcalYearView *view,
PangoLayout *layout;
const PangoFontDescription *font;
+ priv = view->priv;
widget = GTK_WIDGET (view);
context = gtk_widget_get_style_context (widget);
@@ -843,6 +845,18 @@ gcal_year_view_draw_grid (GcalYearView *view,
cairo_stroke (cr);
/* drawing actual_day_cell */
+ cairo_set_source_rgb (cr,
+ selected_color.red,
+ selected_color.green,
+ selected_color.blue);
+
+ /* Two pixel line on the selected day cell */
+ cairo_set_line_width (cr, 2.0);
+ cairo_move_to (cr,
+ (alloc->width / 6) * ( (priv->date->month - 1) % 6),
+ start_grid_y + ((alloc->height - start_grid_y) / 2) * ( (priv->date->month - 1) / 6) + 1);
+ cairo_rel_line_to (cr, (alloc->width / 6), 0);
+ cairo_stroke (cr);
}
static gdouble
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]