Use Gio::Resource::get_info_global().

Instead of the C API.
Use Gio::Resource::open_stream_global().

Instead of g_resources_open_stream().