diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index a908084c5..fcba9d828 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -24,14 +24,14 @@ in the source distribution for its full text. static const char* const DisplayOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL}; -static const char* const DisplayOptionsIncDecFunctions[] = {"Inc ", "Dec ", " ", "Done ", NULL}; -static const char* const DisplayOptionsIncDecKeys[] = {"+ ", "- ", " ", "F10", NULL}; -static const int DisplayOptionsIncDecEvents[] = {'+', '-', ERR, KEY_F(10)}; +static const char* const DisplayOptionsDecIncFunctions[] = {"Dec ", "Inc ", " ", "Done ", NULL}; +static const char* const DisplayOptionsDecIncKeys[] = {"- ", "+ ", " ", "F10", NULL}; +static const int DisplayOptionsDecIncEvents[] = {'-', '+', ERR, KEY_F(10)}; static void DisplayOptionsPanel_delete(Object* object) { Panel* super = (Panel*) object; DisplayOptionsPanel* this = (DisplayOptionsPanel*) object; - FunctionBar_delete(this->incDecBar); + FunctionBar_delete(this->decIncBar); Panel_done(super); free(this); } @@ -95,7 +95,7 @@ static HandlerResult DisplayOptionsPanel_eventHandler(Panel* super, int ch) { /* fallthrough */ case EVENT_SET_SELECTED: if (OptionItem_kind(selected) == OPTION_ITEM_NUMBER) { - super->currentBar = this->incDecBar; + super->currentBar = this->decIncBar; } else { Panel_setDefaultBar(super); } @@ -131,7 +131,7 @@ DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager* FunctionBar* fuBar = FunctionBar_new(DisplayOptionsFunctions, NULL, NULL); Panel_init(super, 1, 1, 1, 1, Class(OptionItem), true, fuBar); - this->incDecBar = FunctionBar_new(DisplayOptionsIncDecFunctions, DisplayOptionsIncDecKeys, DisplayOptionsIncDecEvents); + this->decIncBar = FunctionBar_new(DisplayOptionsDecIncFunctions, DisplayOptionsDecIncKeys, DisplayOptionsDecIncEvents); this->settings = settings; this->scr = scr; diff --git a/DisplayOptionsPanel.h b/DisplayOptionsPanel.h index a10de6973..943db523d 100644 --- a/DisplayOptionsPanel.h +++ b/DisplayOptionsPanel.h @@ -18,7 +18,7 @@ typedef struct DisplayOptionsPanel_ { Settings* settings; ScreenManager* scr; - FunctionBar* incDecBar; + FunctionBar* decIncBar; } DisplayOptionsPanel; extern const PanelClass DisplayOptionsPanel_class;