[g-a-devel]tool-tips parents



Bonjour, 
As some of you may already know, I'm logging events and all their 
(parents) ancestors.
I get the following log for a tool-tip:
"
  <event time="2003-10-09 17:02:35.987826" 
type="object:state-changed:showing" detail1= "1" detail2= "0" >
    <gui role= "tool-tip" name= "Paragraphe centré" id="0x809f8d8" >
      <states>ENABLED	SENSITIVE	SHOWING	VISIBLE	</states>
     <component x="544" y="137" width="114" height="24" />
    </gui>
  </event>
"
What bothers me is that for other gui elements, I can get up to the 
main application using the chain of parents.
eg :"
  <event time="2003-10-09 17:03:00.284501" 
type="object:state-changed:selected" detail1= "1" detail2= "0" >
    <GUI role= "application" name= "AbiWord" id="0x80ba518" >
      <STATES></STATES>
      <APP id="6" />
      <GUI role= "frame" name= "Document1 * - AbiWord" id="0x80b1f10" 
>
	<STATES>ENABLED	RESIZABLE	SENSITIVE	SHOWING	VISIBLE	</STATES>
	<COMPONENT x="0" y="0" width="1024" height="742" />
	<GUI role= "filler" id="0x809f9d8" >
	  <STATES>ENABLED	SENSITIVE	SHOWING	VERTICAL	VISIBLE	</STATES>
	  <COMPONENT x="6" y="25" width="1012" height="711" />
	  <GUI role= "menu-bar" id="0x80b15d0" >
	    <STATES>ENABLED	SENSITIVE	SHOWING	VISIBLE	</STATES>
	    <COMPONENT x="6" y="25" width="1012" height="26" />
	    <SELECTION/>
	    <GUI role= "menu" name= "Format" id="0x809f8d8" >
	      <STATES>ENABLED	SELECTABLE	SELECTED	SENSITIVE	SHOWING	VISIBLE	
</STATES>
	      <ACTIONS>
		<ACTION nb="0" name="click" description="" 
key_binding="&lt;Alt&gt;t;&lt;Alt&gt;t;" />
	      </ACTIONS>
	      <COMPONENT x="257" y="28" width="51" height="20" />
	      <SELECTION/>
	      <TEXT nb_characters="6" carret_offset="0" >
		Format
	      </TEXT>
	    </GUI>
	  </GUI>
	</GUI>
      </GUI>
    </GUI>
  </event>
"
I understand (from trying to snapshot a tooltip) that they are not 
part of the X11 frame. Nevertheless, I think it would be useful to 
have the underling widget as parent for the tooltips.
Any idea ?

Bernard



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]