diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-22 22:39:33 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-22 22:39:33 -0300 |
commit | 1084a3ff8faf3aa98e8e9fbdab97a08a2c40482e (patch) | |
tree | b2edc9cc57549ab4d98b107d159d6a6d21a200b4 /Action.c | |
parent | 09c7152990b6fd269ac0a023e2093dcf041e2f9d (diff) |
Working on integration of IncSet in new branch.
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |