]> git.sesse.net Git - vlc/commitdiff
Checkboxes stat at startup, in the playlist, now reflect the state set ine the prefs...
authorBenjamin Pracht <bigben@videolan.org>
Mon, 17 Nov 2003 14:11:05 +0000 (14:11 +0000)
committerBenjamin Pracht <bigben@videolan.org>
Mon, 17 Nov 2003 14:11:05 +0000 (14:11 +0000)
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
modules/gui/macosx/playlist.m

index 5f136dc514869517e8635d91b2f8ddcc0b1043e3..116dfa27168e601ddac9690511017ef51e4a9272 100644 (file)
        <array/>
        <key>IBOpenObjects</key>
        <array>
-               <integer>29</integer>
+               <integer>915</integer>
                <integer>21</integer>
-               <integer>1647</integer>
                <integer>636</integer>
-               <integer>915</integer>
+               <integer>29</integer>
+               <integer>1647</integer>
        </array>
        <key>IBSystem Version</key>
        <string>7C107</string>
index e0b59900aac50c77c57812d8803f746c348da01b..25825ca3d094dfb3cd663c87d800d7bb5517b658 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib differ
index f79689921b1217f8aab0e31fa9766b28dc40d1c6..a1b92906f5fc643c102d57a1a641ff6bfdb82068 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.40 2003/11/17 13:05:17 bigben Exp $
+ * $Id: playlist.m,v 1.41 2003/11/17 14:11:05 bigben Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
     [o_loop_ckb setTitle: _NS("Repeat All")];
     [o_repeat_ckb setTitle: _NS("Repeat One")];
 
+
+    vlc_value_t val;
+    intf_thread_t * p_intf = [NSApp getIntf];
+    playlist_t * p_playlist = vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST,
+                                                       FIND_ANYWHERE );
+    if( p_playlist != NULL )
+    {
+    int i_state;
+
+    var_Get( p_playlist, "random", &val );
+    i_state = val.b_bool ? NSOnState : NSOffState;
+    [o_random_ckb setState: i_state];
+
+    var_Get( p_playlist, "loop", &val );
+    i_state = val.b_bool ? NSOnState : NSOffState;
+    [o_loop_ckb setState: i_state];
+
+    var_Get( p_playlist, "repeat", &val );
+    i_state = val.b_bool ? NSOnState : NSOffState;
+    [o_repeat_ckb setState: i_state];
+
+    vlc_mutex_unlock( &p_playlist->object_lock );
+    vlc_object_release( p_playlist );
+    }
+
+
 }
 
 - (BOOL)tableView:(NSTableView *)o_tv