aboutsummaryrefslogtreecommitdiffstats
path: root/SignalsPanel.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-02 16:04:22 +0200
committerDaniel Lange <DLange@git.local>2022-05-02 16:04:22 +0200
commit2f0332b75397ad5240a429d72203f0531011b6a9 (patch)
tree4782d4b8d0c43f3e6faa1bbbe95816a09e815e67 /SignalsPanel.c
parent93c96b12c9cb349b762d38d69568d65cd3e4fbfd (diff)
parent1b805a31720727008b32b1129a167758519fd4db (diff)
downloaddebian_htop-2f0332b75397ad5240a429d72203f0531011b6a9.tar.gz
debian_htop-2f0332b75397ad5240a429d72203f0531011b6a9.tar.bz2
debian_htop-2f0332b75397ad5240a429d72203f0531011b6a9.zip
Update upstream source from tag 'upstream/3.2.0'
Update to upstream version '3.2.0' with Debian dir 5ce130e9471b77941bbd217b5ea8b7b3419a91c6
Diffstat (limited to 'SignalsPanel.c')
-rw-r--r--SignalsPanel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/SignalsPanel.c b/SignalsPanel.c
index f1c5379..cb71130 100644
--- a/SignalsPanel.c
+++ b/SignalsPanel.c
@@ -18,15 +18,14 @@ in the source distribution for its full text.
#include "XUtils.h"
-Panel* SignalsPanel_new() {
+Panel* SignalsPanel_new(int preSelectedSignal) {
Panel* this = Panel_new(1, 1, 1, 1, Class(ListItem), true, FunctionBar_newEnterEsc("Send ", "Cancel "));
- const int defaultSignal = SIGTERM;
int defaultPosition = 15;
unsigned int i;
for (i = 0; i < Platform_numberOfSignals; i++) {
Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i].number));
// signal 15 is not always the 15th signal in the table
- if (Platform_signals[i].number == defaultSignal) {
+ if (Platform_signals[i].number == preSelectedSignal) {
defaultPosition = i;
}
}

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