aboutsummaryrefslogtreecommitdiff
path: root/gui/massadd.cpp
diff options
context:
space:
mode:
authorLittleboy2011-04-29 12:15:49 -0400
committerJulien2011-06-16 14:23:28 -0400
commit96148345483dd0e7667f0b7541d5956524181dd5 (patch)
treedca875348202dacb8b3a28a5efa1e0b500f3092a /gui/massadd.cpp
parent79fb0ff223588fd7020ef8f133e74f2fdb35f95e (diff)
downloadscummvm-rg350-96148345483dd0e7667f0b7541d5956524181dd5.tar.gz
scummvm-rg350-96148345483dd0e7667f0b7541d5956524181dd5.tar.bz2
scummvm-rg350-96148345483dd0e7667f0b7541d5956524181dd5.zip
BACKENDS/COMMON/GUI: Remove complete support for TaskbarManager when taskbar integration is not enabled
Diffstat (limited to 'gui/massadd.cpp')
-rw-r--r--gui/massadd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/massadd.cpp b/gui/massadd.cpp
index 29a2b1886a..70580e8b9c 100644
--- a/gui/massadd.cpp
+++ b/gui/massadd.cpp
@@ -132,9 +132,11 @@ struct GameDescLess {
void MassAddDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
+#if defined(USE_TASKBAR)
// Remove progress bar and count from taskbar
g_system->getTaskbarManager()->setProgressState(Common::TaskbarManager::kTaskbarNoProgress);
g_system->getTaskbarManager()->setCount(0);
+#endif
// FIXME: It's a really bad thing that we use two arbitrary constants
if (cmd == kOkCmd) {
@@ -239,8 +241,10 @@ void MassAddDialog::handleTickle() {
_dirsScanned++;
+#if defined(USE_TASKBAR)
g_system->getTaskbarManager()->setProgressValue(_dirsScanned, _dirTotal);
g_system->getTaskbarManager()->setCount(_games.size());
+#endif
}