summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-02 23:51:53 +0100
committercgzones <cgzones@googlemail.com>2021-01-04 23:12:43 +0100
commitce9e7fd14f58467e3062b76d0132ebeb973a5e11 (patch)
tree09689984e9646806b0b92de329b051789dc8b508 /Action.c
parentbadeaf9e8298b9b8bbb37252eacb0eb2fcf14b98 (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.c4
1 files changed, 2 insertions, 2 deletions
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);

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