From 1084a3ff8faf3aa98e8e9fbdab97a08a2c40482e Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 22 Mar 2015 22:39:33 -0300 Subject: Working on integration of IncSet in new branch. --- Action.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Action.c') 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; } -- cgit v1.2.3