Example #1
0
/*****************************************************************************
 * InterfaceWindow::QuitRequested
 *****************************************************************************/
bool InterfaceWindow::QuitRequested()
{
    if( p_playlist )
    {
        playlist_Stop( p_playlist );
    }
    p_mediaControl->SetStatus(-1, INPUT_RATE_DEFAULT);

     _StoreSettings();

    vlc_object_kill( p_intf );

    return( true );
}
Example #2
0
bool
App::QuitRequested()
{
    if (fMainWindow != NULL
            && fMainWindow->LockLooperWithTimeout(1500000) == B_OK) {
        BMessage windowSettings;
        fMainWindow->StoreSettings(windowSettings);

        fMainWindow->UnlockLooper();

        _StoreSettings(windowSettings);
    }

    return true;
}
Example #3
0
void
App::MessageReceived(BMessage* message)
{
    switch (message->what) {
    case MSG_MAIN_WINDOW_CLOSED:
    {
        BMessage windowSettings;
        if (message->FindMessage("window settings",
                                 &windowSettings) == B_OK) {
            _StoreSettings(windowSettings);
        }

        fWindowCount--;
        if (fWindowCount == 0)
            Quit();
        break;
    }

    default:
        BApplication::MessageReceived(message);
        break;
    }
}