[gnome-calendar] month-view: initial selection on current day
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: initial selection on current day
- Date: Tue, 8 Mar 2016 16:00:31 +0000 (UTC)
commit ba78e5491633045aaf170420fbb8f362987e85f5
Author: fosero <fosero users noreply github com>
Date: Sat Mar 5 22:34:28 2016 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 1e66019..b7ebf57 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]