diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 19:24:34 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 19:24:34 -0300 |
commit | 7cb8cb05fbf005564c6eefe4fd6007ced9336a5f (patch) | |
tree | 92c24cc07f1dd3f95f7adc77014740575b24c5eb /linux/IOPriorityPanel.c | |
parent | 8a11281c675b25111b2463d1c75d6f6790aec379 (diff) |
Simplify constructors.
Diffstat (limited to 'linux/IOPriorityPanel.c')
-rw-r--r-- | linux/IOPriorityPanel.c | 7 |
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)); |