*** /dev/null Mon Feb 19 23:45:32 1990 --- contrib/toolkits/Xw/CHANGES.Pat01 Tue Feb 20 00:17:25 1990 *************** *** 0 **** --- 1,20 ---- + [The existence of patchlevel.h and this patch do not imply continued + support for these. I like and use these widgets, and would like to + hear of changes -- from time to time, I may be convinced to release + patches so we all have a single source version for these widgets. + The official policy if these widgets don't work is to dig out your + favourite text editor, debugger, and go to it... If you want support + or 3D special-effects, try Motif or OpenLook or whatever the + product-of-the-day is - moraes@cs.toronto.edu] + + - a fix from mcintosh@maple.bellcore.com (Allen Mcintosh) to handle + ReverseVideo properly. + + - a fix from jcr@ulysses.att.com so the text widget does not go into + an infinite loop when text.length is 0. + + - a small fix to MButton.c for R4 include conventions, and an + Imakefile for that subdirectory. + + - added XtInheritSetValuesAlmost to Titlebar.c and MenuMgr.c to stop + Xt whining when running xwebster *** /dev/null Mon Feb 19 23:45:32 1990 --- contrib/toolkits/Xw/patchlevel.h Mon Feb 19 22:39:59 1990 *************** *** 0 **** --- 1 ---- + #define PATCHLEVEL 1 *** /dev/null Mon Feb 19 23:45:32 1990 --- contrib/toolkits/Xw/MButton/Imakefile Sun Feb 18 23:53:51 1990 *************** *** 0 **** --- 1,11 ---- + OBJS = multiTest.o MButton.o + SRCS = multiTest.c MButton.c + # Use ../Xw/libXw.a instead of XWLIB because we only use this before + # installation + LIBS = ../Xw/libXw.a $(XTOOLLIB) $(XLIB) + DEPLIBS = ../Xw/libXw.a $(DEPXTOOLLIB) $(DEPXLIB) + INCLUDES = -I../ -I./ + + all: multiTest + + NormalProgramTarget(multiTest,$(OBJS),$(DEPLIBS),$(LIBS),) diff -r -c orig/Xw/MButton/MButton.c contrib/toolkits/Xw/MButton/MButton.c *** orig/Xw/MButton/MButton.c Fri Sep 16 13:07:09 1988 --- contrib/toolkits/Xw/MButton/MButton.c Sun Feb 18 23:55:46 1990 *************** *** 32,38 **** #include #include #include ! #include #include #include #include "MButtonP.h" --- 32,38 ---- #include #include #include ! #include #include #include #include "MButtonP.h" diff -r -c orig/Xw/Xw/Display.c contrib/toolkits/Xw/Xw/Display.c *** orig/Xw/Xw/Display.c Fri Sep 16 13:00:10 1988 --- contrib/toolkits/Xw/Xw/Display.c Mon Feb 19 22:39:07 1990 *************** *** 73,79 **** {XtNfont, XtCFont, XtRFontStruct, sizeof (XFontStruct *), XtOffset(AsciiSinkPtr, font), XtRString, "Fixed"}, {XtNforeground, XtCForeground, XtRPixel, sizeof (int), ! XtOffset(AsciiSinkPtr, foreground), XtRString, "Black"}, }; /* Utilities */ --- 73,79 ---- {XtNfont, XtCFont, XtRFontStruct, sizeof (XFontStruct *), XtOffset(AsciiSinkPtr, font), XtRString, "Fixed"}, {XtNforeground, XtCForeground, XtRPixel, sizeof (int), ! XtOffset(AsciiSinkPtr, foreground), XtRString, "XtDefaultForeground"}, }; /* Utilities */ diff -r -c orig/Xw/Xw/Manager.c contrib/toolkits/Xw/Xw/Manager.c *** orig/Xw/Xw/Manager.c Thu Feb 23 03:02:42 1989 --- contrib/toolkits/Xw/Xw/Manager.c Mon Feb 19 22:39:08 1990 *************** *** 83,89 **** { XtNforeground, XtCForeground, XtRPixel, sizeof (Pixel), XtOffset (XwManagerWidget, manager.foreground), ! XtRString, "Black" }, { --- 83,89 ---- { XtNforeground, XtCForeground, XtRPixel, sizeof (Pixel), XtOffset (XwManagerWidget, manager.foreground), ! XtRString, "XtDefaultForeground" }, { diff -r -c orig/Xw/Xw/MenuMgr.c contrib/toolkits/Xw/Xw/MenuMgr.c *** orig/Xw/Xw/MenuMgr.c Thu Feb 23 03:03:02 1989 --- contrib/toolkits/Xw/Xw/MenuMgr.c Tue Feb 20 00:02:16 1990 *************** *** 99,105 **** /* expose */ NULL, /* set_values */ SetValues, /* set_values_hook */ NULL, ! /* set_values_almost */ NULL, /* get_values_hook */ NULL, /* accept_focus */ NULL, /* version */ XtVersion, --- 99,105 ---- /* expose */ NULL, /* set_values */ SetValues, /* set_values_hook */ NULL, ! /* set_values_almost */ XtInheritSetValuesAlmost, /* get_values_hook */ NULL, /* accept_focus */ NULL, /* version */ XtVersion, diff -r -c orig/Xw/Xw/Primitive.c contrib/toolkits/Xw/Xw/Primitive.c *** orig/Xw/Xw/Primitive.c Thu Feb 23 03:04:30 1989 --- contrib/toolkits/Xw/Xw/Primitive.c Mon Feb 19 22:39:10 1990 *************** *** 103,109 **** { XtNforeground, XtCForeground, XtRPixel, sizeof (Pixel), XtOffset (XwPrimitiveWidget, primitive.foreground), ! XtRString, "Black" }, { --- 103,109 ---- { XtNforeground, XtCForeground, XtRPixel, sizeof (Pixel), XtOffset (XwPrimitiveWidget, primitive.foreground), ! XtRString, "XtDefaultForeground" }, { diff -r -c orig/Xw/Xw/TextEdit.c contrib/toolkits/Xw/Xw/TextEdit.c *** orig/Xw/Xw/TextEdit.c Wed Jul 12 22:54:19 1989 --- contrib/toolkits/Xw/Xw/TextEdit.c Mon Feb 19 22:53:52 1990 *************** *** 710,716 **** right - left); n = length = min(text.length,size); strncpy(target, text.ptr, n); ! while ((end < right) && (length < size)) { nend = (*(ctx->text.source->read))(ctx->text.source, end, &text, right - end); n = text.length; --- 710,716 ---- right - left); n = length = min(text.length,size); strncpy(target, text.ptr, n); ! while (n && (end < right) && (length < size)) { nend = (*(ctx->text.source->read))(ctx->text.source, end, &text, right - end); n = text.length; diff -r -c orig/Xw/Xw/TitleBar.c contrib/toolkits/Xw/Xw/TitleBar.c *** orig/Xw/Xw/TitleBar.c Fri Sep 15 09:26:15 1989 --- contrib/toolkits/Xw/Xw/TitleBar.c Tue Feb 20 00:05:33 1990 *************** *** 440,446 **** (XtExposeProc) Redisplay, /* expose */ (XtSetValuesFunc) SetValues, /* set_values */ NULL, /* set_values_hook */ ! NULL, /* set_values_almost */ NULL, /* get_values_hook */ NULL, /* accept_focus */ XtVersion, /* version */ --- 440,446 ---- (XtExposeProc) Redisplay, /* expose */ (XtSetValuesFunc) SetValues, /* set_values */ NULL, /* set_values_hook */ ! XtInheritSetValuesAlmost, /* set_values_almost */ NULL, /* get_values_hook */ NULL, /* accept_focus */ XtVersion, /* version */