Writing TINY Desktop Apps in C and GTK3

submited by
Style Pass
2024-11-06 23:00:05

In this tutorial, I will show you how to write a proper GTK3 app, like a civilized being, instead of shipping your "desktop app" as a website in a web browser.

Of course, you aren't going to write your UI in C, only an idiot would do that. Instead, you want to write it in some kind of markup language. Lucky for us, GTK has just that.

When it comes to loading this binary in, you have a few options: 1. Load a UI file in with linker trickery 2. Convert the file to a C header with xxd -i, and load it in as a string 3. Just load the file in via path

No. That's not a joke. You literally just have to install MinGW (sudo apt install gcc-mingw-w64-x86-64), and you can actually compile this.

Thanks to some archive scouring and msys2 ripping over at my windows-gtk repository, I figured out how to make GTK cross compilation actually not a nightmare.

Leave a Comment