[Gtk-sharp-list] libgnomeprint binding.

Alejandro Sánchez Acosta raciel@gnome.org
02 Jan 2003 20:26:40 +0000

Content-Type: multipart/mixed; boundary="=-9rpVhY9JQGInV2jxn3EG"

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


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

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

Cesar now is working in gnomeprintui binding.

Alejandro Sanchez Acosta

raciel@es.gnu.org			         GNU Spain is not Unix.
raciel@gnome.org				 GNOME the GNU Desktop.

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

		public Bonobo(IntPtr raw) : base(raw) {}

		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();
		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;

		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_=
			return ret;


Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje esta firmada digitalmente

Version: GnuPG v1.2.1 (GNU/Linux)