[gnome-calendar] window: fix warning
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: fix warning
- Date: Sun, 5 Mar 2017 23:36:58 +0000 (UTC)
commit eb10c84811c4b18637b43037502a64d027d2fd89
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Mar 5 20:36:41 2017 -0300
window: fix warning
src/gcal-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index d4ed8df..263be51 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -416,9 +416,9 @@ update_active_date (GcalWindow *window,
{
gint offset;
+ date_start = g_date_time_new_local (new_date->year, new_date->month, new_date->day, 0, 0, 0);
offset = g_date_time_get_day_of_week (date_start) % 7 + get_first_weekday ();
- date_start = g_date_time_new_local (new_date->year, new_date->month, new_date->day, 0, 0, 0);
date_start = g_date_time_add_days (date_start, offset);
range_start = g_date_time_to_unix (date_start);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]