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

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 this gio::Icon from gio::Resource.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.