826
829
// Create a TextField to fetch the selection
827
830
FontSelectInfo *info = new FontSelectInfo;
828
info->text = XmCreateText(XtParent(w), CONST_CAST(char *,"text"), 0, 0);
831
info->text = XmCreateText(XtParent(w), XMST("text"), 0, 0);
831
834
XtRealizeWidget(info->text);
833
836
const string text = "dummy";
835
838
TextSetSelection(info->text, 0, text.length(), tm);
836
839
XtAddCallback(info->text, XmNlosePrimaryCallback,
837
840
SelectionLostCB, XtPointer(info));