Add debug message with the number of compatible plugins in each

plugin search path when showing the Plugin Manager dialog.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5507 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2011-01-04 12:41:22 +00:00
parent e52c44bc08
commit 3ba9517d8f
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-01-04 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/plugins.c:
Add debug message with the number of compatible plugins in each
plugin search path when showing the Plugin Manager dialog.
2010-12-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* doc/geany.txt, doc/geany.html:

View File

@ -825,6 +825,7 @@ load_plugins_from_path(const gchar *path)
{
GSList *list, *item;
gchar *fname, *tmp;
gint count = 0;
list = utils_get_file_list(path, NULL, NULL);
@ -835,12 +836,16 @@ load_plugins_from_path(const gchar *path)
continue;
fname = g_strconcat(path, G_DIR_SEPARATOR_S, item->data, NULL);
plugin_new(fname, FALSE, TRUE);
if (plugin_new(fname, FALSE, TRUE))
count++;
g_free(fname);
}
g_slist_foreach(list, (GFunc) g_free, NULL);
g_slist_free(list);
if (count)
geany_debug("Found %d plugin(s) in '%s'.", count, path);
}