From: Niels De Graef Date: Tue, 12 Oct 2021 17:37:13 +0000 (+0200) Subject: calendar: Add an explanatory comment X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c0fc8f796bc9195322df3a774adc332ecdd649cf;p=gtk4.git calendar: Add an explanatory comment On the magic numbers used to get the abbreviated day names. --- diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index fe75e7beaf..d24d58fb9c 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -684,7 +684,7 @@ gtk_calendar_init (GtkCalendar *calendar) for (i=0; i<7; i++) { #ifndef G_OS_WIN32 - tmp_time= (i+3)*86400; + tmp_time= (i+3)*86400; /* epoch was a Thursday, so add 3 days for Sunday */ strftime (buffer, sizeof (buffer), "%a", gmtime (&tmp_time)); default_abbreviated_dayname[i] = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL); #else