From d0c72c3fb29d535f5bb12b651e3bcaa516650199 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 23 Mar 2015 15:26:56 -0300 Subject: Move FunctionBar inside Panel --- AffinityPanel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'AffinityPanel.c') 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:"); -- cgit v1.2.3