Re: [gtk-list] Re: Reparenting bug



On 23 Jul 1999, Owen Taylor wrote:

> The parent widget holds the reference count on the widget, so
> you need to do:
> 
>  gtk_object_ref (widget);
>  gtk_container_remove (old_parent, widget);
>  gtk_container_add (new_parent, widget);
>  gtk_object_unref (widget);
>     reliable, anyways.

It works great now, thanks!

> 
> If you want to add a bug report to the bug tracker about
> this, it will help make sure that it doesn't forgotten
> about. For now, just use container_remove()/add(). 

Where is the bug tracker? I can't find any mention of it on gtk.org.

Cheers

Conrad



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