SF.net SVN: geany:[5507] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Tue Jan 4 12:41:22 UTC 2011
Revision: 5507
http://geany.svn.sourceforge.net/geany/?rev=5507&view=rev
Author: ntrel
Date: 2011-01-04 12:41:22 +0000 (Tue, 04 Jan 2011)
Log Message:
-----------
Add debug message with the number of compatible plugins in each
plugin search path when showing the Plugin Manager dialog.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugins.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2011-01-04 09:54:57 UTC (rev 5506)
+++ trunk/ChangeLog 2011-01-04 12:41:22 UTC (rev 5507)
@@ -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:
Modified: trunk/src/plugins.c
===================================================================
--- trunk/src/plugins.c 2011-01-04 09:54:57 UTC (rev 5506)
+++ trunk/src/plugins.c 2011-01-04 12:41:22 UTC (rev 5507)
@@ -825,6 +825,7 @@
{
GSList *list, *item;
gchar *fname, *tmp;
+ gint count = 0;
list = utils_get_file_list(path, NULL, NULL);
@@ -835,12 +836,16 @@
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);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list