1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
$NetBSD: patch-aa,v 1.1 2010/10/01 19:44:02 drochner Exp $
--- src/tray_icon.c.orig 2009-04-14 22:58:27.000000000 +0000
+++ src/tray_icon.c
@@ -198,12 +198,16 @@ GdkPixbuf *orage_create_icon(gboolean st
orage_message(110, "trayicon: heading does not fit in dynamic icon");
/* month */
- if (strftime(month, 19, "%^b", t) == 0) {
- g_warning("orage_create_icon: strftime %%^b failed");
- if (strftime(month, 19, "%b", t) == 0) {
- g_warning("orage_create_icon: strftime %%b failed");
- g_sprintf(month, "orage");
- }
+ if (strftime(month, 19, "%b", t) == 0) {
+ g_warning("orage_create_icon: strftime %%b failed");
+ g_sprintf(month, "orage");
+ } else {
+ char *c = month;
+ month[19] = '\0';
+ while (*c) {
+ *c = toupper(*c);
+ c++;
+ }
}
g_snprintf(ts, 199
, "<span foreground=\"blue\" size=\"x-small\">%s</span>", month);
|