Esempio n. 1
0
 static void OverrideGetToolkitVersion(GLib.GType gtype, GetToolkitVersionNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("get_toolkit_version"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Esempio n. 2
0
		static void OverrideGetToolkitVersion (GLib.GType gtype, GetToolkitVersionNativeDelegate callback)
		{
			AtkUtilClass class_iface = GetClassStruct (gtype, false);
			class_iface.GetToolkitVersion = callback;
			OverrideClassStruct (gtype, class_iface);
		}