summaryrefslogtreecommitdiffstats
path: root/MainPanel.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-02-14 11:51:54 +1100
committerNathan Scott <nathans@redhat.com>2023-05-08 09:17:42 +1000
commite4ebe18b67c366d367231a1123b057c82018cf5b (patch)
tree2b65f14a290fc0979776cd9da03093f793e9fc5d /MainPanel.c
parent8a8df71f6f355fdaf748eb80bf8558c1bcbec937 (diff)
Drop references to 'Process' in generic screen code
Prepare the way for making screen tabs more generalised, able to cater to entities other than processes. 'actionTogglePauseProcessUpdate' -> 'actionTogglePauseUpdate' 'pauseProcessUpdate' -> 'pauseUpdate' 'hideProcessSelection' -> 'hideSelection' 'hideProcessSelection' -> 'hideSelection' Signed-off-by: Sohaib Mohamed <sohaib.amhmd@gmail.com>
Diffstat (limited to 'MainPanel.c')
-rw-r--r--MainPanel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MainPanel.c b/MainPanel.c
index 89b4e7d4..0889a5c2 100644
--- a/MainPanel.c
+++ b/MainPanel.c
@@ -70,7 +70,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
needReset = false;
#endif
if (needReset)
- this->state->hideProcessSelection = false;
+ this->state->hideSelection = false;
Settings* settings = this->state->settings;
ScreenSettings* ss = settings->ss;
@@ -107,7 +107,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) {
}
result = HANDLED;
} else if (ch == 27) {
- this->state->hideProcessSelection = true;
+ this->state->hideSelection = true;
return HANDLED;
} else if (ch != ERR && ch > 0 && ch < KEY_MAX && this->keys[ch]) {
reaction |= (this->keys[ch])(this->state);
@@ -190,7 +190,7 @@ static void MainPanel_drawFunctionBar(Panel* super, bool hideFunctionBar) {
return;
IncSet_drawBar(this->inc, CRT_colors[FUNCTION_BAR]);
- if (this->state->pauseProcessUpdate) {
+ if (this->state->pauseUpdate) {
FunctionBar_append("PAUSED", CRT_colors[PAUSED]);
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy