1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-01 11:32:34 +01:00

Gah!. New incompatible change in wtext.c broke the compilation of code

using WMText widget
This commit is contained in:
dan
2000-10-15 00:11:41 +00:00
parent 9b0e0c6c54
commit 172da48a60

View File

@@ -504,12 +504,14 @@ testTextField(WMScreen *scr)
} }
#if 0
void void
testText(WMScreen *scr) testText(WMScreen *scr)
{ {
WMWindow *win; WMWindow *win;
WMText *text; WMText *text;
FILE *file = fopen("../README", "r"); FILE *file = fopen("../README", "r");
windowCount++; windowCount++;
@@ -522,27 +524,27 @@ testText(WMScreen *scr)
WMResizeWidget(text, 480, 280); WMResizeWidget(text, 480, 280);
WMMoveWidget(text, 10, 10); WMMoveWidget(text, 10, 10);
WMSetTextHasVerticalScroller(text, True); WMSetTextHasVerticalScroller(text, True);
WMSetTextEditable(text, False); WMSetTextEditable(text, False);
if(file) { if(file) {
char buf[1024]; char buf[1024];
WMFreezeText(text); WMFreezeText(text);
while(fgets(buf, 1023, file)) while(fgets(buf, 1023, file))
WMAppendTextStream(text, buf); WMAppendTextStream(text, buf);
fclose(file); fclose(file);
WMThawText(text); WMThawText(text);
WMRefreshText(text, 0, 0); WMRefreshText(text, 0, 0);
} else { } else {
WMAppendTextStream(text, "<HTML><i>Where's</i> the <b>README</b>?"); WMAppendTextStream(text, "<HTML><i>Where's</i> the <b>README</b>?");
} }
WMRealizeWidget(win); WMRealizeWidget(win);
WMMapSubwidgets(win); WMMapSubwidgets(win);
WMMapWidget(win); WMMapWidget(win);
} }
#endif
void void