can anyone help us with gtk4/gio/etc?
the gtk ppl won't help us, because we keep telling them "we wouldn't be asking this if there were a section [e.g. Getting Started with Gio] in the docs about it, or examples". we guess they don't wanna know how to improve their docs.
=> More informations about this toot | More toots from SoniEx2@chaos.social
(fwiw we're not saying exactly like that, but like, "wait, gio doesn't have examples?" and getting no response. which tells us it probably doesn't, and we're having a really hard time figuring this stuff out.)
=> More informations about this toot | More toots from SoniEx2@chaos.social
@SoniEx2 I have some Gtk4 experience, but it's exclusivery with the Rust APIs (which I think are a bit different than the C ones?). What are you trying to do with Gio?
=> More informations about this toot | More toots from spacekookie@octodon.social
@spacekookie we would like to see an example of a basic TLS client using gio, with proper handling of Happy Eyeballs, including which headers we need to include.
actually yeah that's the main thing we can't quite figure out from the documentation, we don't know which headers we need to include. the docs list multiple headers but we're uncertain if we actually need all of them? (also it sorts them by name, we're not sure if order matters) π the rest we can probably figure out
=> More informations about this toot | More toots from SoniEx2@chaos.social
@SoniEx2 :blobsweats: oof yeah that sounds confusing. "What headers do I need" is quintessential C development lmao π
The Rust gio wrapper has an example for TLS: https://github.com/gtk-rs/gtk-rs-core/blob/main/examples/gio_async_tls/main.rs
Maybe you could learn something from that? I don't know how different the APIs are, but I'd hope at least the core concepts map onto each other π
=> More informations about this toot | More toots from spacekookie@octodon.social
@spacekookie yeah that actually gives us some idea of what we need to do, thanks!
we guess we'll just have to dig into the headers to figure out that part tho. thanks anyway. >.<
=> More informations about this toot | More toots from SoniEx2@chaos.social
@SoniEx2 good luck!! if you need a rubber duck, feel free to dm me :P
=> More informations about this toot | More toots from spacekookie@octodon.social
@SoniEx2 I've found debian code search to be really useful for figuring out how to use some API if the documentation was unclear.
=> More informations about this toot | More toots from karotte@chaos.social This content has been proxied by September (ba2dc).Proxy Information
text/gemini