Re: Wrap Callback Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

GTK does not export g_signal_connect(), it is a C macro that invokes g_signal_connect_data() with the last two params as NULL, 0. [at least in GTK2/3, that is]
There are a whole bunch of examples for that in xpGUI, note that in Phix you can just say xpg_gtk_release_key where Euphoria needs routine_id("xpg_gtk_release_key")
Likewise in Phix you can just throw a string directly at c_func(), but in Euphoria you have to allocate_string() or similar - that cmd above is never gona work, ditto argv.

As for g_application_run, I'm afraid I can't help you with that. For GTK2/3 I use gtk_main() but it seems they've ripped that out
and the best information I can find, with the obligatory 404 doc link, is https://github.com/vmagnin/gtk-fortran/issues/163

As you will find, the GTK docs truly suck, and clearly the development team know that and constantly try to rearrange them into
something better, which means that all external links to the documentation that are more than ~17mins old will 404. Personally,
I always got far more useful information from searching the source code, where you'll find almost all the heredocs from which all
that gendoc generated garbage comes from anyway [not that I can be certain of that for GTK4].

(Actually, by comparison the GTK2 docs where pretty decent, but they've been on a steep downward trajectory ever since - prettier, sure, less useful, without a shadow.)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu