Re: GSoC proposal: gtk+ bindings for prolog



On Wed, 2008-04-02 at 06:44 +0200, Jean-Yves Lefort wrote:
> The information is mostly complete. The generator can automatically
> handle methods which involve fundamental types (gboolean, gint, ...),
> GLib enum and flags types, and GObject-derived types. Such methods
> represent a vast majority of the GTK+ API.
> 
> For other methods, it emits a warning, for instance "ignoring method
> gtk_list_store_append(): unhandled parameter type GtkTreeIter*". I
> then manually add the needed information to a configuration file.
> 
> By the way, in case some GTK+ developer is reading: it would have been
> nice if GLib/GTK+ had offered a way to obtain type and method
> information without having to hack up a .h parser, eg:
> 
> 	GType *gtk_get_types (int *num_types);
> 
> 	GMethodInfo *g_type_get_methods (GType type, int *num_methods);
> 
> It seems like a natural continuation of the reflection facilities
> already present in GLib.

h2defs.py might be useful to you. It is used by pygtk and gtkmm:
http://svn.gnome.org/viewvc/pygtk/trunk/codegen/

There is work happening on fuller introspection for GObject.

There is also a language-bindings mailing list which might help with
general bindings issues.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]