[Mono-list] Patch to browser/browser.cs in monodoc

Randy J. Ray rjray@blackperl.com
Mon, 18 Aug 2003 23:31:46 -0700


--LwW0XdcUbUexiWVK
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

(Apologies if there is a list more suited to monodoc, but I'm just on the mono 
and gtk-sharp lists)

Building monodoc 0.6 with mono 0.26 and gtk-sharp 0.10, I got the following 
error:

make[1]: Entering directory `/usr/local/src/Mono/monodoc-0.6/browser'
mcs -debug -out:browser.exe ./browser.cs ./list.cs ./history.cs  -
resource:./../monodoc.png,monodoc.png -resource:./browser.glade,browser.glade  
-r:gtk-sharp.dll -r:glade-sharp.dll -r:glib-sharp.dll -r:pango-sharp.dll -r:
gdk-sharp.dll -r:monodoc.dll
./browser.cs(232) error CS1501: No overload for method `Begin' takes `1' 
arguments
./browser.cs(232) error CS8006: Could not find any applicable function for this
argument list
./browser.cs(234) error CS0165: Use of unassigned local variable `stream'
Compilation failed: 3 error(s), 0 warnings
make[1]: *** [browser.exe] Error 1
make[1]: Leaving directory `/usr/local/src/Mono/monodoc-0.6/browser'
make: *** [all-recursive] Error 1

It seems that the Gtk.HTML.Begin method takes no arguments, but there is a 
method called BeginContent that takes the single argument (which is "text/
html" in this case). Patch attached, if this is considered relevant.

Randy
-- 
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Randy J. Ray        Campbell, CA    http://www.rjray.org   rjray@blackperl.com

Silicon Valley Scale Modelers: http://www.svsm.org
--LwW0XdcUbUexiWVK
Content-Type: text/x-patch; charset=us-ascii
Content-Disposition: attachment; filename="browser.cs.patch"

*** browser/browser.cs.orig	Mon Aug 18 23:22:49 2003
--- browser/browser.cs	Mon Aug 18 23:23:14 2003
***************
*** 229,235 ****
  	//
  	public void Render (string text, Node matched_node, string url)
  	{
! 		Gtk.HTMLStream stream = html.Begin ("text/html");
  
  		stream.Write ("<html><body>");
  		stream.Write (text);
--- 229,235 ----
  	//
  	public void Render (string text, Node matched_node, string url)
  	{
! 		Gtk.HTMLStream stream = html.BeginContent ("text/html");
  
  		stream.Write ("<html><body>");
  		stream.Write (text);

--LwW0XdcUbUexiWVK--