]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/playlist.m
* Fix the state of the playlist and fullscreen button.
[vlc] / modules / gui / macosx / playlist.m
index c97252d83ca43ef143b7034e9e56522f57a55037..0801d4f8eee4079ef4e025df55c03936daf9380d 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.47 2003/12/10 12:57:12 bigben Exp $
+ * $Id: playlist.m,v 1.48 2003/12/11 19:34:46 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
         [NSArray arrayWithObjects: NSFilenamesPboardType, nil]];
 
     [o_window setExcludedFromWindowsMenu: TRUE];
+    [self initStrings];
+}
 
+- (void)initStrings
+{
     [o_window setTitle: _NS("Playlist")];
     [o_mi_save_playlist setTitle: _NS("Save Playlist...")];
     [o_mi_play setTitle: _NS("Play")];
     [o_loop_ckb setTitle: _NS("Repeat Playlist")];
     [o_repeat_ckb setTitle: _NS("Repeat Item")];
     [o_search_button setTitle: _NS("Search")];
+    [o_btn_playlist setToolTip: _NS("Playlist")];
 }
 
 - (BOOL)tableView:(NSTableView *)o_tv 
     if( [o_window isVisible] )
     {
         [o_window orderOut:sender];
+        [o_btn_playlist setState:NSOffState];
     }
     else
     {
         [o_window makeKeyAndOrderFront:sender];
+        [o_btn_playlist setState:NSOnState];
     }
 }
 
     [self updateRowSelection];
 }
 
+/* Delegate method of NSWindow */
+- (void)windowWillClose:(NSNotification *)aNotification
+{
+    [o_btn_playlist setState: NSOffState];
+}
+
 @end