summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-24 23:12:43 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-24 23:12:43 -0300
commita93db5234c8e24c56c4b5b615de837afeeac5e74 (patch)
treef68394fa63113bc62798e1e9fff66caaae1a7f8a /Action.c
parent38fd1bfaba8b742d476a146ee111bf24cce9193e (diff)
handle clicks on panel header line
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Action.c b/Action.c
index 6e01a295..67231f1f 100644
--- a/Action.c
+++ b/Action.c
@@ -154,7 +154,7 @@ static bool expandCollapse(Panel* panel) {
return true;
}
-static inline Htop_Reaction setSortKey(Settings* settings, ProcessField sortKey) {
+Htop_Reaction Action_setSortKey(Settings* settings, ProcessField sortKey) {
settings->sortKey = sortKey;
settings->direction = 1;
settings->treeView = false;
@@ -175,7 +175,7 @@ static Htop_Reaction sortBy(State* st) {
}
ListItem* field = (ListItem*) Action_pickFromVector(st, sortPanel, 15);
if (field) {
- reaction |= setSortKey(st->settings, field->key);
+ reaction |= Action_setSortKey(st->settings, field->key);
}
Object_delete(sortPanel);
return reaction | HTOP_REFRESH | HTOP_REDRAW_BAR | HTOP_UPDATE_PANELHDR;
@@ -189,15 +189,15 @@ static Htop_Reaction actionResize(State* st) {
}
static Htop_Reaction actionSortByMemory(State* st) {
- return setSortKey(st->settings, PERCENT_MEM);
+ return Action_setSortKey(st->settings, PERCENT_MEM);
}
static Htop_Reaction actionSortByCPU(State* st) {
- return setSortKey(st->settings, PERCENT_CPU);
+ return Action_setSortKey(st->settings, PERCENT_CPU);
}
static Htop_Reaction actionSortByTime(State* st) {
- return setSortKey(st->settings, TIME);
+ return Action_setSortKey(st->settings, TIME);
}
static Htop_Reaction actionToggleKernelThreads(State* st) {

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