TIL: Normally, GtkApplication will assume that arguments passed on the command line are files to be opened.
./demo /tmp/test
This application can not open files.
🤔
app = gtk_application_new("de.devlug.sandbox.demo", G_APPLICATION_HANDLES_OPEN);
Danach das Signal "open" per g_signal_connect "verbinden".
Open file:///tmp/test
💡
Hier habe ich jetzt mal ein "Hello World" für eine #gtk Anwendung erstellt. In ein paar wenigen Zeile habe ich ein GUI mit zwei Buttons und einem Textfeld.
https://mov.im/community/pubsub.movim.eu/devlug/238d902e-9b0c-4184-a6f5-e3c3602762b8
Ich bin ein Freund von g_assert (oder ähnlichem) geworden:
Debugging macro to terminate the application if the assertion fails.
Es hilft bei finden von Fehler, aber dokumentiert auch so direkt im Code die Erwartungen. Auch im Fall von Reworks / Redesign können sie sehr hilfreich sein.
TIL about GTK Blueprint. nice!
"Blueprint is a markup language and compiler for GTK 4 user interfaces."
Would be great if that would happen:
https://social.phosh.mobi/@ev/statuses/01KB51N0TPZ0MS45Y082E99J5J
The latest update to Typesetter is now available, bringing code completions/suggestions (through a Ctrl+Space keyboard shortcut), new animations, a much more performant live preview for long documents (100+ pages), and various minor fixes and improvements.
It should update automatically if you already have it installed, otherwise, check it out on Flathub: https://flathub.org/apps/details/net.trowell.typesetter
I added a new CI check to Drum Machine, it now automatically checks if the .pot translation template file is up to date. If I forget to regenerate it after adding/changing translatable strings (which I usually do), it reminds me :D
You can add it to your own projects as well, just copy the translation-check job from the workflow file and change the paths!
https://github.com/Revisto/drum-machine
