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 /AffinityPanel.c | |
parent | 8a11281c675b25111b2463d1c75d6f6790aec379 (diff) |
Simplify constructors.
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c index 644c6338..8612855c 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -42,12 +42,8 @@ PanelClass AffinityPanel_class = { .eventHandler = AffinityPanel_eventHandler }; -static const char* AffinityFunctions[] = {"Set ", "Cancel ", NULL}; -static const char* AffinityKeys[] = {"Enter", "Esc", NULL}; -static int AffinityEvents[] = {13, 27}; - Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity) { - Panel* this = Panel_new(1, 1, 1, 1, true, Class(CheckItem), FunctionBar_new(AffinityFunctions, AffinityKeys, AffinityEvents)); + Panel* this = Panel_new(1, 1, 1, 1, true, Class(CheckItem), FunctionBar_newEnterEsc("Set ", "Cancel ")); Object_setClass(this, Class(AffinityPanel)); Panel_setHeader(this, "Use CPUs:"); |