]> git.sesse.net Git - vlc/blobdiff - plugins/beos/PlayListWindow.cpp
* ./plugins/gtk/gnome_callbacks.c: fixed a crash when activating preferences
[vlc] / plugins / beos / PlayListWindow.cpp
index a29c6b2914685575a1f0cc44d943cc36a41da86f..e32a39845d1534e7717177fa7b91382e4a7f73b7 100644 (file)
@@ -2,7 +2,7 @@
  * PlayListWindow.cpp: beos interface
  *****************************************************************************
  * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: PlayListWindow.cpp,v 1.5 2001/12/30 07:09:54 sam Exp $
+ * $Id: PlayListWindow.cpp,v 1.5.2.1 2002/06/01 10:12:10 tcastley Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -43,12 +43,22 @@ extern "C"
 
 /* BeOS interface headers */
 #include "InterfaceWindow.h"
-#include "PlayListWindow.h"
 #include "MsgVals.h"
+#include "PlayListWindow.h"
 
 /*****************************************************************************
  * PlayListWindow
  *****************************************************************************/
+PlayListWindow *PlayListWindow::getPlayList( BRect frame, const char *name,
+                                  playlist_t *p_pl)
+{
+    static PlayListWindow *one_playlist;
+    if (one_playlist == NULL)
+    {
+       one_playlist = new PlayListWindow(frame, name, p_pl);
+    }
+    return one_playlist;
+}
 
 PlayListWindow::PlayListWindow( BRect frame, const char *name,
                                   playlist_t *p_pl)
@@ -144,3 +154,16 @@ void PlayListWindow::MessageReceived( BMessage * p_message )
         break;
     }
 }
+
+bool PlayListWindow::QuitRequested()
+{
+    Hide(); 
+    return false;
+}
+
+void PlayListWindow::ReallyQuit()
+{
+    Hide(); 
+    Lock();
+    Quit();
+}
\ No newline at end of file