Adding Sound notifications for Linux (see issue 469)

This commit is contained in:
Philip Rinn
2013-02-01 14:54:26 +01:00
parent ebf80e8600
commit a08e04626b
6 changed files with 43 additions and 22 deletions

View File

@@ -1280,6 +1280,10 @@ void Preferences::fillPreferences () {
ckbSndEnable->set_active (moptions.sndEnable);
txtSndBatchQueueDone->set_text (moptions.sndBatchQueueDone);
txtSndLngEditProcDone->set_text (moptions.sndLngEditProcDone);
#if defined(__linux__) || defined(__APPLE__)
txtSndBatchQueueDone->set_sensitive (false);
txtSndLngEditProcDone->set_sensitive (false);
#endif
spbSndLngEditProcDoneSecs->set_value (moptions.sndLngEditProcDoneSecs);
}
@@ -1307,9 +1311,12 @@ void Preferences::autocielabToggled () {
}
*/
void Preferences::sndEnableToggled () {
#ifdef WIN32
txtSndBatchQueueDone->set_sensitive(ckbSndEnable->get_active());
txtSndLngEditProcDone->set_sensitive(ckbSndEnable->get_active());
#elif defined(__linux__) || defined(WIN32)
spbSndLngEditProcDoneSecs->set_sensitive(ckbSndEnable->get_active());
#endif
}
void Preferences::langAutoDetectToggled () {