[Monodevelop-patches-list] r1389 - trunk/MonoDevelop/samples/HtmlControl
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Apr 5 15:53:55 EDT 2004
Author: jluke
Date: 2004-04-05 15:53:55 -0400 (Mon, 05 Apr 2004)
New Revision: 1389
Modified:
trunk/MonoDevelop/samples/HtmlControl/Makefile
trunk/MonoDevelop/samples/HtmlControl/Test.cs
Log:
fix this sample for gecko-sharp
Modified: trunk/MonoDevelop/samples/HtmlControl/Makefile
===================================================================
--- trunk/MonoDevelop/samples/HtmlControl/Makefile 2004-04-05 11:12:35 UTC (rev 1388)
+++ trunk/MonoDevelop/samples/HtmlControl/Makefile 2004-04-05 19:53:55 UTC (rev 1389)
@@ -1,8 +1,13 @@
+CSC = mcs /debug
+EXE = ../../build/bin/HtmlTest.exe
+
+DLLS = -r gtk-sharp -r ../../build/bin/MonoDevelop.Base.dll
+
all:
- @ mcs -g Test.cs -r gtk-sharp -r ../../build/bin/SharpDevelop.Base.dll -o ../../build/bin/HtmlTest.exe
+ $(CSC) Test.cs $(DLLS) /out:$(EXE)
run:
- mono --debug ../../build/bin/HtmlTest.exe
+ mono --debug $(EXE)
clean:
- rm -f ../../build/bin/HtmlTest.exe
+ rm -f $(EXE)
Modified: trunk/MonoDevelop/samples/HtmlControl/Test.cs
===================================================================
--- trunk/MonoDevelop/samples/HtmlControl/Test.cs 2004-04-05 11:12:35 UTC (rev 1388)
+++ trunk/MonoDevelop/samples/HtmlControl/Test.cs 2004-04-05 19:53:55 UTC (rev 1389)
@@ -69,8 +69,8 @@
html = new MozillaControl ();
html.NetStart += new EventHandler (OnNetStart);
html.NetStop += new EventHandler (OnNetStop);
- html.Title += new EventHandler (OnTitleChanged);
- html.LinkMessage += new EventHandler (OnLinkMessage);
+ html.TitleChange += new EventHandler (OnTitleChanged);
+ html.LinkMsg += new EventHandler (OnLinkMessage);
html.Html = "<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"test.css\" /></head><body>testing</body></html>";
html.ShowAll ();
@@ -91,7 +91,7 @@
void OnLinkMessage (object o, EventArgs args)
{
- status.Push (1, html.GeckoLinkMessage);
+ status.Push (1, html.LinkMessage);
}
void OnNetStart (object o, EventArgs args)
@@ -106,7 +106,7 @@
void OnTitleChanged (object o, EventArgs args)
{
- win.Title = html.GeckoTitle;
+ win.Title = html.Title;
}
void OnGoClicked (object o, EventArgs args)
@@ -121,7 +121,7 @@
void OnHtmlTitle (object o, EventArgs args)
{
- win.Title = html.GeckoTitle;
+ win.Title = html.Title;
}
void OnBackClicked (object o, EventArgs args)
More information about the Monodevelop-patches-list
mailing list