summaryrefslogtreecommitdiffstats
path: root/linux/IOPriorityPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-23 15:26:56 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-23 15:26:56 -0300
commitd0c72c3fb29d535f5bb12b651e3bcaa516650199 (patch)
tree2c01b7d96d50a7f47334093a1ed8ff4962cec204 /linux/IOPriorityPanel.c
parent1084a3ff8faf3aa98e8e9fbdab97a08a2c40482e (diff)
Move FunctionBar inside Panel
Diffstat (limited to 'linux/IOPriorityPanel.c')
-rw-r--r--linux/IOPriorityPanel.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/IOPriorityPanel.c b/linux/IOPriorityPanel.c
index e42259fb..c9391893 100644
--- a/linux/IOPriorityPanel.c
+++ b/linux/IOPriorityPanel.c
@@ -13,8 +13,13 @@ in the source distribution for its full text.
#include "ListItem.h"
}*/
+static const char* IOPriorityFunctions[] = {"Set ", "Cancel ", NULL};
+static const char* IOPriorityKeys[] = {"Enter", "Esc", NULL};
+static int IOPriorityEvents[] = {13, 27};
+
Panel* IOPriorityPanel_new(IOPriority currPrio) {
- Panel* this = Panel_new(1, 1, 1, 1, true, Class(ListItem));
+ FunctionBar* fuBar = FunctionBar_new(IOPriorityFunctions, IOPriorityKeys, IOPriorityEvents);
+ Panel* this = Panel_new(1, 1, 1, 1, true, Class(ListItem), fuBar);
Panel_setHeader(this, "IO Priority:");
Panel_add(this, (Object*) ListItem_new("None (based on nice)", IOPriority_None));

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