summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2011-11-05 04:42:35 +0000
committerHisham Muhammad <hisham@gobolinux.org>2011-11-05 04:42:35 +0000
commit88f6de2352a120275be961e2439d6c14ced775e6 (patch)
treee300a8ab61c4555bd45fbb92161e8a1fda4b20f2 /htop.c
parent539b32dc3134f4753a0e1a265f1ca1e2a77696c3 (diff)
build fixes
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/htop.c b/htop.c
index d5921cb5..6ceabb25 100644
--- a/htop.c
+++ b/htop.c
@@ -18,7 +18,6 @@ in the source distribution for its full text.
#include "CRT.h"
#include "Panel.h"
#include "UsersTable.h"
-#include "SignalItem.h"
#include "RichString.h"
#include "Settings.h"
#include "ScreenManager.h"
@@ -784,9 +783,9 @@ int main(int argc, char** argv) {
}
SignalsPanel_reset((SignalsPanel*) killPanel);
const char* fuFunctions[] = {"Send ", "Cancel ", NULL};
- Signal* sgn = (Signal*) pickFromVector(panel, killPanel, 15, headerHeight, fuFunctions, defaultBar, header);
+ ListItem* sgn = (ListItem*) pickFromVector(panel, killPanel, 15, headerHeight, fuFunctions, defaultBar, header);
if (sgn) {
- if (sgn->super.key != 0) {
+ if (sgn->key != 0) {
Panel_setHeader(panel, "Sending...");
Panel_draw(panel, true);
refresh();
@@ -794,13 +793,13 @@ int main(int argc, char** argv) {
for (int i = 0; i < Panel_size(panel); i++) {
Process* p = (Process*) Panel_get(panel, i);
if (p->tag) {
- Process_sendSignal(p, sgn->super.key);
+ Process_sendSignal(p, sgn->key);
anyTagged = true;
}
}
if (!anyTagged) {
Process* p = (Process*) Panel_getSelected(panel);
- Process_sendSignal(p, sgn->super.key);
+ Process_sendSignal(p, sgn->key);
}
napms(500);
}

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