Seems like #GTK 4 really discourages using drag and drop as a method of sorting lists. My implementation is reaching 200+ lines. I get that it's not very accessible, and maybe impossible on devices without a mouse. But I'm struggling to think of an alternative for large lists of items such as music playlists. Using Up/Down buttons to move an item from position 1 to position 100 seems like a lot of presses... #gnome

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

💡

#GNU #Linux #Softwareentwicklung #Programmieren #gtk #gkt4

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.

#Linux #gtk #HelloWorld #gtk4

Movim • Hello World - gtk4

Hier mal ein kleines und einfaches Beispiel in gtk4. Compiliert und läuft. #include…

#Phosh's Wi-Fi #hotspot quick setting gained a status page showing the necessary data to connect it as #qrcode. The password can also easily by revealed (e.g. for devices without a (working) camera). This was implemented by @arunmani .

#LinuxMobile #gtk

TIL about GTK Blueprint. nice!

"Blueprint is a markup language and compiler for GTK 4 user interfaces."

https://gnome.pages.gitlab.gnome.org/blueprint-compiler/

#gnome #gtk #ui

Blueprint documentation

Post by Phosh.mobi e.V., @ev@social.phosh.mobi

We're planning a #Phosh contributors meeting in May 2026 and are looking for financial support https://ev.phosh.mobi/blog/pcm-funding-25-11/ . We'll follow up with details on the event as soon as the date is confirmed. #LinuxMobile

social.phosh.mobi

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

#typst #gnome #gtk #flatpak

Install Typesetter on Linux | Flathub

Minimalist Typst editor

First deep dive into GTK's styling... I'm probably violating a bunch of rules, but at least it works well enough x3

#Gtk 4 #GNOME #Linux

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

#GNOME #i18n #GTK #Python

GitHub - Revisto/drum-machine: A drum machine application, built with Python, GTK4, libadwaita, and Pygame.

A drum machine application, built with Python, GTK4, libadwaita, and Pygame. - Revisto/drum-machine

GitHub
GitHub - johnfactotum/foliate: Read e-books in style

Read e-books in style. Contribute to johnfactotum/foliate development by creating an account on GitHub.

GitHub
×

For all the KDE Kate enthusiasts and GTK developers (which I am sure there are except for just me haha), https://invent.kde.org/utilities/kate/-/merge_requests/1900 and https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/748 have both been merged into their respective projects, meaning Kate and Kwrite now supports Blueprint, the next-gen markup language for GTK/Libadwaita applications!

#Kate #KDE #GTK

@zoeyTheWitch still can't believe that a text editor can do all of that, might as well just call it an IDE at this point.
@zoeyTheWitch next-gen *markup language

@zoeyTheWitch Never heard about Blueprint before. 🤔 Is it meant to replace the current workflow regarding GTK Builder at some point (which currently loads XML files)?

Looks really promising! And thanks for those Kate improvements, I actually use it for GTK! :D

@Natanox Currently, blueprint compiles to GtkBuilder XML code at runtime, and is just meant to make it more accessible to write the UI code for GTK apps.

It's already used in most circle and external GTK4/Libadawita apps, and a few core ones like Settings,Web, Calendar and the new video player and PDF viewer added last update, showtime and Papers.

@zoeyTheWitch @Natanox small correction: It does so at build time.
@zoeyTheWitch @Natanox well I mean technically nothing prevents you from doing it at runtime… but you definitely don’t need to haha

@zoeyTheWitch > For all the KDE Kate enthusiasts and GTK developers

Not the weirdest platform anyone has ever targeted with Blueprint. But I wouldn’t know anything about that… https://extensions.panic.com/extensions/page.kramo/page.kramo.Blueprint/

GTK Blueprint | Nova Extensions

LSP, syntax highlighting, and formatting for GTK Blueprint.

@kramo everything with a plugin system will be blueprinted!!!