comparison gui/ui/gtk/preferences.c @ 34685:311b47301ea7

Remove gstrcasecmp(). This function isn't necessary. strcasecmp() can be used just as well, because both arguments to the gstrcasecmp() calls have been checked to be not NULL prior to the call.
author ib
date Fri, 24 Feb 2012 17:26:35 +0000
parents b03481253518
children ac6b38cd0d45
comparison
equal deleted inserted replaced
34684:b03481253518 34685:311b47301ea7
317 #ifdef CONFIG_ICONV 317 #ifdef CONFIG_ICONV
318 if ( sub_cp ) 318 if ( sub_cp )
319 { 319 {
320 int i; 320 int i;
321 for ( i=0;lEncoding[i].name;i++ ) 321 for ( i=0;lEncoding[i].name;i++ )
322 if ( !gstrcasecmp( sub_cp,lEncoding[i].name ) ) break; 322 if ( !strcasecmp( sub_cp,lEncoding[i].name ) ) break;
323 if ( lEncoding[i].name ) gtk_entry_set_text( GTK_ENTRY( ESubEncoding ),lEncoding[i].comment ); 323 if ( lEncoding[i].name ) gtk_entry_set_text( GTK_ENTRY( ESubEncoding ),lEncoding[i].comment );
324 } 324 }
325 #endif 325 #endif
326 326
327 /* 4th page */ 327 /* 4th page */
336 gtk_adjustment_set_value( HSFontOSDScaleadj,osd_font_scale_factor ); 336 gtk_adjustment_set_value( HSFontOSDScaleadj,osd_font_scale_factor );
337 if ( subtitle_font_encoding ) 337 if ( subtitle_font_encoding )
338 { 338 {
339 int i; 339 int i;
340 for ( i=0;lEncoding[i].name;i++ ) 340 for ( i=0;lEncoding[i].name;i++ )
341 if ( !gstrcasecmp( subtitle_font_encoding,lEncoding[i].name ) ) break; 341 if ( !strcasecmp( subtitle_font_encoding,lEncoding[i].name ) ) break;
342 if ( lEncoding[i].name ) gtk_entry_set_text( GTK_ENTRY( EFontEncoding ),lEncoding[i].comment ); 342 if ( lEncoding[i].name ) gtk_entry_set_text( GTK_ENTRY( EFontEncoding ),lEncoding[i].comment );
343 } 343 }
344 switch ( subtitle_autoscale ) 344 switch ( subtitle_autoscale )
345 { 345 {
346 case 0: gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBFontNoAutoScale ),TRUE ); break; 346 case 0: gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( RBFontNoAutoScale ),TRUE ); break;