From 7cb8cb05fbf005564c6eefe4fd6007ced9336a5f Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 23 Mar 2015 19:24:34 -0300 Subject: Simplify constructors. --- linux/IOPriorityPanel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'linux/IOPriorityPanel.c') 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)); -- cgit v1.2.3