summaryrefslogtreecommitdiff
path: root/ClockP.h
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2004-10-30 20:33:44 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2004-10-30 20:33:44 +0000
commitca43036f8cdd456ebff29860fd514248b3699bcf (patch)
tree0c171a494549023b1482adfbbcad2581474e7e75 /ClockP.h
parent3f3b1fbe531e0c1ab3b74396bf4e78db861c8bbc (diff)
lists themselves. To use with the Sun compilers, add to host.def: # define UseCCMakeDepend YES # define DependFlags -cc $(CC) -d -xM (Sun bug id #4245688 - fix by Alan Coopersmith) Add Solaris to the platforms on which mprotect is run to set execute permissions when necessary. (Sun bug id #6175128 - fix by Alan Coopersmith) Internationalize digital output (Sun bug id #4119396 - fix by Steve Swales), add -bgpixmap option to set XPM file as background (originally from STSF project version of xclock by Alan Coopersmith) xc/programs/xmodmap/handle.c,pf.c xmodmap was printing line numbers which are one too low in error messages (Xorg bugzilla #1739, Sun bug id 4637857 - fix by Sam Lau)
Diffstat (limited to 'ClockP.h')
-rw-r--r--ClockP.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/ClockP.h b/ClockP.h
index dac30a4..6e83ba7 100644
--- a/ClockP.h
+++ b/ClockP.h
@@ -63,9 +63,14 @@ SOFTWARE.
#endif
#define SEG_BUFF_SIZE 128
+#ifdef NO_I18N
#define ASCII_TIME_BUFLEN 32 /* big enough for 26 plus slop */
-
#define STRFTIME_BUFF_SIZE 100 /* buffer for "strftime" option */
+#else
+#define STRFTIME_BUFF_SIZE 256 /* should handle any locale */
+#endif
+
+
/* New fields for the clock widget instance record */
typedef struct {
@@ -105,7 +110,11 @@ typedef struct {
XPoint *hour, *sec;
struct tm otm ;
XtIntervalId interval_id;
- char prev_time_string[ASCII_TIME_BUFLEN];
+ char prev_time_string[STRFTIME_BUFF_SIZE];
+#ifndef NO_I18N
+ XFontSet fontSet; /* font set for localized text */
+ Boolean utf8;
+#endif
#ifdef XRENDER
XftColor fg_color;
XftColor hour_color;