summaryrefslogtreecommitdiffstats
path: root/ScreenManager.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 /ScreenManager.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 'ScreenManager.c')
-rw-r--r--ScreenManager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ScreenManager.c b/ScreenManager.c
index 87e71892..6b9fada5 100644
--- a/ScreenManager.c
+++ b/ScreenManager.c
@@ -131,12 +131,12 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi
if (*rescan) {
*oldTime = newTime;
int oldUidDigits = Process_uidDigits;
- if (!this->state->pauseProcessUpdate && (*sortTimeout == 0 || this->settings->ss->treeView)) {
+ if (!this->state->pauseUpdate && (*sortTimeout == 0 || this->settings->ss->treeView)) {
pl->needsSort = true;
*sortTimeout = 1;
}
// scan processes first - some header values are calculated there
- ProcessList_scan(pl, this->state->pauseProcessUpdate);
+ ProcessList_scan(pl, this->state->pauseUpdate);
// always update header, especially to avoid gaps in graph meters
Header_updateData(this->header);
// force redraw if the number of UID digits was changed
@@ -206,7 +206,7 @@ static void ScreenManager_drawPanels(ScreenManager* this, int focus, bool force_
Panel_draw(panel,
force_redraw,
i == focus,
- panel != (Panel*)this->state->mainPanel || !this->state->hideProcessSelection,
+ panel != (Panel*)this->state->mainPanel || !this->state->hideSelection,
State_hideFunctionBar(this->state));
mvvline(panel->y, panel->x + panel->w, ' ', panel->h + (State_hideFunctionBar(this->state) ? 1 : 0));
}

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