diff options
author | louis <louis.braun@gmx.de> | 2013-02-09 14:52:25 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-02-09 14:52:25 +0100 |
commit | 41767b6c7c9a4127e12d40d79259101d2ba6f8d6 (patch) | |
tree | bed980d900253c9051e030a2fd535c67b53d5329 /displaymenuview.c | |
parent | 599dd12e765eac556dd4302b31e2add429c3121e (diff) | |
download | skin-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.c | 24 |
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; } |