Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Tue, 23 Apr 2024 16:39:58 UTC Commit: 046b01cef4ecb6dee63315db56580b4f09bb2206 https://github.com/geany/geany-plugins/commit/046b01cef4ecb6dee63315db56580b...
Log Message: ----------- geanyctags: Use g_pattern_spec_match_string() instead of g_pattern_match_string()
With a fallback on older glib versions.
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).