From b44ac46e4e54f228fd9c25c042da2efd2ab45b64 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 22 Mar 2012 22:49:14 +0100 Subject: menu/container: cleanup while destruction of container while a container is destructed, the parent of all containing controls will be removed, so that the controls it self do not try to unregister itself from the destroyed container later (while destruction the control class of the container and destroying all slave controls) --- src/menu/drawable_control.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/menu/drawable_control.hpp') diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp index 64bd5a24..2acdd7ec 100644 --- a/src/menu/drawable_control.hpp +++ b/src/menu/drawable_control.hpp @@ -90,6 +90,8 @@ namespace usdx const Dimension& get_size(void) const; int get_width(void) const; int get_height(void) const; + + void remove_parent(void); }; }; -- cgit v1.2.3