mirror of https://github.com/xzeldon/htop.git
Update some field accesses to new structures
This commit is contained in:
parent
9b4bdfcb3e
commit
63e1417b8c
2
Action.c
2
Action.c
|
@ -280,7 +280,7 @@ static Htop_Reaction actionExpandOrCollapse(State* st) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static Htop_Reaction actionCollapseIntoParent(State* st) {
|
static Htop_Reaction actionCollapseIntoParent(State* st) {
|
||||||
if (!st->settings->treeView) {
|
if (!st->settings->ss->treeView) {
|
||||||
return HTOP_OK;
|
return HTOP_OK;
|
||||||
}
|
}
|
||||||
bool changed = collapseIntoParent(st->panel);
|
bool changed = collapseIntoParent(st->panel);
|
||||||
|
|
2
htop.c
2
htop.c
|
@ -205,7 +205,7 @@ int main(int argc, char** argv) {
|
||||||
if (!flags.useColors)
|
if (!flags.useColors)
|
||||||
settings->colorScheme = COLORSCHEME_MONOCHROME;
|
settings->colorScheme = COLORSCHEME_MONOCHROME;
|
||||||
if (flags.treeView)
|
if (flags.treeView)
|
||||||
settings->treeView = true;
|
settings->screens[0]->treeView = true;
|
||||||
|
|
||||||
CRT_init(settings->delay, settings->colorScheme);
|
CRT_init(settings->delay, settings->colorScheme);
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ typedef struct LinuxProcess_ {
|
||||||
} LinuxProcess;
|
} LinuxProcess;
|
||||||
|
|
||||||
#ifndef Process_isKernelThread
|
#ifndef Process_isKernelThread
|
||||||
#define Process_isKernelThread(_process) ((LinuxProcess*)(_process)->isKernelThread)
|
#define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Process_isUserlandThread
|
#ifndef Process_isUserlandThread
|
||||||
|
|
Loading…
Reference in New Issue