mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
screensaver: add GUI option to change screensaver directory
Origin commit data
------------------
Branch: ni/coolstream
Commit: cbed13ecd0
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-12-25 (Thu, 25 Dec 2014)
Origin message was:
------------------
- screensaver: add GUI option to change screensaver directory
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -322,6 +322,11 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
chooserDir(g_settings.screenshot_dir, true, action_str);
|
||||
return res;
|
||||
}
|
||||
else if(actionKey=="screensaver_dir") {
|
||||
const char *action_str = "screensaver";
|
||||
chooserDir(g_settings.screensaver_dir, false, action_str);
|
||||
return res;
|
||||
}
|
||||
else if(strncmp(actionKey.c_str(), "fontsize.d", 10) == 0) {
|
||||
for (int i = 0; i < FONT_GROUP_COUNT; i++) {
|
||||
if (actionKey == font_sizes_groups[i].actionkey) {
|
||||
@@ -607,6 +612,13 @@ int COsdSetup::showOsdSetup()
|
||||
mc->setHint("", LOCALE_MENU_HINT_SUBCHANNEL_POS);
|
||||
osd_menu->addItem(mc);
|
||||
|
||||
osd_menu->addItem(GenericMenuSeparatorLine);
|
||||
|
||||
// screensaver_dir
|
||||
mf = new CMenuForwarder(LOCALE_SCREENSAVER_DIR, true, g_settings.screensaver_dir, this, "screensaver_dir");
|
||||
mf->setHint("", LOCALE_MENU_HINT_SCREENSAVER_DIR);
|
||||
osd_menu->addItem(mf);
|
||||
|
||||
int oldVolumeSize = g_settings.volume_size;
|
||||
int oldInfoClockSize = g_settings.infoClockFontSize;
|
||||
|
||||
|
Reference in New Issue
Block a user