diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-12-05 19:30:32 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-12-05 19:36:36 +0100 |
commit | ff4f44b22ae8d6522ee22599174a6cdd41bc0314 (patch) | |
tree | 26e9955df773dfae0e92f751a645c69d996c9280 /SignalsPanel.h | |
parent | a38f48481edeb696b2973c8a1bb2107658108a41 (diff) |
Pre-select the last sent signal in SignalsPanel
Instead of pre-selecting SIGTERM every time, select the signal last
send in the same htop session.
Closes: #862
Diffstat (limited to 'SignalsPanel.h')
-rw-r--r-- | SignalsPanel.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/SignalsPanel.h b/SignalsPanel.h index da9711a1..7b9303fe 100644 --- a/SignalsPanel.h +++ b/SignalsPanel.h @@ -7,6 +7,8 @@ Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ +#include <signal.h> + #include "Panel.h" @@ -15,6 +17,8 @@ typedef struct SignalItem_ { int number; } SignalItem; -Panel* SignalsPanel_new(void); +#define SIGNALSPANEL_INITSELECTEDSIGNAL SIGTERM + +Panel* SignalsPanel_new(int preSelectedSignal); #endif |