[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Oct 7 12:27:44 1999 
Subject:RE: PS - not everything Re: How to make Linux Poplog and Lesstif work 
From:"Clinton, Julian" 
Volume-ID:991007.01 

> But I've now found that some things don't work. E.g. trying to use
> the "File" menu in Xved to select "open" should have invoked a file
> browser. Instead I got:
> 
> ;;; MISHAP - (LIVE) Widget NEEDED
> ;;; INVOLVING:  <false>

Ah, yes I should have remembered this (well, it was a few months
ago!). In $usepop/pop/x/ui/lib/S-poplog_uiS-filetool_xm.p
I think the problematic code is:

	if buffer then
		;;; show buffer name
		XtVaSetValues(XtNameToWidget(box, '*bufferText'), (#|
			XmN value,			buffer,
			XmN cursorPosition,	datalength(buffer),
		|#));
		XtManageChild(XmFileSelectionBoxGetChild(box,
XmDIALOG_WORK_AREA));
	else
		;;; don't!
		XtUnmanageChild(XmFileSelectionBoxGetChild(box,
XmDIALOG_WORK_AREA));
	endif;

LessTif doesn't seem to have XmDIALOG_WORK_AREA in the file widget
so NULL is being returned which then gets converted to false
by Poplog. Assuming I've remembered this correctly, commenting
out this code (or putting #_IF not(DEF LINUX) ... #_ENDIF around it)
fixes the problem.

Julian