[Gtk-sharp-list] TextBuffer change?
06 Mar 2003 19:42:56 -0800
On Thu, 2003-03-06 at 19:50, Duncan Mak wrote:
> 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");
And so it is, thanks.
George Farris <firstname.lastname@example.org>