[Java-gnome-developer] Adding support for other GTK Objects
Brought to you by:
afcowie
From: dkennedy <dke...@li...> - 2001-02-21 16:16:52
|
Hello, I stumbled across java-gnome recently and I have to say that I am impressed. It works very well and has a nice clean interface. I would like to add Java support for a Gtk object that is not part of the standard Gtk set. Because the Gtk object is in a separate .so file and has a different header I had to do the following: - add the appropriate description into gtk.defs - add a line to /usr/include/gtk/gtk.h - relink the libGTKJava.so adding in a dependancy for the separate .so The above worked great and it does exactly what I want. Unfortunately, it is obviously a big hack. I would like to know how I should go about adding a java interface to this Gtk object. I have a few thoughts: - I would like to distribute the .defs file with the Gtk object itself - I noticed that there is an include operative in the .defs file so perhaps including the gtk.defs would be the way to go. - Hopefully there could be a way of specifying a .so in some meta way to be associated with the .defs Can you please suggest how I should go about doing this? Thank you. BTW: The Gtk object I am wrapping is GtkEmbedMoz the gtk embedded mozilla object. And please don't mention the Blackwood project. -- David Kennedy, Technical Account Manager, Linuxcare, Inc. 613.562.9594 tel, 613.562.9304 fax dke...@li..., http://www.linuxcare.com/ Linuxcare. Putting open source to work. |