X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fwidget.cpp;h=643331602b16069863d03e905bb17f455a12f695;hb=b8bfaf14b5c68428cf34c0e8514e03cd0614ee5b;hp=a5a0f2d511801402c611c2a55f61218483b6d67c;hpb=033732b500a35f3737bad515349d884cb3f123f0;p=libs%2Fgltk.git diff --git a/source/widget.cpp b/source/widget.cpp index a5a0f2d..6433316 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -1,14 +1,7 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include -#include +#include #include "container.h" #include "resources.h" #include "root.h" @@ -73,7 +66,7 @@ void Widget::set_geometry(const Geometry &g) void Widget::set_parent(Container *p) { if(parent && p) - throw InvalidState("Widget is already in a Container"); + throw hierarchy_error("widget already parented"); else if(p==parent) return; parent = p; @@ -104,7 +97,7 @@ void Widget::update_style() sname += style_name; } - style = root->get_resources().get