From 84e058dd1a159a578a6d73240d3800eeda8b8d0d Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 9 Dec 2004 19:55:53 +0000 Subject: [PATCH] 2004-12-09 Mike Kestner * gtkhtml/HTML.custom : add an back-compat obsolete overload for Write. * gtkhtml/HTMLStream.custom : add an obsolete overload for Write. svn path=/trunk/gtk-sharp/; revision=37516 --- ChangeLog | 5 +++++ doc/en/Gtk/HTML.xml | 19 +++++++++++++++++++ doc/en/Gtk/HTMLStream.xml | 17 +++++++++++++++++ gtkhtml/HTML.custom | 5 +++++ gtkhtml/HTMLStream.custom | 6 ++++++ 5 files changed, 52 insertions(+) diff --git a/ChangeLog b/ChangeLog index 758e6a1c7..179990184 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-09 Mike Kestner + + * gtkhtml/HTML.custom : add an back-compat obsolete overload for Write. + * gtkhtml/HTMLStream.custom : add an obsolete overload for Write. + 2004-12-09 Mike Kestner * generator/Makefile.am : new files. diff --git a/doc/en/Gtk/HTML.xml b/doc/en/Gtk/HTML.xml index 55da2eb62..fc55be382 100644 --- a/doc/en/Gtk/HTML.xml +++ b/doc/en/Gtk/HTML.xml @@ -2084,5 +2084,24 @@ class X { Override this method in a subclass to provide a default handler for the event. + + + Method + + System.Void + + + + + + + + Writes bytes of content from to . + a + a + a + This overload of this method is obsolete. Use the overload with ulong size for 64 bit safety. + + diff --git a/doc/en/Gtk/HTMLStream.xml b/doc/en/Gtk/HTMLStream.xml index 703d95150..7b764b549 100644 --- a/doc/en/Gtk/HTMLStream.xml +++ b/doc/en/Gtk/HTMLStream.xml @@ -160,5 +160,22 @@ + + + Method + + System.Void + + + + + + + Write the HTML to . + a + a + This overload is obsolete. Use the ulong size overload instead for 64 bit safety. + + diff --git a/gtkhtml/HTML.custom b/gtkhtml/HTML.custom index 4fed6541a..14c63d3b2 100644 --- a/gtkhtml/HTML.custom +++ b/gtkhtml/HTML.custom @@ -48,4 +48,9 @@ Raw = gtk_html_new_from_string(Astr, Astr.Length); } + [Obsolete ("Use the ulong overload instead.")] + public void Write (HTMLStream handle, string buffer, int size) + { + Write (handle, buffer, (ulong) size); + } diff --git a/gtkhtml/HTMLStream.custom b/gtkhtml/HTMLStream.custom index c0c1036ec..698d7e8db 100644 --- a/gtkhtml/HTMLStream.custom +++ b/gtkhtml/HTMLStream.custom @@ -19,6 +19,12 @@ // Boston, MA 02111-1307, USA. +[Obsolete ("Use the ulong overload instead.")] +public void Write (byte[] buffer, int size) +{ + Write (buffer, (ulong) size); +} + public void Write (string buffer) { byte [] bytes = System.Text.Encoding.UTF8.GetBytes (buffer);