I know that in Gtk4, the GtkStatusbar widget has been marked as deprecated and will be removed in Gtk5.
What is the plan for Gtk5? What should applications which now use GtkStatusbar be using in Gtk5? I’d like to understand so I can “future-proof” my app.
Reminder: the development of GTK5 has not started, yet.
The real question is: why are you using GtkStatusbar right now? What’s the design of your application, and why does it involve an area showing a label of text?
Originally (i.e. decades ago) the main point of the GtkStatusbar was that it had a resize handle, for changing the window size.
Nowadays, windows can be resized at any of their borders, so functionally the GtkStatusBar is nothing more than a disguised GtkLabel.
A simple Label, with a custom CSS for min-height, padding and maybe a top border will be a good drop-in replacement.
To avoid wasting space, in-app notifications can be considered, as suggested by ebassi.
One thing is not clear to be about Toast. Every time I want to display a notification, I have to create a new Toast and add it to the ToastOverlay, correct? If so, do I have to explicitly destroy the Toast when the message is done displaying?