Gtk4 How to add an icon from gresources to a gio menuitem?

Hello,

I want to add an icon from gresources to my gio menuitem.
There is a function set_icon which demands gio::Icon
but I don't understand how to properly create it.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.