X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcontainer.cpp;h=bec206602a95248c72f53ad4de28f41444b71659;hb=9fdbf99cdb3c5620e665c3ecb34e83d778cb311a;hp=4c0ce93fa6fda1a5fca02860cc793e13e9bb2a03;hpb=9bfda3958f5b610c4513a912f4cd07d703d3d184;p=libs%2Fgltk.git diff --git a/source/container.cpp b/source/container.cpp index 4c0ce93..bec2066 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; @@ -12,6 +5,11 @@ using namespace std; namespace Msp { namespace GLtk { +hierarchy_error::hierarchy_error(const string &w): + logic_error(w) +{ } + + Container::Container(): click_focus(0), click_button(0) @@ -42,7 +40,7 @@ void Container::remove(Widget &wdg) return; } - throw InvalidState("That Widget is not in this Container"); + throw hierarchy_error("widget not in container"); } Container::Child *Container::create_child(Widget *wdg)