Skip to content

Commit

Permalink
changed: tune the message time for the toggle subtitle on/off and str…
Browse files Browse the repository at this point in the history
…eam change actions

(cherry picked from commit 89d66288a7d32dcfcf904b4e4b2550dbfe904a9c)

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@35246 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
spiff_ committed Nov 10, 2010
1 parent e19d26a commit 014b45b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xbmc/GUIWindowFullScreen.cpp
Expand Up @@ -171,6 +171,8 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action)
}
}

const unsigned int MsgTime = 300;

switch (action.GetID())
{
case ACTION_SHOW_OSD:
Expand Down Expand Up @@ -258,7 +260,7 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action)
else
sub = g_localizeStrings.Get(1223);
g_application.m_guiDialogKaiToast.QueueNotification(CGUIDialogKaiToast::Info,
g_localizeStrings.Get(287), sub, TOAST_DISPLAY_TIME, false);
g_localizeStrings.Get(287), sub, TOAST_DISPLAY_TIME, false, MsgTime);
}
return true;
break;
Expand Down Expand Up @@ -304,7 +306,7 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action)
g_application.m_pPlayer->GetSubtitleName(g_settings.m_currentVideoSettings.m_SubtitleStream,sub);
else
sub = g_localizeStrings.Get(1223);
g_application.m_guiDialogKaiToast.QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(287), sub, TOAST_DISPLAY_TIME, false);
g_application.m_guiDialogKaiToast.QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(287), sub, TOAST_DISPLAY_TIME, false, MsgTime);
}
return true;
break;
Expand Down Expand Up @@ -380,7 +382,7 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action)
g_application.m_pPlayer->SetAudioStream(g_settings.m_currentVideoSettings.m_AudioStream); // Set the audio stream to the one selected
CStdString aud;
g_application.m_pPlayer->GetAudioStreamName(g_settings.m_currentVideoSettings.m_AudioStream,aud);
g_application.m_guiDialogKaiToast.QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(460), aud, TOAST_DISPLAY_TIME, false);
g_application.m_guiDialogKaiToast.QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(460), aud, TOAST_DISPLAY_TIME, false, MsgTime);
return true;
}
break;
Expand Down

0 comments on commit 014b45b

Please sign in to comment.