From ce9e7fd14f58467e3062b76d0132ebeb973a5e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sat, 2 Jan 2021 23:51:53 +0100 Subject: Panel_new: reorder arguments Reorder owner and type so they match the order of Panel_init --- Action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Action.c') diff --git a/Action.c b/Action.c index e6e35e72..81e9121d 100644 --- a/Action.c +++ b/Action.c @@ -166,7 +166,7 @@ Htop_Reaction Action_setSortKey(Settings* settings, ProcessField sortKey) { static Htop_Reaction actionSetSortColumn(State* st) { Htop_Reaction reaction = HTOP_OK; - Panel* sortPanel = Panel_new(0, 0, 0, 0, true, Class(ListItem), FunctionBar_newEnterEsc("Sort ", "Cancel ")); + Panel* sortPanel = Panel_new(0, 0, 0, 0, Class(ListItem), true, FunctionBar_newEnterEsc("Sort ", "Cancel ")); Panel_setHeader(sortPanel, "Sort by"); ProcessField* fields = st->settings->fields; for (int i = 0; fields[i]; i++) { @@ -336,7 +336,7 @@ static Htop_Reaction actionKill(State* st) { } static Htop_Reaction actionFilterByUser(State* st) { - Panel* usersPanel = Panel_new(0, 0, 0, 0, true, Class(ListItem), FunctionBar_newEnterEsc("Show ", "Cancel ")); + Panel* usersPanel = Panel_new(0, 0, 0, 0, Class(ListItem), true, FunctionBar_newEnterEsc("Show ", "Cancel ")); Panel_setHeader(usersPanel, "Show processes of:"); UsersTable_foreach(st->ut, addUserToVector, usersPanel); Vector_insertionSort(usersPanel->items); -- cgit v1.2.3