summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-22 22:39:33 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-22 22:39:33 -0300
commit1084a3ff8faf3aa98e8e9fbdab97a08a2c40482e (patch)
treeb2edc9cc57549ab4d98b107d159d6a6d21a200b4 /Action.c
parent09c7152990b6fd269ac0a023e2093dcf041e2f9d (diff)
Working on integration of IncSet in new branch.
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Action.c b/Action.c
index 02329f7b..adc6ed98 100644
--- a/Action.c
+++ b/Action.c
@@ -52,7 +52,6 @@ typedef enum {
typedef Htop_Reaction (*Htop_Action)();
typedef struct State_ {
- IncSet* inc;
Settings* settings;
UsersTable* ut;
ProcessList* pl;
@@ -225,12 +224,14 @@ static Htop_Reaction actionToggleTreeView(State* st) {
}
static Htop_Reaction actionIncFilter(State* st) {
- IncSet_activate(st->inc, INC_FILTER);
+ IncSet* inc = ((MainPanel*)st->panel)->inc;
+ IncSet_activate(inc, INC_FILTER);
+ st->pl->incFilter = IncSet_filter(inc);
return HTOP_REFRESH | HTOP_KEEP_FOLLOWING;
}
static Htop_Reaction actionIncSearch(State* st) {
- IncSet_activate(st->inc, INC_SEARCH);
+ IncSet_activate(((MainPanel*)st->panel)->inc, INC_SEARCH);
return HTOP_REFRESH | HTOP_KEEP_FOLLOWING;
}

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