[Gtk-sharp-list] libgnomeprint binding.
Alejandro Sánchez Acosta
raciel@gnome.org
02 Jan 2003 20:26:40 +0000
--=-7Hw+4OYe5xVI8kGm1L/u
Content-Type: multipart/mixed; boundary="=-9rpVhY9JQGInV2jxn3EG"
--=-9rpVhY9JQGInV2jxn3EG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hello,
I am making with the Cesar's help the gnomeprint binding. I have almost
finished, the trouble is with the Bonobo file that generates these
errores and I dont get to know what fails.
raciel@voyager:~/devel/gnomeprint/gnomeprint$ make
mcs --unsafe --target library -r glib-sharp.dll -o gnomeprint-sharp.dll
--recurse '*.cs'
./generated/Bonobo.cs(28) error CS1501: Can not find a constructor for
this argument list
./generated/Bonobo.cs(19) error CS-0006: Could not find any applicable
function for this argument list
./generated/Bonobo.cs(63) error CS0030: Cannot convert type
'GLib.Object' to 'GnomePrint.Bonobo'
./generated/Bonobo.cs(64) error CS0165: Use of unassigned local variable
`ret'
I attach the Bonobo.cs file, anyway if I quit the Bonobo file I generate
gnomeprint library. There are two files related with Bonobo (BonoboData
and BonoboDimensions) that I get to compile with the rest of the
library.
Cesar now is working in gnomeprintui binding.
Cheers.
--=20
Alejandro Sanchez Acosta
raciel@es.gnu.org GNU Spain is not Unix.
raciel@gnome.org GNOME the GNU Desktop.
--=-9rpVhY9JQGInV2jxn3EG
Content-Disposition: attachment; filename=Bonobo.cs
Content-Type: text/plain; name=Bonobo.cs; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
// Generated File. Do not modify.
// <c> 2001-2002 Mike Kestner
namespace GnomePrint {
using System;
using System.Collections;
using System.Runtime.InteropServices;
/// <summary> Bonobo Class</summary>
/// <remarks>
/// </remarks>
public class Bonobo : IDisposable {
IntPtr Handle, Raw;
public void Dispose()=20
{
Dispose(true);
GC.SuppressFinalize(this);=20
}
=20
~Bonobo()
{
Dispose();
}
public Bonobo(IntPtr raw) : base(raw) {}
[DllImport("libgnomeprint-1.116.3")]
static extern IntPtr gnome_print_bonobo_new_closure(System.IntPtr render)=
;
/// <summary> Bonobo Constructor </summary>
/// <remarks> To be completed </remarks>
public Bonobo(System.IntPtr render)
{
Raw =3D gnome_print_bonobo_new_closure(render);
}
protected Bonobo() : base(){}
private Hashtable Signals =3D new Hashtable();
[DllImport("libgnomeprint-1.116.3")]
static extern int gnome_print_bonobo_get_type();
/// <summary> GType Property </summary>
/// <remarks> To be completed </remarks>
public static int GType {=20
get {
int raw_ret =3D gnome_print_bonobo_get_type();
int ret =3D raw_ret;
return ret;
}
}
[DllImport("libgnomeprint-1.116.3")]
static extern IntPtr gnome_print_bonobo_construct(IntPtr raw, System.IntP=
tr render);
/// <summary> Construct Method </summary>
/// <remarks> To be completed </remarks>
public GnomePrint.Bonobo Construct(System.IntPtr render) {
IntPtr raw_ret =3D gnome_print_bonobo_construct(Handle, render);
GnomePrint.Bonobo ret =3D (GnomePrint.Bonobo) GLib.Object.GetObject(raw_=
ret);
return ret;
}
}
}
--=-9rpVhY9JQGInV2jxn3EG--
--=-7Hw+4OYe5xVI8kGm1L/u
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje esta firmada digitalmente
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQA+FKB/hv53I0VkQfYRAkXTAJ9eP09fqg13VeOkGYOD1hP7NeZB8gCdGMfA
VssWZVTQmDPYp3p7h3cbzhU=
=4Jph
-----END PGP SIGNATURE-----
--=-7Hw+4OYe5xVI8kGm1L/u--