John Margaglione wrote:


> How about if I put the ref/unref code in the constructor/destructor for each
> top-level widget.
> 
> typedef struct tag_Whatever
> {
>     GtkWidget *thing1;
>     GtkWidget *thing2;
> } Whatever;
> 
> Whatever *whatever_create( ) {
>     // ref thing1 and thing2
> }
> 
> void whatever_destroy( Whatever *whatever ) {
>     // unref thing1 and thing2
> }

I don't think this is needed. If the developer removes widgets they should
just set the pointer to NULL. (Just as you would do if this were a GTK+ widget.)

Damon



_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to