[Gtk-sharp-list] patch for gst-sharp

Jorge García jgarcia@ac.upc.es
Fri, 21 May 2004 19:46:16 +0200


--=-j/n8Dr9hQO+ph3LLn7er
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


Hi,

gst-sharp doesn't compile with the change from namespace GLibSharp to
GLib of Marshaller class. This solves it.

Jorge

PST This is my first patch, sorry if there is any error.


--=-j/n8Dr9hQO+ph3LLn7er
Content-Disposition: attachment; filename=file.diff
Content-Type: text/x-patch; name=file.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

? file.diff
Index: Application.cs
===================================================================
RCS file: /mono/gst-sharp/gst-sharp/Application.cs,v
retrieving revision 1.2
diff -u -r1.2 Application.cs
--- Application.cs	30 Apr 2004 17:53:15 -0000	1.2
+++ Application.cs	21 May 2004 17:41:05 -0000
@@ -30,7 +30,7 @@
 		public static void Init (string progname)
 		{
 		        string[] progargs = new string[] {progname};
-			IntPtr argv = GLibSharp.Marshaller.ArgvToArrayPtr (progargs);
+			IntPtr argv = GLib.Marshaller.ArgvToArrayPtr (progargs);
 		      
                         int argc = 1;
 
@@ -45,7 +45,7 @@
 			progargs[0] = progname;
 			args.CopyTo (progargs, 1);
                                                                                                
-                        IntPtr buf = GLibSharp.Marshaller.ArgvToArrayPtr (progargs);
+                        IntPtr buf = GLib.Marshaller.ArgvToArrayPtr (progargs);
                         int argc = progargs.Length;
 
 
@@ -60,7 +60,7 @@
                         if (argc == 0)
                                 args = new string[0];
                         else {
-                                progargs = GLibSharp.Marshaller.ArrayPtrToArgv (buf, argc);
+                                progargs = GLib.Marshaller.ArrayPtrToArgv (buf, argc);
                                 args = new string[argc - 1];
                                 Array.Copy (progargs, 1, args, 0, argc - 1);
                         }

--=-j/n8Dr9hQO+ph3LLn7er--