Re: Behaviour of getters wrt dup/ref

2007-09-20 Thread Alexander Larsson
On Thu, 2007-09-20 at 13:37 +0200, Tim Janik wrote: > On Fri, 14 Sep 2007, Alexander Larsson wrote: > > > I got some feedback on gio about a getter function that returned a ref, > > and now I'm reviewing the gio APIs for things like that, making sure its > > internally consistent and consistent wi

Re: Behaviour of getters wrt dup/ref

2007-09-20 Thread Tim Janik
On Fri, 14 Sep 2007, Alexander Larsson wrote: > I got some feedback on gio about a getter function that returned a ref, > and now I'm reviewing the gio APIs for things like that, making sure its > internally consistent and consistent with gtk+/glib. > > However, I'm not sure what the gtk+ standard

Re: Abstract string properties with getter/setter functions

2007-09-20 Thread Tim Janik
On Thu, 20 Sep 2007, Raffaele Sandrini wrote: > On Wed, 2007-09-19 at 19:17 +0200, Tim Janik wrote: >> erm, no. that's at least not a clean solution, ref counts may increase and >> decrease at any point in time for random reasons (caches, garbage collection >> algorithms, etc...), even from concu