[gnome-calendar] week-view: set the first weekday for week-header & week-grid
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] week-view: set the first weekday for week-header & week-grid
- Date: Thu, 2 Mar 2017 10:21:14 +0000 (UTC)
commit 06cdeb61ed3cf2e071d4aefd535328066bf380c6
Author: Joyjit Choudhury <joyjit choudhury gmail com>
Date: Thu Mar 2 08:34:32 2017 +0530
week-view: set the first weekday for week-header & week-grid
In this commit, the first weekday is set for week-header & week-grid.
The issue is, the first weekday is being set only for week-view,
resulting in incorrect display of weekdays in the week-header.
To fix this, the first weekday for week-header & week-grid is set
along with that of week-view.
https://bugzilla.gnome.org/show_bug.cgi?id=779346
src/views/gcal-week-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/views/gcal-week-view.c b/src/views/gcal-week-view.c
index 57f3718..ebd7bb3 100644
--- a/src/views/gcal-week-view.c
+++ b/src/views/gcal-week-view.c
@@ -663,6 +663,9 @@ gcal_week_view_set_first_weekday (GcalWeekView *self,
g_return_if_fail (GCAL_IS_WEEK_VIEW (self));
self->first_weekday = day_nr;
+
+ gcal_week_header_set_first_weekday (GCAL_WEEK_HEADER (self->header), self->first_weekday);
+ gcal_week_grid_set_first_weekday (GCAL_WEEK_GRID (self->week_grid), self->first_weekday);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]