[Gtk-sharp-list] Binding Gtk.Databox?
Yo'av Moshe
bjesus at gmail.com
Sun Jan 29 09:06:51 EST 2006
Hey again.
Sorry for asking so many questions, but I just want to have a few issues clear.
I decided that I'd like to use Gtk.Databox *in* my C# application. I
guess that leaves me no other option than to create binding for it
(right? please correct me if I'm wrong).
Question - if I want to bind Gtk.Databox to C#, do I have to use the
GAPI parser? is there any other way (maybe even a more "manual" way,
that will take longer but I would understand what I'm doing)?
If I have to use the GAPI parser, what basically should I do to make
it work? use the fix-up tool? Edit the C code of Gtk.Databox? Any
hints here?
I could send the problematic C code so you could make gapi-parser
better, but I pretty much want to get this working as fast as I can,
so I don't want to rely on fixes to the GAPI parser.
It's pretty much my first coding project that could interest others,
so I hope that after the initial release I could get some feedback and
make it better, but I'm pretty much just looking for someone to show
me the road so I can start working on it...
Thanks again,
and sorry for my English and the amount of questions.
Yo'av.
On 1/23/06, Mike Kestner <mkestner at novell.com> wrote:
> On Mon, 2006-01-23 at 15:21 +0200, Yo'av Moshe wrote:
>
> > It's seems like gapi2-parser is very basic though, since it won't help
> > much with Gtk.Databox code. It process most *.h files, but won't do
> > some of the major one (like gtkdatabox.h ...).
>
> GAPI parser will never be a full-featured C parser, but it does a decent
> job for libraries adhering to Gnome coding conventions. Most GObject
> libraries do, so it just works.
>
> > From what I understood, at this point I'm supposed to dig into
> > Gtk.Databox's code to find what preventing from gapi2-parser to parse
> > the files. If so, I need to learn more-than-a-little-bit of C.
>
> If you want to manage a binding to a C library, yes, you will probably
> need to know C. If you can point to the specific source/header code
> that is failing to parse, please file a bug report and I'll try to
> extend the parser to handle it.
>
> > Is that so? What would be easier - to bind Gtk.Databox, or to create a
> > simple C program that my C# program would call like a external tool,
> > just to show the graphs?
>
> If all you need is a few methods in the library, you could probably just
> pinvoke them directly instead of doing a full blown binding. But to do
> that and have it work right, you will need to know a lot more of the
> internals of how Gtk# binds GObjects.
>
> --
> Mike Kestner <mkestner at novell.com>
>
>
--
Yo'av Moshe
http://www.PlaceOnEarth.org
More information about the Gtk-sharp-list
mailing list