Conversation
|
I have experience implementing another dialog API at All of GTK's recent dialogs have an async API, as opposed to signal-based In practice, if you want to obtain a response, you await ( Triggering the cancellable passed to the async call causes the GTK dialogs to pop down and throw |
|
@bugaevc yeah I agree an async API would be good. I've already seen some issues with GTK4 porting that would've been easier to solve with an async API for messagedialog so I'm totally onboard with that. I also wouldn't mind getting rid of the response signal altogether. I think Adw still has it? But I'm not strongly attached to it |
A new AlertDialog based on PortalDialog to replace MessageDialog since it's Gtk.Dialog based on Gtk.Dialog is deprecated.
Todo:
Things to figure out:
stringID which is good for making code more maintainable and on our side it makes it easer t use GLibAction for things like action enabled, but in places where we want to use alerts (like portals) an int response is required (and Gtk uses int still). Which use case do we optimize for?