summaryrefslogtreecommitdiffstats
path: root/linux/IOPriorityPanel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-23 19:24:34 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-23 19:24:34 -0300
commit7cb8cb05fbf005564c6eefe4fd6007ced9336a5f (patch)
tree92c24cc07f1dd3f95f7adc77014740575b24c5eb /linux/IOPriorityPanel.c
parent8a11281c675b25111b2463d1c75d6f6790aec379 (diff)
Simplify constructors.
Diffstat (limited to 'linux/IOPriorityPanel.c')
-rw-r--r--linux/IOPriorityPanel.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/linux/IOPriorityPanel.c b/linux/IOPriorityPanel.c
index c9391893..9e12c755 100644
--- a/linux/IOPriorityPanel.c
+++ b/linux/IOPriorityPanel.c
@@ -13,13 +13,8 @@ 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) {
- FunctionBar* fuBar = FunctionBar_new(IOPriorityFunctions, IOPriorityKeys, IOPriorityEvents);
- Panel* this = Panel_new(1, 1, 1, 1, true, Class(ListItem), fuBar);
+ Panel* this = Panel_new(1, 1, 1, 1, true, Class(ListItem), FunctionBar_newEnterEsc("Set ", "Cancel "));
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