[Monodevelop-patches-list] r667 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 26 20:31:48 EST 2004


Author: benm
Date: 2004-01-26 20:31:48 -0500 (Mon, 26 Jan 2004)
New Revision: 667

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile
Log:
buildify

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-01-27 01:28:54 UTC (rev 666)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-01-27 01:31:48 UTC (rev 667)
@@ -28,6 +28,7 @@
 			SourceEditorDisplayBindingWrapper w = new SourceEditorDisplayBindingWrapper ();
 			
 			w.Load (fileName);
+			return w;
 		}
 		
 		public virtual IViewContent CreateContentForLanguage (string language, string content)
@@ -41,6 +42,7 @@
 				language = null;
 			
 			w.LoadString (language, content);
+			return w;
 		}
 		
 		public virtual IViewContent CreateContentForLanguage (string language, string content, string new_file_name)
@@ -54,6 +56,7 @@
 				language = null;
 			
 			w.LoadString (language, content);
+			return w;
 		}	
 	}
 	
@@ -99,9 +102,9 @@
 		public override void Load (string fileName)
 		{
 			if (fileName.EndsWith (".cs"))
-				se.Load (fileName, "text/x-csharp");
+				se.LoadFile (fileName, "text/x-csharp");
 			else
-				se.Load (fileName);
+				se.LoadFile (fileName);
 		}
 		
 		public void LoadString (string mime, string val)

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile	2004-01-27 01:28:54 UTC (rev 666)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Makefile	2004-01-27 01:31:48 UTC (rev 667)
@@ -0,0 +1,10 @@
+DLL=../../../../build/bin/MonoDevelop.Gui.Buffer.dll
+
+all : $(DLL)
+
+$(DLL) : $(shell find . -name \*.cs)
+	mcs $(shell find . -name \*.cs) /out:$@ /t:library /r:gtk-sharp /r:gdk-sharp /r:gtksourceview-sharp \
+		/r:../../../../build/bin/MonoDevelop.Core.dll \
+		/r:../../../../build/bin/MonoDevelop.TextEditor.dll \
+		/r:../../../../build/bin/MonoDevelop.Base.dll \
+		/r:MonoDevelop.Gui
\ No newline at end of file




More information about the Monodevelop-patches-list mailing list