summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-04-13 16:02:36 +0200
committerlouis <louis.braun@gmx.de>2013-04-13 16:02:36 +0200
commit47e4d8da9edc889886edf683390d36bb4a515490 (patch)
tree914badabee98bf1f1e71dbe26b92dbeab8aff3eb
parent4cfdca4afe04f9f4055800b1622f9122f87287ba (diff)
downloadskin-nopacity-47e4d8da9edc889886edf683390d36bb4a515490.tar.gz
skin-nopacity-47e4d8da9edc889886edf683390d36bb4a515490.tar.bz2
Added Channel Number in narrow Timer menu
-rw-r--r--menuitem.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/menuitem.c b/menuitem.c
index fb727ea..9100f07 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -705,7 +705,12 @@ std::string cNopacityTimerMenuItem::CreateDate(void) {
strftime(buffer, sizeof(buffer), "%Y%m%d", &tm_r);
day = buffer;
}
- return *cString::sprintf("%s%s%s (%02d:%02d-%02d:%02d)", *dayName, *dayName && **dayName ? " " : "", *day, Timer->Start() / 100, Timer->Start() % 100, Timer->Stop() / 100, Timer->Stop() % 100);
+ cString dateString;
+ if (Timer->Channel())
+ dateString = *cString::sprintf("%d - %s%s%s (%02d:%02d-%02d:%02d)", Timer->Channel()->Number(), *dayName, *dayName && **dayName ? " " : "", *day, Timer->Start() / 100, Timer->Start() % 100, Timer->Stop() / 100, Timer->Stop() % 100);
+ else
+ dateString = *cString::sprintf("%s%s%s (%02d:%02d-%02d:%02d)", *dayName, *dayName && **dayName ? " " : "", *day, Timer->Start() / 100, Timer->Start() % 100, Timer->Stop() / 100, Timer->Stop() % 100);
+ return *dateString;
}
int cNopacityTimerMenuItem::CheckScrollable(bool hasIcon) {