Changeset 6cb3690ff6c3c1cea96017b25b428f8b6e4cde3f

Show
Ignore:
Timestamp:
22/05/03 16:25:34 (6 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1053613534 +0000
git-parent:

[5a4c870baeeeb993dbc2b2aa4af3647a9587e82e]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1053613534 +0000
Message:

* modules/gui/macosx/playlist.m: fixed my fix
* modules/gui/macosx/output.m: removed a debug statement
* modules/gui/macosx/prefs.m: fixed localizations of the prefs panel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/output.m

    rac121d9 r6cb3690  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2003 VideoLAN 
    5  * $Id: output.m,v 1.3 2003/05/21 21:30:30 hartman Exp $ 
     5 * $Id: output.m,v 1.4 2003/05/22 14:25:33 hartman Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>  
     
    303303    } 
    304304    [self setMRL:o_mrl_string]; 
    305     NSLog( o_mrl_string ); 
    306305} 
    307306 
  • modules/gui/macosx/playlist.m

    r5a4c870 r6cb3690  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2003 VideoLAN 
    5  * $Id: playlist.m,v 1.23 2003/05/22 13:40:13 hartman Exp $ 
     5 * $Id: playlist.m,v 1.24 2003/05/22 14:25:34 hartman Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    118118    int i_row = o_rect.origin.y / f_height; 
    119119     
    120     if( [NSColor respondsTo:alternateSelectedControlColor] ) 
     120    if( [o_striped_row_color respondsTo:@selector( alternateSelectedControlColor ) ] ) 
    121121    { 
    122122        [super highlightSelectionInClipRect:o_rect]; 
    123         break
     123        return
    124124    } 
    125125     
  • modules/gui/macosx/prefs.m

    rfa95d6e r6cb3690  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2003 VideoLAN 
    5  * $Id: prefs.m,v 1.23 2003/05/20 18:53:03 hartman Exp $ 
     5 * $Id: prefs.m,v 1.24 2003/05/22 14:25:34 hartman Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    6969    [o_prefs_view setDocumentView: o_empty_view]; 
    7070    [o_tree selectRow:0 byExtendingSelection:NO]; 
    71     //[self loadConfigTree]; 
    7271} 
    7372 
     
    131130    int i_type = [o_vlc_config configType]; 
    132131    NSString *o_name = [o_vlc_config configName]; 
    133     char *psz_name = (char *)[o_name UTF8String]; 
     132    char *psz_name = (char *)[o_name lossyCString]; 
    134133 
    135134    switch( i_type ) 
     
    142141 
    143142            o_value = [o_vlc_config titleOfSelectedItem]; 
    144             psz_value = (char *)[o_value UTF8String]; 
     143            psz_value = (char *)[o_value lossyCString]; 
    145144 
    146145            config_PutPsz( p_intf, psz_name, psz_value ); 
     
    156155 
    157156            o_value = [o_vlc_config stringValue]; 
    158             psz_value = (char *)[o_value UTF8String]; 
     157            psz_value = (char *)[o_value lossyCString]; 
    159158 
    160159            config_PutPsz( p_intf, psz_name, psz_value ); 
     
    207206     
    208207    /* Enumerate config options and add corresponding config boxes */ 
    209     o_module_name = [NSString stringWithUTF8String: p_parser->psz_object_name]; 
     208    o_module_name = [NSString stringWithCString: p_parser->psz_object_name]; 
    210209    p_item = p_parser->p_config; 
    211210 
     
    331330                [o_modules setAction: @selector(configChanged:)]; 
    332331                [o_modules sendActionOn:NSLeftMouseUpMask]; 
     332                 
    333333                if ( psz_duptip != NULL ) 
    334334                { 
     
    350350                                    p_item->psz_type ) ) 
    351351                        { 
    352                             NSString *o_object_name = [NSString 
    353                                 stringWithCString: p_a_module->psz_object_name]; 
     352                            NSString *o_object_name = [NSApp 
     353                                localizedString: p_a_module->psz_object_name]; 
    354354                            [o_modules addItemWithTitle: o_object_name]; 
    355355                        } 
     
    360360                { 
    361361                    NSString *o_value = 
    362                         [NSString stringWithUTF8String: p_item->psz_value]; 
     362                        [NSApp localizedString: p_item->psz_value]; 
    363363     
    364364                    [o_modules selectItemWithTitle: o_value]; 
     
    386386     
    387387                    INPUT_FIELD_STRING( p_item->psz_name, p_item->psz_text, 200, 
    388                                         [NSString stringWithCString: psz_value], 
     388                                        [NSApp localizedString: psz_value], 
    389389                                        p_item->psz_longtext ); 
    390390                } 
     
    421421                    { 
    422422                        [o_combo_box addItemWithObjectValue: 
    423                             [NSString stringWithCString: p_item->ppsz_list[i]]]; 
     423                            [NSApp localizedString: p_item->ppsz_list[i]]]; 
    424424                    } 
    425                     [o_combo_box setStringValue: [NSString stringWithCString:  
     425                    [o_combo_box setStringValue: [NSApp localizedString:  
    426426                        p_item->psz_value ? p_item->psz_value : ""]]; 
    427427     
     
    596596                    { 
    597597                    case CONFIG_HINT_CATEGORY: 
    598                         o_child_name = [NSString stringWithUTF8String: p_item->psz_text]; 
     598                        o_child_name = [NSApp localizedString: p_item->psz_text]; 
    599599                        [o_children addObject:[[VLCTreeItem alloc] initWithName: o_child_name 
    600600                            ID: p_module->i_object_id parent:self]]; 
     
    638638                /* Create the capability tree if it doesn't already exist */ 
    639639                NSString *o_capability; 
    640                 o_capability = [NSString stringWithUTF8String: p_module->psz_capability]; 
     640                o_capability = [NSApp localizedString: p_module->psz_capability]; 
    641641                if( !p_module->psz_capability || !*p_module->psz_capability ) 
    642642                { 
     
    648648                        if( p_submodule->psz_capability && *p_submodule->psz_capability ) 
    649649                        { 
    650                             o_capability = [NSString stringWithUTF8String: p_submodule->psz_capability]; 
     650                            o_capability = [NSApp localizedString: p_submodule->psz_capability]; 
    651651                            BOOL b_found = FALSE; 
    652652                            for( j = 0; j < [o_children count]; j++ ) 
     
    708708                /* Check the capability */ 
    709709                NSString *o_capability; 
    710                 o_capability = [NSString stringWithUTF8String: p_module->psz_capability]; 
     710                o_capability = [NSApp localizedString: p_module->psz_capability]; 
    711711                if( !p_module->psz_capability || !*p_module->psz_capability ) 
    712712                { 
     
    718718                        if( p_submodule->psz_capability && *p_submodule->psz_capability ) 
    719719                        { 
    720                             o_capability = [NSString stringWithUTF8String: p_submodule->psz_capability]; 
     720                            o_capability = [NSApp localizedString: p_submodule->psz_capability]; 
    721721                            if( [o_capability isEqualToString: [self getName]] ) 
    722722                            { 
    723723                            [o_children addObject:[[VLCTreeItem alloc] initWithName: 
    724                                 [NSString stringWithUTF8String: p_module->psz_object_name ] 
     724                                [NSApp localizedString: p_module->psz_object_name ] 
    725725                                ID: p_module->i_object_id parent:self]]; 
    726726                            } 
     
    731731                { 
    732732                    [o_children addObject:[[VLCTreeItem alloc] initWithName: 
    733                         [NSString stringWithUTF8String: p_module->psz_object_name ] 
     733                        [NSApp localizedString: p_module->psz_object_name ] 
    734734                        ID: p_module->i_object_id parent:self]]; 
    735735                }