[Gtk-sharp-list] bonobo-sharp

Mikkel Kruse Johnsen mikkel@linet.dk
Wed, 27 Oct 2004 14:55:12 +0200


--=-83QoPisoa1NhZOrrjmZe
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi All.

I have for a long time been thinking (working) on wrapping Bonobo in C#
(Mono) and have been using a manually wrapped bonobo, so I could embed
Bonobo C# components into my C program.

I have resently changed to use gtk-sharp's automatically wrapper and it
kind of work. There is still a lot to do and changes to gapi-parser and
gapi-codegen needs to be made. fx.

    * In the bonoboui-source.xml namespace is "BonoboUI" and should be
"Bonobo.UI" but gapi-parser don't get that.
    * Interfaces can't implement interfaces. (gapi-codegen don't create
the right code) "interface IContainer : GLib.IWrapper, Bonobo.IUnknown".
    * gapi-parser needs to pick up bonobo interfaces, fx: in headers
"POA_Bonobo_Container__epv" could indicate that it implements
IContainer.
    * a way to specify for a function that it should not use "Handle"
but fx. "ObjRef()" instead.

So for now "sed" is used alot in Makefile's 

The most seriously thing missing from the curret code is that
bonobo_object_ref and bonobo_object_unref is not used. GLib.Object needs
to be able to use these functions or a way to override it in fx.
Bonobo.Object.

Exsposing your own interfaces and accessing non bonobo interfaces is not
implementet at all. "sharp-idl" is started but is not working at all.
Must wrap libIDL or make our own parser is needed. And how to expose a
C# interface (IDL) in ORBit2 I don't know. Mayby using imodule or
something.

I could really use some help, so please do "svn co
http://svn.linet.dk/bonobo-sharp/trunk bonobo-sharp" and start hacking
and sending patches or ask for commit login.

/Mikkel

--=-83QoPisoa1NhZOrrjmZe
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
</HEAD>
<BODY>
Hi All.<BR>
<BR>
I have for a long time been thinking (working) on wrapping Bonobo in C# (Mono) and have been using a manually wrapped bonobo, so I could embed Bonobo C# components into my C program.<BR>
<BR>
I have resently changed to use gtk-sharp's automatically wrapper and it kind of work. There is still a lot to do and changes to gapi-parser and gapi-codegen needs to be made. fx.<BR>
<BR>
&nbsp;&nbsp;&nbsp; * In the bonoboui-source.xml namespace is &quot;BonoboUI&quot; and should be &quot;Bonobo.UI&quot; but gapi-parser don't get that.<BR>
&nbsp;&nbsp;&nbsp; * Interfaces can't implement interfaces. (gapi-codegen don't create the right code) &quot;interface IContainer : GLib.IWrapper, Bonobo.IUnknown&quot;.<BR>
&nbsp;&nbsp;&nbsp; * gapi-parser needs to pick up bonobo interfaces, fx: in headers &quot;POA_Bonobo_Container__epv&quot; could indicate that it implements IContainer.<BR>
&nbsp;&nbsp;&nbsp; * a way to specify for a function that it should not use &quot;Handle&quot; but fx. &quot;ObjRef()&quot; instead.<BR>
<BR>
So for now &quot;sed&quot; is used alot in Makefile's <BR>
<BR>
The most seriously thing missing from the curret code is that bonobo_object_ref and bonobo_object_unref is not used. GLib.Object needs to be able to use these functions or a way to override it in fx. Bonobo.Object.<BR>
<BR>
Exsposing your own interfaces and accessing non bonobo interfaces is not implementet at all. &quot;sharp-idl&quot; is started but is not working at all. Must wrap libIDL or make our own parser is needed. And how to expose a C# interface (IDL) in ORBit2 I don't know. Mayby using imodule or something.<BR>
<BR>
I could really use some help, so please do &quot;svn co <A HREF="http://svn.linet.dk/bonobo-sharp/trunk">http://svn.linet.dk/bonobo-sharp/trunk</A> bonobo-sharp&quot; and start hacking and sending patches or ask for commit login.<BR>
<BR>
/Mikkel
</BODY>
</HTML>

--=-83QoPisoa1NhZOrrjmZe--