Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!argv From: argv@turnpike.Eng.Sun.COM (Dan Heller) Newsgroups: comp.windows.x.motif Subject: Re: Grey-ing things out Keywords: stippled sensitive Message-ID: <142440@sun.Eng.Sun.COM> Date: 13 Sep 90 23:22:17 GMT References: <7876@gollum.twg.com> <21340002@hpopd.HP.COM> <1990Sep13.185713.12667@dg-rtp.dg.com> Sender: news@sun.Eng.Sun.COM Organization: O'Reilly && Associates Lines: 43 In article <1990Sep13.185713.12667@dg-rtp.dg.com> blumer@dg-rtp.dg.com (Todd Blumer) writes: > I have experienced two problems with XtSetSensitive() (or XmNsensitive) > under Motif 1.0.1. > > First, setting XmNsensitive to False on PushButtonGadgets will cause the > push button to change size (that is, the buttons previously had their > size explicitly set). I haven't had such a problem, but I don't set the explicit width of my widgets (I let the parent do that as it should :-). It could be that your problem is more in depth than you think, but it does seem as tho you found a bug. > Second, using the XmNsensitive resource on text widgets can sometimes > cause a sigsegv or sigbus. I did not take the time or effort to > identify the exact sequence of events that caused the sigsegv, but > it went something like: > > type a value into the text box > set XmNsensitive to False > ... > set XmNsensitive to True > change the value in the text box > ... ... I have had problems doing this exact same thing, but my symptoms are that the cursor blinks faster and faster until the application core dumps eventually. I traced it down to the fact that the Text widget doesn't reset/turn off its timer correctly and when you reset the Text's sensitivity, a new timer is added and the old one isn't relased. Eventually, it gets overrun. This is especialy compounded when you have your own timers in your app. My solution is that I set a global resources: *Text.blinkRate: 0 I don't know if this will help you. -- dan ---------------------------------------------------- O'Reilly && Associates argv@sun.com / argv@ora.com Opinions expressed reflect those of the author only.