Re: Behaviour of getters wrt dup/ref

2007-09-15 Thread Behdad Esfahbod
On Fri, 2007-09-14 at 10:35 -0400, Alexander Larsson wrote: > > char * g_data_input_stream_get_line (GDataInputStream *data_stream, > gsize *length, > GCancellable *cancellable, >

Re: GTK+ 2.12 released

2007-09-15 Thread Mathias Hasselmann
Am Freitag, den 14.09.2007, 00:53 -0400 schrieb Matthias Clasen: > GTK+ 2.12.0 is now available for download at: Woohoo! Guess it's time to create a merging plan for extended layout management now? When do you think the gtk-2.12 branch will be created, so that cool new stuff can land in trunk? Ci

Re: Behaviour of getters wrt dup/ref

2007-09-15 Thread Mathias Hasselmann
Hi Alex, Strange that nobody replied yet, so let's start discussion by dropping some random thoughts: For convenience and performance I consider returning a weak reference (const char*) the most reasonable choice for getters. If you want to keep a reference to the value returned longer than it is

Re: Behaviour of getters wrt dup/ref

2007-09-15 Thread Mathias Hasselmann
Hi Alex, Strange that nobody replied yet, so let's start discussion by dropping some random thoughts: For convenience and performance I consider returning a weak reference (const char*) the most reasonable choice for getters. If you want to keep a reference to the value returned longer than it is