Re: how to replace a child of a GtkBox ?



Hi Gregory!

        - How do I remove the old object from the GtkBox ?

        - How do I "free up" the old object (image/pixbuf) ? Do I
          simply unref it ?

   You don't have to do any of these. As a general rule of thumb in
the gobject world, each object keeps it's own reference of the objects
it needs. So when you set a new child on a GtkBox object, the GtkBox
must unref the old child widget.

-- 
Regards,

Zeeshan Ali Khattak
FSF member#5124



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