Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Tue, 23 Apr 2024 16:56:44 UTC Commit: c5c45f2999803c818176217dc9df50652efe3f94 https://github.com/geany/geany-plugins/commit/c5c45f2999803c818176217dc9df50...
Log Message: ----------- Merge pull request #1333 from techee/ctags_pattern
geanyctags: Use g_pattern_spec_match_string() instead of g_pattern_match_string()
Modified Paths: -------------- geanyctags/src/geanyctags.c
Modified: geanyctags/src/geanyctags.c 6 lines changed, 5 insertions(+), 1 deletions(-) =================================================================== @@ -395,6 +395,10 @@ static gboolean find_next(tagFile *tf, tagEntry *entry, MatchType match_type) return ret; }
+#if ! GLIB_CHECK_VERSION(2, 70, 0) +# define g_pattern_spec_match_string g_pattern_match_string +#endif + static gboolean filter_tag(tagEntry *entry, GPatternSpec *name, gboolean declaration, gboolean case_sensitive) { gboolean filter = TRUE; @@ -415,7 +419,7 @@ static gboolean filter_tag(tagEntry *entry, GPatternSpec *name, gboolean declara else entry_name = g_utf8_strdown(entry->name, -1);
- filter = !g_pattern_match_string(name, entry_name); + filter = !g_pattern_spec_match_string(name, entry_name);
g_free(entry_name);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).