(svn r24845) -Add: News ticker sound setting to adv. settings window.

This commit is contained in:
frosch
2012-12-23 21:08:42 +00:00
parent bc84f30fc1
commit 345c3203d7
61 changed files with 26 additions and 65 deletions

View File

@@ -39,7 +39,6 @@
#include "table/strings.h"
const NewsItem *_statusbar_news_item = NULL;
bool _news_ticker_sound; ///< Make a ticker sound when a news item is published.
static uint MIN_NEWS_AMOUNT = 30; ///< prefered minimum amount of news messages
static uint _total_news = 0; ///< current number of news items
@@ -540,7 +539,7 @@ static void ShowNewspaper(const NewsItem *ni)
/** Show news item in the ticker */
static void ShowTicker(const NewsItem *ni)
{
if (_news_ticker_sound) SndPlayFx(SND_16_MORSE);
if (_settings_client.sound.news_ticker) SndPlayFx(SND_16_MORSE);
_statusbar_news_item = ni;
InvalidateWindowData(WC_STATUS_BAR, 0, SBI_SHOW_TICKER);