GNOME Bugzilla – Bug 764293
Add GResource helpers to PeasPluginInfo
Last modified: 2018-05-22 12:15:12 UTC
This would allow easier integration with resources and automatically handle their lifetime. GNOME-Builder would be a primary target for this API.
Created attachment 324903 [details] [review] Preliminary patch This is just an example of what a working patch could be, test cases are still required and actual usage would be desired for inclusion.
Review of attachment 324903 [details] [review]: I like this. I do wonder if it would be useful to simply auto-load the module_name.gresource case. ::: libpeas/peas-plugin-info.h @@ +85,3 @@ + const gchar *filename, + GError **error); +void peas_plugin_info_load_resource (const PeasPluginInfo *info, whitespace
Autoloading will break plugins/applications that are already loading the same .gresource file (i.e. Builder). It might be a better idea to add a key to the .plugin file which would cause them to automatically be loaded or Builder could just call peas_plugin_info_load_resource() manually for every plugin.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libpeas/issues/20.