Changeset 7261
- Timestamp:
- Dec 3, 2008, 3:59:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/tr-window.c
r7123 r7261 275 275 276 276 static int 277 checkFilterText( filter_text_mode_t filter_text_mode,278 const tr_info *torInfo,279 const char *text )277 checkFilterText( filter_text_mode_t filter_text_mode, 278 const tr_info * torInfo, 279 const char * text ) 280 280 { 281 281 tr_file_index_t i; … … 288 288 for( i = 0; i < torInfo->fileCount && !ret; ++i ) 289 289 { 290 pch = g_ ascii_strdown( torInfo->files[i].name, -1 );290 pch = g_utf8_casefold( torInfo->files[i].name, -1 ); 291 291 ret = !text || strstr( pch, text ) != NULL; 292 292 g_free( pch ); … … 295 295 296 296 case FILTER_TEXT_MODE_TRACKER: 297 pch = g_ ascii_strdown( torInfo->trackers[0].announce, -1 );297 pch = g_utf8_casefold( torInfo->trackers[0].announce, -1 ); 298 298 ret = !text || ( strstr( pch, text ) != NULL ); 299 299 g_free( pch ); … … 301 301 302 302 default: /* NAME */ 303 pch = g_ ascii_strdown( torInfo->name, -1 );303 pch = g_utf8_casefold( torInfo->name, -1 ); 304 304 ret = !text || ( strstr( pch, text ) != NULL ); 305 305 g_free( pch ); … … 355 355 356 356 return checkFilterMode( p->filter_mode, tor ) 357 && checkFilterText( p->filter_text_mode, tr_torrentInfo( 358 tor ), p->filter_text ); 357 && checkFilterText( p->filter_text_mode, tr_torrentInfo( tor ), p->filter_text ); 359 358 } 360 359 … … 426 425 pch = gtk_editable_get_chars( e, 0, -1 ); 427 426 g_free( p->filter_text ); 428 p->filter_text = g_ ascii_strdown( pch, -1 );427 p->filter_text = g_utf8_casefold( pch, -1 ); 429 428 refilter( p ); 430 429 g_free( pch );
Note: See TracChangeset
for help on using the changeset viewer.