X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.cpp;h=d6d57554fc5f324f02f22f48a48c5dbe3386903c;hb=7286d604956ddffcbfa2df6567de866f3d5df3a2;hp=b40aa75214f2855def232ebbd48a6f85b7b3fb66;hpb=7d8609bec44adcab67b0c1a78d560ef76afded8d;p=libs%2Fgltk.git diff --git a/source/widget.cpp b/source/widget.cpp index b40aa75..d6d5755 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -72,8 +72,7 @@ void Widget::set_geometry(const Geometry &g) geom = g; if(size_changed) { - // TODO maybe rename this to on_size_change - on_geometry_change(); + on_size_change(); rebuild(); } } @@ -207,7 +206,7 @@ void Widget::rebuild() if(!style) return; - part_cache.begin_rebuild(); + PartCache::Rebuild rebuild_cache(part_cache); const Style::PartSeq &parts = style->get_parts(); for(Style::PartSeq::const_iterator i=parts.begin(); i!=parts.end(); ++i) { @@ -216,7 +215,6 @@ void Widget::rebuild() else rebuild_special(*i); } - part_cache.end_rebuild(); } void Widget::rebuild_special(const Part &part)