[Glade-users] GList.



This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C3583F.D915BBD0
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hello All,
 
The function glade_get_widget_tree in combination with
glade_xml_get_widget_prefix can generate a list of all widgets linked to a
screen for instance. This works great. However, if I use gtk_container_add
after I have opened the screen and insert a new widget, this added widget
will not be in the list when using the functions mentioned.  
 
Any ideas how I can get a real "actual" list (GList) of widgets?
 
I have looked at gtk_container_get_children, but that one is not recursive
unfortunatly. (Obviously I can write my own recursion code, but perhaps
there is an easier way.)
 
If you have an idea, please let me know.
 
Thanks,
Bas.
 
 

------=_NextPart_000_000E_01C3583F.D915BBD0
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D674120805-01082003>Hello=20
All,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D674120805-01082003>The =
function=20
glade_get_widget_tree in combination with glade_xml_get_widget_prefix =
can=20
generate a list of all widgets linked to a screen for instance. This =
works=20
great. However, if I use gtk_container_add after I have opened the =
screen and=20
insert a new widget, this added widget will not be in the list when =
using the=20
functions mentioned.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D674120805-01082003>Any =
ideas how I can=20
get a real&nbsp;"actual" list (GList) of widgets?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D674120805-01082003>I have =
looked at=20
gtk_container_get_children, but that one is not recursive unfortunatly.=20
(Obviously I can write my own recursion code, but perhaps there is an =
easier=20
way.)</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D674120805-01082003>If you =
have an idea,=20
please let me know.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003>Bas.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D674120805-01082003></SPAN></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C3583F.D915BBD0--





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