[Monodevelop-patches-list] r723 - in trunk/MonoDevelop/samples: . FileBrowser

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Jan 30 01:03:04 EST 2004


Author: jluke
Date: 2004-01-30 01:03:04 -0500 (Fri, 30 Jan 2004)
New Revision: 723

Added:
   trunk/MonoDevelop/samples/FileBrowser/
   trunk/MonoDevelop/samples/FileBrowser/Makefile
   trunk/MonoDevelop/samples/FileBrowser/test.cs
Log:
and the test that doesnt work
I will fix tommorrow


Added: trunk/MonoDevelop/samples/FileBrowser/Makefile
===================================================================
--- trunk/MonoDevelop/samples/FileBrowser/Makefile	2004-01-30 06:02:21 UTC (rev 722)
+++ trunk/MonoDevelop/samples/FileBrowser/Makefile	2004-01-30 06:03:04 UTC (rev 723)
@@ -0,0 +1,14 @@
+ASSEMBLY = ../../build/bin/FileBrowserTest.exe
+MCS = mcs -g
+RUNTIME = mono --debug
+
+DLLS = /r:gtk-sharp.dll /r:../../build/bin/MonoDevelop.Gui.Widgets.dll
+
+all:
+	$(MCS) test.cs -o $(ASSEMBLY) $(DLLS)
+
+run:
+	$(RUNTIME) $(ASSEMBLY)
+
+clean:
+	rm -f $(ASSEMBLY)

Added: trunk/MonoDevelop/samples/FileBrowser/test.cs
===================================================================
--- trunk/MonoDevelop/samples/FileBrowser/test.cs	2004-01-30 06:02:21 UTC (rev 722)
+++ trunk/MonoDevelop/samples/FileBrowser/test.cs	2004-01-30 06:03:04 UTC (rev 723)
@@ -0,0 +1,30 @@
+using System;
+using Gtk;
+using GtkSharp;
+using MonoDevelop.Gui.Widgets;
+
+class T
+{
+	static void Main ()
+	{
+		new T ();
+	}
+
+	T ()
+	{
+		Application.Init ();
+		Window win = new Window ("FileBrowser test");
+		win.SetDefaultSize (300, 250);
+		win.DeleteEvent += new DeleteEventHandler (OnDelete);
+
+		win.Add (new FileBrowser ());
+
+		win.ShowAll ();
+		Application.Run ();
+	}
+
+	void OnDelete (object o, DeleteEventArgs args)
+	{
+		Application.Quit ();
+	}
+}




More information about the Monodevelop-patches-list mailing list