1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11-clocks/eyeclock/files/patch-ab

73 lines
2.3 KiB
Plaintext
Raw Normal View History

--- main.c.orig Sun Dec 26 16:34:55 1999
+++ main.c Sun Dec 26 16:37:01 1999
@@ -76,7 +76,7 @@
/*===========================================================================*/
static Widget toplevel = 0;
-static Widget clock = 0;
+static Widget myclock = 0;
/*===========================================================================*/
/* Number <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤΥ<C8A4><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤ<C3A5><C8A4>Ȥ<EFBFBD>̾<EFBFBD><CCBE> */
@@ -616,9 +616,9 @@
Display * display;
int i;
- if (clock)
- if (XtIsRealized(clock))
- ClockStop(clock);
+ if (myclock)
+ if (XtIsRealized(myclock))
+ ClockStop(myclock);
if (toplevel)
if (XtIsRealized(toplevel)) {
@@ -650,8 +650,8 @@
unsigned int width;
unsigned int height;
- width = ClockGetFaceWidth(clock);
- height = ClockGetFaceHeight(clock);
+ width = ClockGetFaceWidth(myclock);
+ height = ClockGetFaceHeight(myclock);
if (width && height)
XtVaSetValues(toplevel, XtNwidth, width, XtNheight, height, NULL);
@@ -730,23 +730,23 @@
}
/* Clock <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤκ<C8A4><CEBA><EFBFBD> */
- clock = XtCreateManagedWidget("clock", clockWidgetClass, toplevel, NULL, 0);
+ myclock = XtCreateManagedWidget("clock", clockWidgetClass, toplevel, NULL, 0);
/* Hand <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤκ<C8A4><CEBA><EFBFBD> */
for (i = 0; hands_default_values[i].name; i++)
XtVaCreateManagedWidget(hands_default_values[i].name,
- handWidgetClass, clock,
+ handWidgetClass, myclock,
XtNtype, hands_default_values[i].type, NULL);
/* Number <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤκ<C8A4><CEBA><EFBFBD> */
for (i = 0; numbers_default_values[i].name; i++)
XtVaCreateManagedWidget(numbers_default_values[i].name,
- numberWidgetClass, clock,
+ numberWidgetClass, myclock,
XtNnumber, numbers_default_values[i].number, NULL);
/* Eye <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>åȤκ<C8A4><CEBA><EFBFBD> */
for (i = 0; eyes_name[i]; i++)
- XtCreateManagedWidget(eyes_name[i], eyeWidgetClass, clock, NULL, 0);
+ XtCreateManagedWidget(eyes_name[i], eyeWidgetClass, myclock, NULL, 0);
/* <20>ݥ<EFBFBD><DDA5>󥿤Υե<CEA5><D5A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͭ<EFBFBD><CDAD><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD> */
XtVaSetValues(toplevel, XtNinput, True, NULL);
@@ -788,7 +788,7 @@
XSetWMProtocols(display, XtWindow(toplevel), &wm_delete_window, 1);
/* <20><><EFBFBD>פ򥹥<D7A4><F2A5B9A5><EFBFBD><EFBFBD>Ȥ<EFBFBD><C8A4><EFBFBD><EFBFBD><EFBFBD> */
- ClockStart(app_context, clock);
+ ClockStart(app_context, myclock);
/* Ctrl-c <20>Υȥ<CEA5><C8A5>å<EFBFBD> */
signal(SIGINT, interrupt_handler);