projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a2f94b
)
calendar: Add an explanatory comment
author
Niels De Graef
<nielsdegraef@gmail.com>
Tue, 12 Oct 2021 17:37:13 +0000
(19:37 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 31 Oct 2021 21:52:04 +0000
(17:52 -0400)
On the magic numbers used to get the abbreviated day names.
gtk/gtkcalendar.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcalendar.c
b/gtk/gtkcalendar.c
index fe75e7beaf1da729f31f0365470ed4faadbe1c3e..d24d58fb9c34448e15d3a98f9560c5d5610c13a1 100644
(file)
--- 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