X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.cpp;h=9dbd9da5ba2df7f60f44d824a8a7989d11d917dd;hb=eb6eee5fabf05abca4a0434c2a8f8f62c900afec;hp=1cb42e5cae15598cdd82ea25809913e59a8359e7;hpb=c1faa54a3218b53757b8b55de0ff8aa64412253b;p=libs%2Fgltk.git diff --git a/source/widget.cpp b/source/widget.cpp index 1cb42e5..9dbd9da 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -1,7 +1,5 @@ -#include #include -#include -#include +#include #include "container.h" #include "resources.h" #include "root.h" @@ -35,6 +33,7 @@ void Widget::set_position(int x, int y) geom.x = x; geom.y = y; on_geometry_change(); + rebuild(); } void Widget::set_size(unsigned w, unsigned h) @@ -42,6 +41,7 @@ void Widget::set_size(unsigned w, unsigned h) geom.w = w; geom.h = h; on_geometry_change(); + rebuild(); } void Widget::autosize() @@ -61,6 +61,7 @@ void Widget::set_geometry(const Geometry &g) { geom = g; on_geometry_change(); + rebuild(); } void Widget::set_parent(Container *p) @@ -97,11 +98,12 @@ void Widget::update_style() sname += style_name; } - style = root->get_resources().get