> I was looking at the GTK support in Pike and noticed the wrappers
> where some sort of pre-files in src/post_modules/GTKx
>
> So are these just a special case of mods that new_build_pgtk.pike
> generates and not another supported way of writing cmods?

These are rather special, and are only handled by the above mentioned
build_pgtk.pike

It is called from the build-step (from the Makefile), and the output
is C-files, not .cmod-files.

.cmod did not really exist as such when the module was first written,
also it capitalizes on the fact that the GTK API is rather predictable
and easy to generate code for, most of the time the function
prototypes are more than enough.

The output ends up in build/<OS-name>/post_modules/pgtk*.c

There is also a wrapper for the glib-introspection API written by
Marcus Comstedt that he showed off a year or so ago, I think it was on
a branch in git? 

Anyway, that one can fairly easily be used to use the gtkwebkit widget
directly.
  • pre files for gtk Per Hedbor () @ Pike (-) developers forum

Reply via email to