]> git.sesse.net Git - vlc/commitdiff
* fixing the OSX playlist (at least it compiles again)
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 7 Nov 2004 00:28:16 +0000 (00:28 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 7 Nov 2004 00:28:16 +0000 (00:28 +0000)
modules/gui/macosx/playlist.m
modules/gui/macosx/playlistinfo.m

index 84598a7d1ad3fdaf3fd7117726882f4b9534c779..29f6d4253857676012cc54ffe85654f1028ed2e0 100644 (file)
@@ -84,7 +84,7 @@
                 o_number = [o_to_delete lastObject];
                 i_row = [o_number intValue];
 
-                if( p_playlist->i_index == i_row && p_playlist->i_status )
+                if( p_playlist->i_index == i_row && p_playlist->status.i_status )
                 {
                     playlist_Stop( p_playlist );
                 }
@@ -368,7 +368,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
         o_number = [o_to_delete lastObject];
         i_row = [o_number intValue];
 
-        if( p_playlist->i_index == i_row && p_playlist->i_status )
+        if( p_playlist->i_index == i_row && p_playlist->status.i_status )
         {
             playlist_Stop( p_playlist );
         }
@@ -388,6 +388,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
 
 - (IBAction)toggleItemsEnabled:(id)sender
 {
+#if 0
     int i, c, i_row;
     NSMutableArray *o_selected;
     NSNumber *o_number;
@@ -410,7 +411,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
         {
             o_number = [o_selected lastObject];
             i_row = [o_number intValue];
-            if( p_playlist->i_index == i_row && p_playlist->i_status )
+            if( p_playlist->i_index == i_row && p_playlist->status.i_status )
             {
                 playlist_Stop( p_playlist );
             }
@@ -430,10 +431,12 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
     }
     vlc_object_release( p_playlist );
     [self playlistUpdated];
+#endif
 }
 
 - (IBAction)enableGroup:(id)sender
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                                        FIND_ANYWHERE );
@@ -444,10 +447,12 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
                 p_playlist->pp_items[[o_table_view selectedRow]]->i_group);
         vlc_object_release(p_playlist);
     }
+#endif
 }
 
 - (IBAction)disableGroup:(id)sender
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                                        FIND_ANYWHERE );
@@ -458,6 +463,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
                 p_playlist->pp_items[[o_table_view selectedRow]]->i_group);
         vlc_object_release(p_playlist);
     }
+#endif
 }
 
 - (IBAction)selectAll:(id)sender
@@ -728,6 +734,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
 
 - (void)deleteGroup:(int)i_id
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                                        FIND_ANYWHERE );
@@ -776,6 +783,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
         vlc_object_release(p_playlist);
         [self playlistUpdated];
     }
+#endif
 }
 
 - (NSColor *)getColor:(int)i_group
@@ -927,6 +935,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
                                                FIND_ANYWHERE );
     if (p_playlist)
     {
+#if 0
         if ((p_playlist->i_groups) > 1 )
         {
             [o_cell setDrawsBackground: VLC_TRUE];
@@ -937,7 +946,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
         {
             [o_cell setDrawsBackground: VLC_FALSE];
         }
-
+#endif
         if (!p_playlist->pp_items[i_rows]->b_enabled)
         {
             [o_cell setTextColor: [NSColor colorWithDeviceRed:0.3686 green:0.3686 blue:0.3686 alpha:1.0]];
index 04b6b210d81b676510eb5ae7050e67249adac517..cf7cfac3e203e2d1a80ad432e56d6449c498e757 100644 (file)
         playlist_ItemAddInfo(p_playlist->pp_items[i_item],_("General"),_("Author"), [[o_author_txt stringValue] cString]);
 
         c = (int)[o_selected count];
-
+#if 0
         if ([[o_group_cbx stringValue] isEqual:
                     [o_group_cbx objectValueOfSelectedItem]])
         {
             }
         }
 
-
+#endif
         vlc_mutex_unlock(&p_playlist->pp_items[i_item]->input.lock);
         val.b_bool = VLC_TRUE;
         var_Set( p_playlist,"intf-change",val );
 
 - (IBAction)handleGroup:(id)sender
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                           FIND_ANYWHERE );
         }
     vlc_object_release(p_playlist);
     }
+#endif
 }
 
 - (IBAction)deleteOutlineGroup:(id)sender
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                           FIND_ANYWHERE );
         }
     vlc_object_release(p_playlist);
     }
+#endif
 }
 
 - (IBAction)createOutlineGroup:(id)sender;
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                           FIND_ANYWHERE );
         [[[VLCMain sharedInstance] getPlaylist] playlistUpdated];
         vlc_object_release(p_playlist);
     }
+#endif
 }
 
 -(void)createComboBox
 {
+#if 0
     intf_thread_t * p_intf = VLCIntf;
     playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
                                           FIND_ANYWHERE );
         }
     vlc_object_release(p_playlist);
     }
+#endif
 }
 
 - (int)getItem