X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpanel.cpp;h=c97cd6d7212da9c648cbed683edf23dad4250701;hb=7286d604956ddffcbfa2df6567de866f3d5df3a2;hp=97e13a2591b34dd9107f2dd65c22baa86750f676;hpb=cfb830ca263defc307f9cfac74fb6771f6b7bfc6;p=libs%2Fgltk.git diff --git a/source/panel.cpp b/source/panel.cpp index 97e13a2..c97cd6d 100644 --- a/source/panel.cpp +++ b/source/panel.cpp @@ -24,6 +24,9 @@ using namespace std; namespace Msp { namespace GLtk { +DataFile::LoadableTypeRegistry Panel::widget_registry; +bool Panel::widget_registry_init_done = false; + Panel::Panel(): layout(0) { @@ -173,7 +176,7 @@ int Panel::compute_delta(int pos, int dim, int origin_pos, int origin_dim, int n return 0; } -void Panel::on_geometry_change() +void Panel::on_size_change() { if(layout) layout->update(); @@ -210,34 +213,33 @@ Panel::Loader::Loader(Panel &p, map &m): wdg_map(m), last_widget(0) { - add_child_type