Revision: 5662 http://geany.svn.sourceforge.net/geany/?rev=5662&view=rev Author: ntrel Date: 2011-03-31 17:28:03 +0000 (Thu, 31 Mar 2011)
Log Message: ----------- Fix optimization for filter check when pattern is '*'. Use foreach_strv() instead of foreach_c_array().
Modified Paths: -------------- trunk/ChangeLog trunk/plugins/filebrowser.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2011-03-31 15:34:55 UTC (rev 5661) +++ trunk/ChangeLog 2011-03-31 17:28:03 UTC (rev 5662) @@ -6,6 +6,9 @@ * plugins/filebrowser.c: Fix applying default setting for hide_object_files (oops). Fix warning when enabling plugin from the Plugin Manager. + * plugins/filebrowser.c: + Fix optimization for filter check when pattern is '*'. + Use foreach_strv() instead of foreach_c_array().
2011-03-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/filebrowser.c =================================================================== --- trunk/plugins/filebrowser.c 2011-03-31 15:34:55 UTC (rev 5661) +++ trunk/plugins/filebrowser.c 2011-03-31 17:28:03 UTC (rev 5662) @@ -163,15 +163,13 @@ static gboolean check_filtered(const gchar *base_name) { gchar **filter_item; - guint len;
if (filter == NULL) return FALSE;
- len = g_strv_length(filter); - foreach_c_array(filter_item, filter, len) + foreach_strv(filter_item, filter) { - if (utils_str_equal(base_name, "*") || g_pattern_match_simple(*filter_item, base_name)) + if (utils_str_equal(*filter_item, "*") || g_pattern_match_simple(*filter_item, base_name)) { return FALSE; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.