summaryrefslogtreecommitdiff
path: root/displaymenuview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-02-09 14:52:25 +0100
committerlouis <louis.braun@gmx.de>2013-02-09 14:52:25 +0100
commit41767b6c7c9a4127e12d40d79259101d2ba6f8d6 (patch)
treebed980d900253c9051e030a2fd535c67b53d5329 /displaymenuview.c
parent599dd12e765eac556dd4302b31e2add429c3121e (diff)
downloadskin-nopacity-41767b6c7c9a4127e12d40d79259101d2ba6f8d6.tar.gz
skin-nopacity-41767b6c7c9a4127e12d40d79259101d2ba6f8d6.tar.bz2
Usage of narrow menus (main, schedule, channel, recordings, settings) configurable via plugin setup
Diffstat (limited to 'displaymenuview.c')
-rw-r--r--displaymenuview.c24
1 files changed, 20 insertions, 4 deletions
diff --git a/displaymenuview.c b/displaymenuview.c
index 405f0b1..deba02e 100644
--- a/displaymenuview.c
+++ b/displaymenuview.c
@@ -105,16 +105,32 @@ cRect *cNopacityDisplayMenuView::GetDescriptionTextWindowSize(eMenuCategory menu
int cNopacityDisplayMenuView::GetContentWidth(eMenuCategory menuCat) {
switch (menuCat) {
case mcMain:
+ if (config.narrowMainMenu)
+ return contentWidthMain;
+ else
+ return contentWidthFull;
case mcSetup:
- return contentWidthMain;
+ if (config.narrowSetupMenu)
+ return contentWidthMain;
+ else
+ return contentWidthFull;
case mcSchedule:
case mcScheduleNow:
case mcScheduleNext:
- return contentWidthSchedules;
+ if (config.narrowScheduleMenu)
+ return contentWidthSchedules;
+ else
+ return contentWidthFull;
case mcChannel:
- return contentWidthChannels;
+ if (config.narrowChannelMenu)
+ return contentWidthChannels;
+ else
+ return contentWidthFull;
case mcRecording:
- return contentWidthRecordings;
+ if (config.narrowRecordingMenu)
+ return contentWidthRecordings;
+ else
+ return contentWidthFull;
default:
return contentWidthFull;
}