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
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
b123ceabe8
commit
ba78e54916
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user