2004-02-19 Thiago Milczarek Say��o <sayao@brturbo.com>

* gtk/TextBuffer.custom : new InsertWithTags method.

svn path=/trunk/gtk-sharp/; revision=23262
This commit is contained in:
Mike Kestner 2004-02-19 23:18:43 +00:00
parent 5ab5d3beaf
commit 1d97632958
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-02-19 Thiago Milczarek Sayão <sayao@brturbo.com>
* gtk/TextBuffer.custom : new InsertWithTags method.
2004-02-18 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide EventFocus and EventConfigure.

View File

@ -22,3 +22,16 @@ public void PasteClipboard (Gtk.Clipboard clipboard)
gtk_text_buffer_paste_clipboard(Handle, clipboard.Handle, IntPtr.Zero, true);
}
public void InsertWithTags (string text, params TextTag[] tags)
{
TextIter iter;
this.Insert (EndIter, text);
iter = this.GetIterAtOffset (EndIter.Offset - text.Length);
foreach (TextTag t in tags)
{
this.ApplyTag (t, iter, EndIter);
}
}