CThemes: rename member readThemes -> showThemesMenu

more plausible name
This commit is contained in:
2018-04-11 16:12:03 +02:00
parent 0d5b81c03f
commit d32b7420bc
2 changed files with 3 additions and 3 deletions

View File

@@ -112,7 +112,7 @@ int CThemes::exec(CMenuTarget* parent, const std::string & actionKey)
return Show(); return Show();
} }
void CThemes::readThemes(CMenuWidget &themes) void CThemes::initThemesMenu(CMenuWidget &themes)
{ {
struct dirent **themelist; struct dirent **themelist;
int n; int n;
@@ -180,7 +180,7 @@ int CThemes::Show()
//set default theme //set default theme
themes.addItem(new CMenuForwarder(LOCALE_COLORTHEMEMENU_NEUTRINO_THEME, true, NULL, this, "default_theme", CRCInput::RC_red)); themes.addItem(new CMenuForwarder(LOCALE_COLORTHEMEMENU_NEUTRINO_THEME, true, NULL, this, "default_theme", CRCInput::RC_red));
readThemes(themes); initThemesMenu(themes);
CKeyboardInput nameInput(LOCALE_COLORTHEMEMENU_NAME, &file_name); CKeyboardInput nameInput(LOCALE_COLORTHEMEMENU_NAME, &file_name);
CMenuForwarder *m1 = new CMenuForwarder(LOCALE_COLORTHEMEMENU_SAVE, true , NULL, &nameInput, NULL, CRCInput::RC_green); CMenuForwarder *m1 = new CMenuForwarder(LOCALE_COLORTHEMEMENU_SAVE, true , NULL, &nameInput, NULL, CRCInput::RC_green);

View File

@@ -44,7 +44,7 @@ class CThemes : public CMenuTarget, CColorSetupNotifier, public sigc::trackable
int Show(); int Show();
void readFile(const char *themename); void readFile(const char *themename);
void saveFile(const char *themename); void saveFile(const char *themename);
void readThemes(CMenuWidget &); void initThemesMenu(CMenuWidget &);
void rememberOldTheme(bool remember); void rememberOldTheme(bool remember);
void move_userDir(); void move_userDir();
bool applyDefaultTheme(); bool applyDefaultTheme();