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:
parent
5ab5d3beaf
commit
1d97632958
2 changed files with 17 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue