]> git.sesse.net Git - vlc/commitdiff
* modules/gui/macosx/playlist.m: fixed my fix
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 22 May 2003 14:25:34 +0000 (14:25 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 22 May 2003 14:25:34 +0000 (14:25 +0000)
* modules/gui/macosx/output.m: removed a debug statement
* modules/gui/macosx/prefs.m: fixed localizations of the prefs panel.

modules/gui/macosx/output.m
modules/gui/macosx/playlist.m
modules/gui/macosx/prefs.m

index 74f974dd3f5ae67c8ee0dc62e6c98d35b3382b9e..ee31498c21b94a2c051d81f98abfd8ed86798a24 100644 (file)
@@ -2,7 +2,7 @@
  * output.m: MacOS X Output Dialog
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: output.m,v 1.3 2003/05/21 21:30:30 hartman Exp $
+ * $Id: output.m,v 1.4 2003/05/22 14:25:33 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
  *          Christophe Massiot <massiot@via.ecp.fr>
         [o_mrl_string appendString: @"}"];
     }
     [self setMRL:o_mrl_string];
-    NSLog( o_mrl_string );
 }
 
 - (void)TTLChanged:(NSNotification *)o_notification
index 22abc18929e485b0f41aa7117acb2a00b414e536..5c2400fd697a2076f3f18d54cc3daa0d7f5f7b49 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.23 2003/05/22 13:40:13 hartman Exp $
+ * $Id: playlist.m,v 1.24 2003/05/22 14:25:34 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
     float f_origin_y = NSMaxY( o_rect );
     int i_row = o_rect.origin.y / f_height;
     
-    if( [NSColor respondsTo:alternateSelectedControlColor] )
+    if( [o_striped_row_color respondsTo:@selector( alternateSelectedControlColor ) ] )
     {
         [super highlightSelectionInClipRect:o_rect];
-        break;
+        return;
     }
     
     if ( i_row % 2 == 0 )
index 928efce5abc6d83672a59bfe277ab7862cf7213b..cd0c87cc0b682bc79612258e29ba66abec5c6c4e 100644 (file)
@@ -2,7 +2,7 @@
  * prefs.m: MacOS X plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: prefs.m,v 1.23 2003/05/20 18:53:03 hartman Exp $
+ * $Id: prefs.m,v 1.24 2003/05/22 14:25:34 hartman Exp $
  *
  * Authors:    Jon Lech Johansen <jon-vl@nanocrew.net>
  *             Derk-Jan Hartman <thedj at users.sf.net>
@@ -68,7 +68,6 @@
     [o_prefs_view setRulersVisible: YES];
     [o_prefs_view setDocumentView: o_empty_view];
     [o_tree selectRow:0 byExtendingSelection:NO];
-    //[self loadConfigTree];
 }
 
 - (void)initStrings
 
     int i_type = [o_vlc_config configType];
     NSString *o_name = [o_vlc_config configName];
-    char *psz_name = (char *)[o_name UTF8String];
+    char *psz_name = (char *)[o_name lossyCString];
 
     switch( i_type )
     {
             NSString *o_value;
 
             o_value = [o_vlc_config titleOfSelectedItem];
-            psz_value = (char *)[o_value UTF8String];
+            psz_value = (char *)[o_value lossyCString];
 
             config_PutPsz( p_intf, psz_name, psz_value );
         }
             NSString *o_value;
 
             o_value = [o_vlc_config stringValue];
-            psz_value = (char *)[o_value UTF8String];
+            psz_value = (char *)[o_value lossyCString];
 
             config_PutPsz( p_intf, psz_name, psz_value );
         }
     }
     
     /* Enumerate config options and add corresponding config boxes */
-    o_module_name = [NSString stringWithUTF8String: p_parser->psz_object_name];
+    o_module_name = [NSString stringWithCString: p_parser->psz_object_name];
     p_item = p_parser->p_config;
 
     i_pos = 0;
                 [o_modules setTarget: self];
                 [o_modules setAction: @selector(configChanged:)];
                 [o_modules sendActionOn:NSLeftMouseUpMask];
