diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 15:26:56 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 15:26:56 -0300 |
commit | d0c72c3fb29d535f5bb12b651e3bcaa516650199 (patch) | |
tree | 2c01b7d96d50a7f47334093a1ed8ff4962cec204 /AffinityPanel.c | |
parent | 1084a3ff8faf3aa98e8e9fbdab97a08a2c40482e (diff) |
Move FunctionBar inside Panel
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c index fb642e06..644c6338 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -42,8 +42,12 @@ 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)); + Panel* this = Panel_new(1, 1, 1, 1, true, Class(CheckItem), FunctionBar_new(AffinityFunctions, AffinityKeys, AffinityEvents)); Object_setClass(this, Class(AffinityPanel)); Panel_setHeader(this, "Use CPUs:"); |