I know this question exists How to add an image to a button with GTK but gtk_button_set_image is deprecated in gtk4.
gtk_button_set_image