[Github-comments] [geany] Allow calls to plugin_module_make_resident() from geany_load_module() (#760)

Colomban Wendling notifications at xxxxx
Sun Nov 15 00:28:34 UTC 2015


This is useful if a plugin registers i.e. GTypes from its
geany_load_module(), i.e. to implement plugin functions as GObject
class methods.

The implementation can be considered a slight hack, but we need the
module to be know already in geany_load_module(), which is called too
early for the normal process to set it.

Closes #719.

---

This is the "hackish" way as mentioned in https://github.com/geany/geany/pull/719#issuecomment-152766371, but it actually looks quite better than altering the documentation like with #759, and it's more convenient for users.

It's a trivial change, and tested working.

@kugel- how do you feel about this?
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/760

-- Commit Summary --

  * Allow calls to plugin_module_make_resident() from geany_load_module()

-- File Changes --

    M src/plugindata.h (1)
    M src/plugins.c (4)

-- Patch Links --

https://github.com/geany/geany/pull/760.patch
https://github.com/geany/geany/pull/760.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/760
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151114/26f5f00e/attachment.html>


More information about the Github-comments mailing list