mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 12:44:34 +03:00
Simplify constructors.
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user