# G\_child\_add

**URL:** <https://www.ruby-forum.com/t/g-child-add/97694>\
**Category:** Ruby-Gnome 2\
**Created:** [July 9, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/g-child-add/97694 "2006-07-09T19:00:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 9, 2006, 7:00pm UTC](https://www.ruby-forum.com/t/g-child-add/97694/1 "2006-07-09T19:00:22Z")

</div>

How is G\_CHILD\_ADD used? I’m asking because in sourcecode  
“rbgtknotebook”, it is used in note\_append\_page but not in  
note\_prepend\_page, note\_append\_page\_menu, note\_remove\_page etc (bug?).

–  
Guillaume C. - [http://zarb.org/~gc/](http://zarb.org/~gc/)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![blueprint](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@blueprint](https://www.ruby-forum.com/u/blueprint)\
**Post date:** [July 10, 2006, 6:43pm UTC](https://www.ruby-forum.com/t/g-child-add/97694/2 "2006-07-10T18:43:56Z")

</div>

Hi,

On Sun, 9 Jul 2006 18:59:36 +0200  
“Guillaume C.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How is G\_CHILD\_ADD used? I’m asking because in sourcecode  
> “rbgtknotebook”, it is used in note\_append\_page but not in  
> note\_prepend\_page, note\_append\_page\_menu, note\_remove\_page etc (bug?).

It is to save the child object from GC.  
Since 0.15.0, Ruby/GLib finds the child objects and properties  
and do same things in it. So generally, this becomes useless.

But if an object which is not GObject/GBoxed but have children,  
you may need to use this.

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
