Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Raffaele Sandrini
On Wed, 2007-09-19 at 19:17 +0200, Tim Janik wrote: > >>> BTW: There are equal issues with properties returning objects only there > >>> you can add a hack into the getter unrefing the object before returning > >>> it. This is not applicable with strings. > >> > >> this is not applicable with objec

Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Raffaele Sandrini
On Wed, 2007-09-19 at 19:20 +0200, David Nečas (Yeti) wrote: > On Wed, Sep 19, 2007 at 06:48:25PM +0200, Raffaele Sandrini wrote: > > > > Since we do not see a way around this (yet) and we could not find an > > > > example with strings in another project. I'm asking here if there is a > > > > nice

Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Yeti
On Wed, Sep 19, 2007 at 06:48:25PM +0200, Raffaele Sandrini wrote: > > > Since we do not see a way around this (yet) and we could not find an > > > example with strings in another project. I'm asking here if there is a > > > nice way around this. > > > > i'm really not sure i understand your probl

Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Tim Janik
On Wed, 19 Sep 2007, Raffaele Sandrini wrote: > On Wed, 2007-09-19 at 17:53 +0200, Tim Janik wrote: >> On Wed, 19 Sep 2007, Raffaele Sandrini wrote: >> callers of getters have to free the returned string in C. >> for glib/gtk programs, if the caller doesn't need to free the string, >> the return

Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Michael Lawrence
On 9/19/07, Raffaele Sandrini <[EMAIL PROTECTED]> wrote: > > Ok i see there is need to clarify things. > > On Wed, 2007-09-19 at 17:53 +0200, Tim Janik wrote: > > On Wed, 19 Sep 2007, Raffaele Sandrini wrote: > > > > > Hi there, > > > > > > While implementing abstract properties in Vala we encounte

Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Raffaele Sandrini
Ok i see there is need to clarify things. On Wed, 2007-09-19 at 17:53 +0200, Tim Janik wrote: > On Wed, 19 Sep 2007, Raffaele Sandrini wrote: > > > Hi there, > > > > While implementing abstract properties in Vala we encountered a problem > > regarding string properties with getter and setter func

Re: elastic tabstops implemented for GTK

2007-09-19 Thread Nick Gravgaard
On 19/09/2007, Alex Jones <[EMAIL PROTECTED]> wrote: > On Wed, 2007-09-19 at 08:14 +0200, Nick Gravgaard wrote: > > I thought I'd drop you a mail to tell you that I've turned the gedit patch > > into a proper plugin and made the following fixes: > > > > * Other chars than just \n can now terminate

Re: Abstract string properties with getter/setter functions

2007-09-19 Thread Tim Janik
On Wed, 19 Sep 2007, Raffaele Sandrini wrote: > Hi there, > > While implementing abstract properties in Vala we encountered a problem > regarding string properties with getter and setter functions: > > public interface Test.MyIface { > public abstract string text { get; } > } > > A getter fu

Abstract string properties with getter/setter functions

2007-09-19 Thread Raffaele Sandrini
Hi there, While implementing abstract properties in Vala we encountered a problem regarding string properties with getter and setter functions: public interface Test.MyIface { public abstract string text { get; } } A getter function of an abstract string property looks like: char* test_m

Re: elastic tabstops implemented for GTK

2007-09-19 Thread Alex Jones
On Wed, 2007-09-19 at 08:14 +0200, Nick Gravgaard wrote: > I thought I'd drop you a mail to tell you that I've turned the gedit > patch into a proper plugin and made the following fixes: > > * Other chars than just \n can now terminate paragraphs > * Italic and bold characters are now handled pro