[Github-comments] [geany/geany] plugins: separate geany_plugin_set_data() dual-use (437837d)
Matthew Brush
notifications at xxxxx
Wed Sep 21 02:52:10 UTC 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160920/95cb72e0/attachment.html>
More information about the Github-comments
mailing list