Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: converse@expo.lcs.mit.EDU Newsgroups: comp.windows.x Subject: Re: unexpected XtIsWidget behavior Message-ID: <9103081724.AA23784@excess.lcs.mit.edu> Date: 8 Mar 91 17:24:50 GMT References: <9103081459.AA09602@tilde> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 19 > XtIsWidget does not seem to recognize Motif gadgets as widgets! That's because they're not widgets. > Despite the fact that gadgets use the same type structure (their creation > routines return Widget) this check fails. It must look for the window > gadgets don't create or something. Why is this? It checks to see whether or not the widget is equal to or is a subclass of WidgetClass. Objects, or as they seem to be known in Motif-land, gadgets, are not subclasses of WidgetClass. > We were using XtIsWidget to check creation of every widget we create for > general debugging purposes. You need to read the interface definition for XtIsWidget.