Re: [gtkmm] Re: reference counting vs. manage and local scoping



On Mon, 2002-10-21 at 02:34, Yury Sulsky wrote:
> In my view, there's absolutely no reason a widget should exist after
> its container has been destroyed.

So use manage() and be happy.

> Can you manage() the view of a tree widget but reference count the
> model?

Yes. The Models can _only_ be reference-counted.
 
> I think that if, for example, you need to have 2 dialogs open with the
> same tree widget, it's better to create two different widgets that
> connect to the same data than to create one widget that's referenced
> from two dialogs. 

It is not possible for 1 widget to be in 2 container widgets
simultaneously anyway.

-- 
Murray Cumming
murray usa net
www.murrayc.com




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