{\r
if (elem.HasAttribute ("preferred"))\r
preferred = true;\r
- if (implementor is ObjectGen)\r
+ if (implementor is ObjectGen || implementor is MiniObjectGen)\r
needs_chaining = true;\r
name = implementor.Name;\r
}\r
if (igen is ObjectGen)
return "GLib.GType.Object";
+ if (igen is MiniObjectGen)
+ return "Gst.MiniObject.GType";
if (igen is BoxedGen)
return retval.CSType + ".GType";
if (igen is EnumGen)
\r
if (Name == "ToString" && Parameters.Count == 0)\r
sw.Write("override ");\r
- else if (Name == "GetGType" && container_type is ObjectGen)\r
+ else if (Name == "GetGType" && (container_type is ObjectGen || container_type is MiniObjectGen))\r
sw.Write("new ");\r
else if (Modifiers == "new " || (dup != null && ((dup.Signature != null && Signature != null && dup.Signature.ToString() == Signature.ToString()) || (dup.Signature == null && Signature == null))))\r
sw.Write("new ");\r
\r
if (IGen is IManualMarshaler)\r
return (IGen as IManualMarshaler).AllocNative (var);\r
- else if (IGen is ObjectGen && owned)\r
+ else if ((IGen is ObjectGen || IGen is MiniObjectGen) && owned)\r
return var + " == null ? IntPtr.Zero : " + var + ".OwnedHandle";\r
else if (IGen is OpaqueGen && owned)\r
return var + " == null ? IntPtr.Zero : " + var + ".OwnedCopy";\r