From 7cedeca55f1c9500edd20bec41c7964a4eb9f2c6 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Wed, 5 Jan 2005 18:12:16 +0000 Subject: [PATCH] 2005-01-05 Alp Toker * gtk/TextBuffer.custom : Mark SetText obsolete in favour of the Text property, and use Text in SetText in the meantime. svn path=/trunk/gtk-sharp/; revision=38368 --- ChangeLog | 5 +++++ gtk/TextBuffer.custom | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50d21d0a0..e9dccc6ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-05 Alp Toker + + * gtk/TextBuffer.custom : Mark SetText obsolete in favour of the Text + property, and use Text in SetText in the meantime. + 2005-01-04 Mike Kestner * gtk/gtk-api.raw : regen'd. diff --git a/gtk/TextBuffer.custom b/gtk/TextBuffer.custom index a812e6198..45a9dc914 100644 --- a/gtk/TextBuffer.custom +++ b/gtk/TextBuffer.custom @@ -83,9 +83,10 @@ public void InsertWithTagsByName (ref TextIter iter, string text, params string[ } } +[Obsolete("Use the TextView.Text property's setter")] public void SetText (string text) { - gtk_text_buffer_set_text (Handle, text, -1); + Text = text; } [DllImport("libgtk-win32-2.0-0.dll")]