Hi,
I would like to suggest the attached patch for Xbae-4.50.0.
I hope this is the right place to send this to (the AUTHORS file says:
"LessTif Development Team maintains it now")
First there was a prototype missing in include/Xbae/Matrix.h, which gave a
warning when compiling examples/add/add.c
In addition, gcc warns when there are occurences of '/*' within a comment.
Surrounding the unused piece of code by '#if 0 ... #endif' avoids these
warnings (and is much clearer anyway).
regards
Peter Breitenlohner <[EMAIL PROTECTED]>
diff -ur Xbae-4.50.0.orig/include/Xbae/Matrix.h Xbae-4.50.0/include/Xbae/Matrix.h
--- Xbae-4.50.0.orig/include/Xbae/Matrix.h 2002-08-05 10:04:02.000000000 +0200
+++ Xbae-4.50.0/include/Xbae/Matrix.h 2002-11-13 17:10:49.000000000 +0100
@@ -596,6 +596,9 @@
Pixel *, int);
extern void XbaeMatrixAddRows(Widget, int , String *, String *,
Pixel *, int);
+extern void XbaeMatrixAddVarRows(Widget, int, String *, String *, short *,
+ int *, unsigned char *, unsigned char *,
+ Pixel *, int);
extern void XbaeMatrixCancelEdit(Widget, Boolean);
extern Boolean XbaeMatrixCommitEdit(Widget, Boolean);
extern void XbaeMatrixDeleteColumns(Widget, int, int);
diff -ur Xbae-4.50.0.orig/src/Methods.c Xbae-4.50.0/src/Methods.c
--- Xbae-4.50.0.orig/src/Methods.c 2002-09-17 23:53:56.000000000 +0200
+++ Xbae-4.50.0/src/Methods.c 2002-11-13 16:55:39.000000000 +0100
@@ -3700,10 +3700,11 @@
0, COLUMN_LABEL_HEIGHT(mw), True);
- /* OLD CODE FROM ADD ROWS
+#if 0
+ /* OLD CODE FROM ADD ROWS */
y = ROW_LABEL_OFFSET(mw) + position * ROW_HEIGHT(mw);
SETRECT(rect, 0, y, mw->core.width, mw->core.height - y);
- /* xxx could this use an XCopyArea() instead *
+ /* xxx could this use an XCopyArea() instead */
XClearArea(XtDisplay(mw), XtWindow(mw),
0, y, mw->core.width, mw->core.height - y, True);
@@ -3717,7 +3718,7 @@
* If the scrollbars have just been unmapped and there are
* labels then the labels shift around. The labels need
* to be redrawn
- *
+ */
if (haveVSB && !XtIsManaged(VertScrollChild(mw)) &&
mw->matrix.column_labels)
XClearArea(XtDisplay(mw), XtWindow(mw),
@@ -3728,6 +3729,7 @@
XClearArea(XtDisplay(mw), XtWindow(mw),
VERT_SB_OFFSET(mw), 0, ROW_LABEL_WIDTH(mw), 0, True);
/* THIS SECTION IS NOT CHECKED FOR CORRECTNESS */
+#endif
}
}