summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.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 /AffinityPanel.c
parent8a11281c675b25111b2463d1c75d6f6790aec379 (diff)
Simplify constructors.
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r--AffinityPanel.c6
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:");

© 2014-2024 Faster IT GmbH | imprint | privacy policy