Major incompatibility between Motif 2.3.1 and 2.3.2
Submitted by RobArthan on Thu, 06/18/2009 - 21:37.
I have a Motif application that is unusable with Motif 2.3.2 apparently because of a change in the behaviour of paned windows.
The code below demonstrates a much cutdown version of the problem: it creates two label widgets as children of a paned window. With Motif 2.3.1 both labels get a fair share of the paned window; with Motif 2.3.2, the program starts up with only the first label and the "sash" between the windows visible.
In the real application this is a stopper: the paned window is part of the applications main window and its top pane is an information bar with a fixed height while its bottom pane is a multiline text widget. The text widget is now inaccessible as a result of the changed behaviour in 2.3.2.
* Displays a difference between Motif 2.3.1 and 2.3.2
* to compile, use e.g.,:
* gcc -g -o xmtest -I/usr/X11R6/include -L/usr/X11R6/lib -lXm -lXt -lX11 xmtest.c
int main(int argc, char **argv)
Widget root, paned_window, label1, label2;
root = XtVaAppInitialize(&app,
argv, NULL, NULL);
paned_window = XtVaCreateWidget("paned_window",
label1 = XtVaCreateManagedWidget("label1",
label2 = XtVaCreateManagedWidget("label2",