]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/container.cpp
Store autosized geom in Layout::Slot
[libs/gltk.git] / source / container.cpp
index 4c0ce93fa6fda1a5fca02860cc793e13e9bb2a03..bec206602a95248c72f53ad4de28f41444b71659 100644 (file)
@@ -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)