Another #puregotk #Go #GTK bindings fix: Callbacks that contain strings (think `Settings.ConnectChanged`, `AdwDialog.ConnectResponse`) now correctly convert them from C strings to Go strings: https://github.com/pojntfx/puregotk/tree/fix-c-to-go-calls
Will cherry-pick & PR tomorrow.
GitHub - pojntfx/puregotk at f...




![This code:
{
"id": "com.pojtinger.felicitas.SenbaraGtkExample",
"runtime": "org.gnome.Platform",
"runtime-version": "49",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.golang"],
"command": "example.js",
"build-options": {
"append-path": "/usr/lib/sdk/golang/bin"
},
"finish-args": [
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--device=dri"
],
"modules": [
{
"name": "senbaragtk",
"buildsystem": "meson",
"sources": [{ "type": "dir", "path": "." }, "go.mod.json"]
},
{
"name": "senbaragtkexample",
"buildsystem": "simple",
"build-commands": ["install -Dm755 example.js /app/bin/example.js"],
"sources": [{ "type": "file", "path": "example.js" }]
}
]
}
The app is running to the right as an overlay. The text is in German.](https://files.mastodon.social/cache/media_attachments/files/115/609/330/726/756/987/small/3264a71a6b2cf6a8.png)
![This code:
{
"id": "com.pojtinger.felicitas.SenbaraGtkExample",
"runtime": "org.gnome.Platform",
"runtime-version": "49",
"sdk": "org.gnome.Sdk",
"sdk-extensions": ["org.freedesktop.Sdk.Extension.golang"],
"command": "example.js",
"build-options": {
"append-path": "/usr/lib/sdk/golang/bin"
},
"finish-args": [
"--socket=wayland",
"--socket=fallback-x11",
"--share=ipc",
"--device=dri"
],
"modules": [
{
"name": "senbaragtk",
"buildsystem": "meson",
"sources": [{ "type": "dir", "path": "." }, "go.mod.json"]
},
{
"name": "senbaragtkexample",
"buildsystem": "simple",
"build-commands": ["install -Dm755 example.js /app/bin/example.js"],
"sources": [{ "type": "file", "path": "example.js" }]
}
]
}
The app is running to the right as an overlay. The text is in German.](https://files.mastodon.social/media_attachments/files/115/609/304/481/418/940/small/8cfb006748edb136.png)