Fix the Text property. Patch from Mathias

Hasselmann <mathias.hasselmann@gmx.de>.

svn path=/trunk/gtk-sharp/; revision=12564
This commit is contained in:
Duncan Mak 2003-03-15 22:19:47 +00:00
parent 215133d780
commit c1444f3883
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-03-15 Duncan Mak <duncan@ximian.com>
* gtk/TextBuffer.custom: Fix the Text property. Patch from Mathias
Hasselmann <mathias.hasselmann@gmx.de>.
2003-03-15 Miguel de Icaza <miguel@ximian.com> 2003-03-15 Miguel de Icaza <miguel@ximian.com>
* sample: Update samples to new Glade.Widget. * sample: Update samples to new Glade.Widget.

View file

@ -4,7 +4,8 @@ public string Text {
} }
set { set {
gtk_text_buffer_set_text (Handle, value, value.Length); gtk_text_buffer_set_text (Handle, value,
System.Text.Encoding.Default.GetByteCount(value));
} }
} }