On Tue, 2002-08-20 at 15:41, James Henstridge wrote:
> Arjan Molenaar wrote:
> 
<snip>
> >  
> >
> Looks like this was caused by some reference leak fixes. When the item 
> factory goes out of scope, it gets destroyed, and all the items it 
> created go with it.
> 
> The simple fix is to add the line:
>     win.item_factory = item_factory
> 
> I am still looking into whether we are supposed to own the return value 
> of gtk_item_factory_new() (while fixing the problem that caused this 
> one, it exposed the fact that you don't own the return value of 
> gtk_window_new(), so this could be similar).

Yep, that's it.

Thanks!

Arjan



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to