Re: gobject ref and unref ?

2009-11-10 Thread Siddu
That was pretty neat thanks. On 11/10/09, Tadej Borovšak wrote: > Hello. > >> Is there any documentation available for it ? as to when to ref and >> unref it based upon the api's ? > > You don't need to know those things, since object's total reference > count is of no importance to you. All yo

Re: gobject ref and unref ?

2009-11-10 Thread David Nečas
Please don't cross-post. On Tue, Nov 10, 2009 at 11:14:24PM +0530, Siddu wrote: > How does one get to know if an API is adding a reference of its own to > an object References represent ownership. Hence a reference is added if you provide an object to be taken and used later. Most methods that

Re: gobject ref and unref ?

2009-11-10 Thread Tadej Borovšak
Hello. > Is there any documentation available for it ? as to when to ref and > unref it based upon the api's ? You don't need to know those things, since object's total reference count is of no importance to you. All you need to do is keep track of your own references on an object. Let me explain

gobject ref and unref ?

2009-11-10 Thread Siddu
Hi all, How does one get to know if an API is adding a reference of its own to an object Passed as a Parameter and thereby incrementing the ref_count ? Is there any documentation available for it ? as to when to ref and unref it based upon the api's ? For example in the below code gtk_tree