In migrating guide from Gtk 3 to Gtk 4 this was there :
Stop using GtkButton’s image-related API
The functions and properties related to automatically add a GtkImage to a GtkButton, and using a GtkSetting to control its visibility, are not supported in GTK 4. Instead, you can just pack a GtkImage inside a GtkButton, and control its visibility like you would for any other widget. If you only want to add a named icon to a GtkButton, you can use
gtk_button_set_icon_name()
.
I can’t understand this. Like how can you add image to a button? Is it the same as in Gtk 3 or not possible at all in 4?
One more: How to install Gtk 4 in Debian (without from source) ?