----- Original Message ----
> From: Marc Dirix <m...@electronics-design.nl>
> To: p...@roxen.com
> Sent: Fri, September 10, 2010 10:16:34 AM
> Subject: GTK2, container->get_children, bug?
> 
> Hi,
> 
> Sorry for the multiple different GTK topic, I'm a bit  experimenting
> around with it.
> 
> I have a Hbox containing on position 1 a  VButtonbox and on position 2 a
> Label.
> 
> If I do  Hbox_object->get_children, I'd expect to get both VButtonbox and
> Label in  an array respectively, however I get:
> 
> ({ /* 2 elements */
>      GTK2.VbuttonBox,
>     GTK2.VbuttonBox
> })
> 
> Am I  missing something here?
> (The hbox and it's children are setup using  gladexml).
> pike = 7.8.352.
> 
> Best regards,
> 
> Marc Dirix
> 
>


[riffr...@hobbes Download]$ pike Hbox.pike 
({ /* 2 elements */
    GTK2.VbuttonBox,
    GTK2.Label
})
[riffr...@hobbes Download]$ 


What version of pike are you using?  I  think there may have been a bug in 
function where I didn't increment  some list pointer in the get_children() 
function.  You may have the  buggy one still.  You might have to get the latest 
cvs version.  My code is latest cvs as of a few days ago.  Per the log for 
gtkcontainer.pre (where the bug exists) it was fixed in 7.8.396, so you 
definitely have the buggy version.  You should update to the latest cvs version:

http://pike.ida.liu.se/generated/pikefarm/packages/7.8/latest


      

  • Re: ... Lance Dillon
    • ... Marc Dirix
    • ... Magnus Holmgren, Millnet/Lysator/Debian/Mensa @ Pike developers forum

Reply via email to