+                
                 if ( psz_duptip != NULL )
                 {
                     [o_modules setToolTip: [NSApp localizedString:
                         if( !strcmp( p_a_module->psz_capability,
                                     p_item->psz_type ) )
                         {
-                            NSString *o_object_name = [NSString
-                                stringWithCString: p_a_module->psz_object_name];
+                            NSString *o_object_name = [NSApp
+                                localizedString: p_a_module->psz_object_name];
                             [o_modules addItemWithTitle: o_object_name];
                         }
                     }
                 if( p_item->psz_value != NULL )
                 {
                     NSString *o_value =
-                        [NSString stringWithUTF8String: p_item->psz_value];
+                        [NSApp localizedString: p_item->psz_value];
     
                     [o_modules selectItemWithTitle: o_value];
                 }
                                     p_item->psz_value : "";
     
                     INPUT_FIELD_STRING( p_item->psz_name, p_item->psz_text, 200,
-                                        [NSString stringWithCString: psz_value],
+                                        [NSApp localizedString: psz_value],
                                         p_item->psz_longtext );
                 }
                 else
                     for( i=0; p_item->ppsz_list[i]; i++ )
                     {
                         [o_combo_box addItemWithObjectValue:
-                            [NSString stringWithCString: p_item->ppsz_list[i]]];
+                            [NSApp localizedString: p_item->ppsz_list[i]]];
                     }
-                    [o_combo_box setStringValue: [NSString stringWithCString: 
+                    [o_combo_box setStringValue: [NSApp localizedString: 
                         p_item->psz_value ? p_item->psz_value : ""]];
     
                     CONTROL_LABEL( p_item->psz_text );
@@ -595,7 +595,7 @@ static VLCTreeItem *o_root_item = nil;
                     switch( p_item->i_type )
                     {
                     case CONFIG_HINT_CATEGORY:
-                        o_child_name = [NSString stringWithUTF8String: p_item->psz_text];
+                        o_child_name = [NSApp localizedString: p_item->psz_text];
                         [o_children addObject:[[VLCTreeItem alloc] initWithName: o_child_name
                             ID: p_module->i_object_id parent:self]];
                         break;
@@ -637,7 +637,7 @@ static VLCTreeItem *o_root_item = nil;
         
                 /* Create the capability tree if it doesn't already exist */
                 NSString *o_capability;
-                o_capability = [NSString stringWithUTF8String: p_module->psz_capability];
+                o_capability = [NSApp localizedString: p_module->psz_capability];
                 if( !p_module->psz_capability || !*p_module->psz_capability )
                 {
                     /* Empty capability ? Let's look at the submodules */
@@ -647,7 +647,7 @@ static VLCTreeItem *o_root_item = nil;
                         p_submodule = (module_t*)p_module->pp_children[ j ];
                         if( p_submodule->psz_capability && *p_submodule->psz_capability )
                         {
-                            o_capability = [NSString stringWithUTF8String: p_submodule->psz_capability];
+                            o_capability = [NSApp localizedString: p_submodule->psz_capability];
                             BOOL b_found = FALSE;
                             for( j = 0; j < [o_children count]; j++ )
                             {
@@ -707,7 +707,7 @@ static VLCTreeItem *o_root_item = nil;
         
                 /* Check the capability */
                 NSString *o_capability;
-                o_capability = [NSString stringWithUTF8String: p_module->psz_capability];
+                o_capability = [NSApp localizedString: p_module->psz_capability];
                 if( !p_module->psz_capability || !*p_module->psz_capability )
                 {
                     /* Empty capability ? Let's look at the submodules */
@@ -717,11 +717,11 @@ static VLCTreeItem *o_root_item = nil;
                         p_submodule = (module_t*)p_module->pp_children[ j ];
                         if( p_submodule->psz_capability && *p_submodule->psz_capability )
                         {
-                            o_capability = [NSString stringWithUTF8String: p_submodule->psz_capability];
+                            o_capability = [NSApp localizedString: p_submodule->psz_capability];
                             if( [o_capability isEqualToString: [self getName]] )
                             {
                             [o_children addObject:[[VLCTreeItem alloc] initWithName:
-                                [NSString stringWithUTF8String: p_module->psz_object_name ]
+                                [NSApp localizedString: p_module->psz_object_name ]
                                 ID: p_module->i_object_id parent:self]];
                             }
                         }
@@ -730,7 +730,7 @@ static VLCTreeItem *o_root_item = nil;
                 else if( [o_capability isEqualToString: [self getName]] )
                 {
                     [o_children addObject:[[VLCTreeItem alloc] initWithName:
-                        [NSString stringWithUTF8String: p_module->psz_object_name ]
+                        [NSApp localizedString: p_module->psz_object_name ]
                         ID: p_module->i_object_id parent:self]];
                 }
             }