🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36761

Re: Trouble with setting label in dialog widget

#36761
From: Chris D. Peterson
Date: Tue, 13 Feb 1990 16:44
29 lines
1472 bytes
> 	I have a popup shell in my application which contains a dialog
> 	widget. The label of this dialog widget is set (using XtSetValues)
> 	just before popping it up in a callback routine, and the
> 	string displayed varies.

> 	The trouble is that the XtSetValues() is completely ignored after
> 	the first call...

What version of Xaw are you using?  R4 or R3 (please oh please don't say R1 or
R2 :-)

I think that SetValues in R3 may have been doing a ptr comparision so that if
you are using the same buffer you lose.  I thought I fixed this in R4 but
it might have slipped by me.

To work around it you can allocate the string with XtNewString() and then free
it after the SetValues() call.  Yea, I know it's ugly.

If this is still ocurring in R4 then please send a bug report to xbugs@expo
using the form supplied in `doc/bugs/bug-report'.


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213
Technical Details
Message-ID: <9002131644.AA11744@expo.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit
References: <495@enuxha.eas.asu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!kit
From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson)
Newsgroups: comp.windows.x
Subject: Re: Trouble with setting label in dialog widget
Message-ID: <9002131644.AA11744@expo.lcs.mit.edu>
Date: 13 Feb 90 16:44:28 GMT
References: <495@enuxha.eas.asu.edu>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 29