Minor fixed to get gstreamer working.
svn path=/trunk/gtk-sharp/; revision=26341
This commit is contained in:
parent
5c375bdc40
commit
ce55d821aa
3 changed files with 14 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-04-29 Owen Fraser-Green <owen@discobabe.net>
|
||||
|
||||
* generator/ClassBase.cs: added base case to Parent to avoid
|
||||
infinite recursion.
|
||||
* glib/Marshaller.cs: changed SizeOf(typeof's to int and long
|
||||
instead of string.
|
||||
|
||||
2004-04-29 Duncan Mak <duncan@ximian.com>
|
||||
|
||||
* vte/vte-sharp.dll.config.in: Removed extra </configuration>
|
||||
|
|
|
@ -39,7 +39,11 @@ namespace GtkSharp.Generation {
|
|||
public ClassBase Parent {
|
||||
get {
|
||||
string parent = Elem.GetAttribute("parent");
|
||||
return SymbolTable.Table.GetClassGen(parent);
|
||||
|
||||
if (parent == "")
|
||||
return null;
|
||||
else
|
||||
return SymbolTable.Table.GetClassGen(parent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace GLibSharp {
|
|||
for (int i = 0; i < args.Length; i++)
|
||||
ptrs[i] = (int) Marshal.StringToHGlobalAuto (args[i]);
|
||||
|
||||
IntPtr buf = g_malloc ((ulong) Marshal.SizeOf(typeof(string)) *
|
||||
IntPtr buf = g_malloc ((ulong) Marshal.SizeOf(typeof(int)) *
|
||||
(ulong) args.Length);
|
||||
Marshal.Copy (ptrs, 0, buf, ptrs.Length);
|
||||
return buf;
|
||||
|
@ -97,7 +97,7 @@ namespace GLibSharp {
|
|||
for (int i = 0; i < args.Length; i++)
|
||||
ptrs[i] = (long) Marshal.StringToHGlobalAuto (args[i]);
|
||||
|
||||
IntPtr buf = g_malloc ((ulong) Marshal.SizeOf(typeof(string)) *
|
||||
IntPtr buf = g_malloc ((ulong) Marshal.SizeOf(typeof(long)) *
|
||||
(ulong) args.Length);
|
||||
Marshal.Copy (ptrs, 0, buf, ptrs.Length);
|
||||
return buf;
|
||||
|
|
Loading…
Reference in a new issue