mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Keep panel structure up-to-date as process list changes when headers are updated during the screen manager. Hopefully closes #3444533.
This commit is contained in:
@ -19,6 +19,7 @@ in the source distribution for its full text.
|
||||
#include "UsersTable.h"
|
||||
#include "Hashtable.h"
|
||||
#include "String.h"
|
||||
#include "Panel.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
@ -111,6 +112,13 @@ typedef struct ProcessList_ {
|
||||
Hashtable* processTable;
|
||||
UsersTable* usersTable;
|
||||
|
||||
Panel* panel;
|
||||
bool follow;
|
||||
bool userOnly;
|
||||
uid_t userId;
|
||||
bool filtering;
|
||||
const char* incFilter;
|
||||
|
||||
int cpuCount;
|
||||
int totalTasks;
|
||||
int userlandThreads;
|
||||
@ -161,6 +169,8 @@ ProcessList* ProcessList_new(UsersTable* usersTable);
|
||||
|
||||
void ProcessList_delete(ProcessList* this);
|
||||
|
||||
void ProcessList_setPanel(ProcessList* this, Panel* panel);
|
||||
|
||||
void ProcessList_invertSortOrder(ProcessList* this);
|
||||
|
||||
void ProcessList_printHeader(ProcessList* this, RichString* header);
|
||||
@ -194,4 +204,6 @@ ProcessField ProcessList_keyAt(ProcessList* this, int at);
|
||||
|
||||
void ProcessList_expandTree(ProcessList* this);
|
||||
|
||||
void ProcessList_rebuildPanel(ProcessList* this, bool flags, bool follow, bool userOnly, uid_t userId, bool filtering, const char* incFilter);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user