]> git.sesse.net Git - vlc/commitdiff
Fix hotkeys view in macosx.3 + UTF8 strings in module list
authorJérome Decoodt <djc@videolan.org>
Sun, 8 May 2005 22:56:34 +0000 (22:56 +0000)
committerJérome Decoodt <djc@videolan.org>
Sun, 8 May 2005 22:56:34 +0000 (22:56 +0000)
modules/gui/macosx/prefs_widgets.m

index 18c98fb5de9e53765ea4e9e60423c5406fe23fc7..2d6c9949625a8cbc7383538e4d04ccefd79535c6 100644 (file)
@@ -2170,7 +2170,7 @@ fprintf( stderr, "Applying %f to %s\n" , [self floatValue], psz_name );
                         , vlc_keys[i].i_key_code)
         }
         [o_popup setMenu:[o_keys_menu copyWithZone:nil]];
-        [o_popup selectItemWithTag: p_item->i_value];
+        [o_popup selectItem:[[o_popup menu] itemWithTag:p_item->i_value]];
         [self addSubview: o_popup];
 
     }
@@ -2237,9 +2237,9 @@ if( _p_item->i_type == CONFIG_ITEM_MODULE_LIST )
             if( p_config->i_type == CONFIG_SUBCATEGORY &&
                 p_config->i_value == _p_item->i_min )
             {
-                o_modulelongname = [NSString stringWithCString:
+                o_modulelongname = [NSString stringWithUTF8String:
                                         p_parser->psz_longname];
-                o_modulename = [NSString stringWithCString:
+                o_modulename = [NSString stringWithUTF8String:
                                         p_parser->psz_object_name];
 
                 if( _p_item->psz_value &&