From ba78e5491633045aaf170420fbb8f362987e85f5 Mon Sep 17 00:00:00 2001 From: fosero Date: Sat, 5 Mar 2016 22:34:28 +0100 Subject: [PATCH] month-view: initial selection on current day Create the month view with the initial selection on the current day. https://bugzilla.gnome.org/show_bug.cgi?id=763149 --- src/gcal-month-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 1e660190..b7ebf57e 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -872,7 +872,7 @@ gcal_month_view_set_property (GObject *object, priv->date = g_value_dup_boxed (value); priv->days_delay = (time_day_of_week (1, priv->date->month - 1, priv->date->year) - priv->first_weekday + 7) % 7; - priv->keyboard_cell = priv->days_delay; + priv->keyboard_cell = priv->days_delay + (priv->date->day - 1); priv->start_mark_cell = -1; priv->end_mark_cell = -1;