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

Colomban Wendling notifications at xxxxx
Tue Sep 8 14:16:38 UTC 2015


> +	g_return_if_fail(data->menu_items);
> +
> +	g_slist_free_full(data->menu_items, (GDestroyNotify) gtk_widget_destroy);
> +	g_ptr_array_unref(data->strings);
> +}
> +
> +
> +static gint demoproxy_probe(GeanyPlugin *proxy, const gchar *filename, gpointer pdata)
> +{
> +	/* We know the extension is right (Geany checks that). For demo purposes we perform an
> +	 * additional check. This is not necessary when the extension is unique enough. */
> +	gboolean match;
> +	gchar linebuf[128];
> +	FILE *f = fopen(filename, "r");
> +	fgets(linebuf, sizeof(linebuf), f);
> +	match = utils_str_equal(linebuf, "#!!proxy_MAGIC!!\n");

the magic doesn't match the one in the docs or the one actually used in the sample *.px*

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


More information about the Github-comments mailing list