diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-01-02 23:51:53 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-01-04 23:12:43 +0100 |
commit | ce9e7fd14f58467e3062b76d0132ebeb973a5e11 (patch) | |
tree | 09689984e9646806b0b92de329b051789dc8b508 /Action.c | |
parent | badeaf9e8298b9b8bbb37252eacb0eb2fcf14b98 (diff) |
Panel_new: reorder arguments
Reorder owner and type so they match the order of Panel_init
Diffstat (limited to 'Action.c')
-rw-r--r-- | Action.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |