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:
parent
e52c44bc08
commit
3ba9517d8f
@ -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>
|
2010-12-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||||
|
|
||||||
* doc/geany.txt, doc/geany.html:
|
* doc/geany.txt, doc/geany.html:
|
||||||
|
@ -825,6 +825,7 @@ load_plugins_from_path(const gchar *path)
|
|||||||
{
|
{
|
||||||
GSList *list, *item;
|
GSList *list, *item;
|
||||||
gchar *fname, *tmp;
|
gchar *fname, *tmp;
|
||||||
|
gint count = 0;
|
||||||
|
|
||||||
list = utils_get_file_list(path, NULL, NULL);
|
list = utils_get_file_list(path, NULL, NULL);
|
||||||
|
|
||||||
@ -835,12 +836,16 @@ load_plugins_from_path(const gchar *path)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
fname = g_strconcat(path, G_DIR_SEPARATOR_S, item->data, NULL);
|
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_free(fname);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_slist_foreach(list, (GFunc) g_free, NULL);
|
g_slist_foreach(list, (GFunc) g_free, NULL);
|
||||||
g_slist_free(list);
|
g_slist_free(list);
|
||||||
|
|
||||||
|
if (count)
|
||||||
|
geany_debug("Found %d plugin(s) in '%s'.", count, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user