Mercurial > audlegacy
changeset 1943:488e5560c8b4 trunk
[svn] - use g_strcasecmp instead of several g_strdowns to speed up jump-to-file performance. closes #56
author | nenolod |
---|---|
date | Sun, 05 Nov 2006 13:33:25 -0800 |
parents | 4a1e5cb81524 |
children | e3cd747562d6 |
files | ChangeLog audacious/mainwin.c |
diffstat | 2 files changed, 9 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Nov 05 13:29:22 2006 -0800 +++ b/ChangeLog Sun Nov 05 13:33:25 2006 -0800 @@ -1,3 +1,11 @@ +2006-11-05 21:29:22 +0000 William Pitcock <nenolod@nenolod.net> + revision [2841] + - add keypad-enter binding for queueing files in jump-to-file. closes #295. + + trunk/audacious/mainwin.c | 5 +++++ + 1 file changed, 5 insertions(+) + + 2006-11-05 20:22:41 +0000 William Pitcock <nenolod@nenolod.net> revision [2839] - update russian translation
--- a/audacious/mainwin.c Sun Nov 05 13:29:22 2006 -0800 +++ b/audacious/mainwin.c Sun Nov 05 13:33:25 2006 -0800 @@ -1836,25 +1836,13 @@ mainwin_jump_to_file_match(const gchar * song, gchar ** keys) { gint i = 0; - gchar *key; - gchar *song_lc; - - song_lc = g_ascii_strdown(song, -1); while (keys[i]) { - key = g_ascii_strdown(keys[i], -1); - if (!g_strrstr(song_lc, key)) { - g_free(key); - g_free(song_lc); + if (g_strcasecmp(song, keys[i])) return FALSE; - } - - g_free(key); i++; } - g_free(song_lc); - return TRUE; }