X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontainer.cpp;h=483608a40764a3e3612be9460f5d92a100bd7ab7;hb=2b70e8801c43875ed3f4135bdd0141265cff0312;hp=9ad66482a15a2ad2503d7f0efcb12a6fe14383c4;hpb=2bdaf4955fdb94e73704adcdcf0adc2b353f0ff0;p=libs%2Fgltk.git diff --git a/source/container.cpp b/source/container.cpp index 9ad6648..483608a 100644 --- a/source/container.cpp +++ b/source/container.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "container.h" using namespace std; @@ -27,6 +20,7 @@ void Container::add(Widget &wdg) { wdg.set_parent(this); children.push_back(create_child(&wdg)); + on_child_added(wdg); } void Container::remove(Widget &wdg) @@ -37,6 +31,7 @@ void Container::remove(Widget &wdg) wdg.set_parent(0); delete *i; children.erase(i); + on_child_removed(wdg); return; }