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 --- DisplayOptionsPanel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'DisplayOptionsPanel.c') diff --git a/DisplayOptionsPanel.c b/DisplayOptionsPanel.c index 8fa81964..9e119091 100644 --- a/DisplayOptionsPanel.c +++ b/DisplayOptionsPanel.c @@ -27,6 +27,8 @@ typedef struct DisplayOptionsPanel_ { }*/ +static const char* DisplayOptionsFunctions[] = {" ", " ", " ", " ", " ", " ", " ", " ", " ", "Done ", NULL}; + static void DisplayOptionsPanel_delete(Object* object) { Panel* super = (Panel*) object; DisplayOptionsPanel* this = (DisplayOptionsPanel*) object; @@ -72,7 +74,8 @@ PanelClass DisplayOptionsPanel_class = { DisplayOptionsPanel* DisplayOptionsPanel_new(Settings* settings, ScreenManager* scr) { DisplayOptionsPanel* this = AllocThis(DisplayOptionsPanel); Panel* super = (Panel*) this; - Panel_init(super, 1, 1, 1, 1, Class(CheckItem), true); + FunctionBar* fuBar = FunctionBar_new(DisplayOptionsFunctions, NULL, NULL); + Panel_init(super, 1, 1, 1, 1, Class(CheckItem), true, fuBar); this->settings = settings; this->scr = scr; -- cgit v1.2.3