[Github-comments] [geany] Proxy plugins (#629)
Thomas Martitz
notifications at xxxxx
Thu Sep 24 20:03:39 UTC 2015
> + GList *list;
> +
> + gtk_tree_store_clear(store);
> + list = g_list_first(plugin_list);
> + if (list == NULL)
> + {
> + gtk_tree_store_append(store, &iter, NULL);
> + gtk_tree_store_set(store, &iter, PLUGIN_COLUMN_CHECK, FALSE,
> + PLUGIN_COLUMN_PLUGIN, NULL, -1);
> + }
> + else
> + {
> + Plugin *p;
> + for (; list != NULL; list = list->next)
> + {
> + p = list->data;
Like for (Plugin *p = list->data; list != NULL; list = list->next, p = list ? list->data : NULL)?
I'm not sure that's an improvement really.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/629/files#r40365631
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20150924/45e99112/attachment.html>
More information about the Github-comments
mailing list