summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-04-23 07:24:27 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-04-23 07:24:27 +0000
commit23615d63a80a2c66e6856001c8c75dd1f73422c6 (patch)
treed0795e066d9e4f3d13734dabf204905f3114d2ac
parentb09339d643d23815c94473f9ec18d66782f2eac0 (diff)
Make setup screen fully mouse-driveable
-rw-r--r--htop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 4a226b42..b3439f37 100644
--- a/htop.c
+++ b/htop.c
@@ -144,10 +144,12 @@ static void showHelp(ProcessList* pl) {
clear();
}
+static char* CategoriesFunctions[10] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done "};
+
static void Setup_run(Settings* settings, int headerHeight) {
ScreenManager* scr = ScreenManager_new(0, headerHeight, 0, -1, HORIZONTAL, true);
CategoriesPanel* panelCategories = CategoriesPanel_new(settings, scr);
- ScreenManager_add(scr, (Panel*) panelCategories, NULL, 16);
+ ScreenManager_add(scr, (Panel*) panelCategories, FunctionBar_new(10, CategoriesFunctions, NULL, NULL), 16);
CategoriesPanel_makeMetersPage(panelCategories);
Panel* panelFocus;
int ch;

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