In GTK4 the icon system for displaying the apps have changed. In GTK3/GTK2 we could use simple commands like gtk_window_set_icon() or gtk_window_set_default_ico
I have difficulties to understand the icon system in GTK 4 (I work in C language). In GTK 2 and 3 that was easy to instruct the OS about the icon to use for dis