From b3f87944ba62ee82684f30fc89d8bbd5cf472b48 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 23 Apr 2010 11:43:21 +0200 Subject: added parent to control parent is used to delete the objects if the parent is deleted --- src/menu/frame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/menu/frame.cpp') diff --git a/src/menu/frame.cpp b/src/menu/frame.cpp index 8707f0cc..665a2627 100644 --- a/src/menu/frame.cpp +++ b/src/menu/frame.cpp @@ -28,11 +28,13 @@ namespace usdx { - Frame::Frame() : background(NULL) + Frame::Frame(Control* parent) + : Container(parent), background(NULL) { } - Frame::Frame(FrameBackground* background) : background(background) + Frame::Frame(Control* parent, FrameBackground* background) + : Container(parent), background(background) { } -- cgit v1.2.3