X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Flist.cpp;fp=source%2Flist.cpp;h=963b442775f982840f27b6d796437f02227e9fac;hp=e0d2bd81c150d62918bedd77b7eebe3b1537baac;hb=9678abb23abe450109e2feda081f5bba5f20cc94;hpb=d10d1de6d17c285c63d7b3cea549017aaa1ddb01 diff --git a/source/list.cpp b/source/list.cpp index e0d2bd8..963b442 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -330,7 +330,7 @@ bool List::navigate(Navigation nav) void List::on_style_change() { - items_part = (style ? style->get_part("items") : nullptr); + items_part = (style ? style->find_part("items") : nullptr); } void List::move_focus(Navigation nav, bool select) @@ -615,7 +615,7 @@ void List::SimpleItem::on_style_change() Widget *child = children.front()->widget; child->autosize(); - if(const Part *part = style->get_part("children")) + if(const Part *part = style->find_part("children")) { const Sides &margin = part->get_margin(); child->set_position(margin.left, margin.bottom); @@ -644,7 +644,7 @@ void List::MultiColumnItem::set_widths(const vector &widths) if(!style) return; - const Part *part = style->get_part("children"); + const Part *part = style->find_part("children"); if(!part) return;