[Gtk-sharp-list] TextBuffer change?

Duncan Mak duncan@ximian.com
06 Mar 2003 22:50:01 -0500


On Thu, 2003-03-06 at 22:30, George Farris wrote:
> Did something change in the TextBuffer?  I used to do:
> 
> string s = "line of text";
> TextBuffer tb = new TextBuffer(new TextTagTable());
> tb.SetText(s, s.Length);
> 
> tb.SetText() spits out this error now:
> 

The ever awesome Alp contributed a patch where all instances of (string
s, int len) APIs were shortened to just take the string, in attempt to
make the API more C#-like.

The new API is probably either a) text_buffer.Text = "some text", or b)
text_buffer.SetText ("some text");

Duncan.