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.
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.
That would be really interesting.
Another question, according to the docs for the GTK module
http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/GTK.html
"GTK wrapper module.
This is a convenience module that is identical to either either the GTK2 or the GTK1 module depending on which (if any) of them is available"
On my Windows Pike 7.8.700 and on my Ubuntu Pike 7.8.700 I don't have a GTK wrapper module, just the real GTK2 module.
Should it exist a GTK wrapper module or is the documentation obsolete?
This also means that you can't run this example
Another question, according to the docs for the GTK module
http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/GTK.html
"GTK wrapper module.
This is a convenience module that is identical to either either the GTK2 or the GTK1 module depending on which (if any) of them is available"
On my Windows Pike 7.8.700 and on my Ubuntu Pike 7.8.700 I don't have a GTK wrapper module, just the real GTK2 module.
Should it exist a GTK wrapper module or is the documentation obsolete?
The documentation is newer than your Pike, since it is extracted from current Pike 8.0.
Indeed, I've got a to-do item on my list to investigate integrating some web engine with GTK. I'm using webkit on OSX, so I was leaning toward a glue for the GTK widget for WebKit.
I had forgotten about the introspection code; that might be very useful, as there are only a few methods that'd need to be called, though if one wants to have hooks back from javascript into pike, I'm not sure introspection alone will do the job.
Anyone care to comment?
Bill
On Mon, 9 Dec 2013, Tor Edvardsson @ Pike developers forum wrote:
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.
That would be really interesting.
pike-devel@lists.lysator.liu.se