[Github-comments] [geany] Proxy plugins (#629)

Colomban Wendling notifications at xxxxx
Fri Oct 2 23:25:14 UTC 2015


> + at endcode
> +
> +Finally the demo_proxy's wrapper GeanyPluginFuncs. They are called for each possible sub-plugin and
> +therefore have to multiplex between each using the plugin-defined data pointer. Each is called by
> +Geany as if it were an ordinary, native plugin.
> +
> +proxy_init() actually reads the sub-plugin's file using GKeyFile APIs. It prepares for the help
> +dialog and installs the menu items. proxy_help() is called when the user clicks the help button in
> +the Plugin Manager. Consequently, this fires up a suitable dialog, although with a dummy message.
> +proxy_cleanup() frees all memory allocated in proxy_init().
> +
> + at code{.c}
> +static gboolean proxy_init(GeanyPlugin *plugin, gpointer pdata)
> +{
> +	PluginContext *data;
> +	gchar fmt[] = "item%d";

here too for the format thing

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/629/files#r41078149
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20151002/d5b240e6/attachment.html>


More information about the Github-comments mailing list