Sorry for the spam, but a related idea (so I can find it later). We could have a macro like this:
```c #define GEANY_PLUGIN_REGISTER_OBJECT(plugin, min_api, gtype, ...) \ GEANY_PLUGIN_REGISTER_FULL (plugin, \ min_api, \ g_object_new (gtype, ##__VA_ARGS__), \ g_object_unref) ``` To provide syntax sugar to bind a GObject to the module's lifetime. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/commit/437837d3a54367393c41d6c1e1f4d1af4481627e#commitcomment-19107429