Re: Using a TreeStore with a ComboBox



Well, if it's really *just* that:


On 6/23/07, Jef Driesen <jefdriesen hotmail com> wrote:
After refilter, the combobox contains no items anymore, just like when I
populate the model before using set_visible_func. This is what I
expected, because in my model all toplevel nodes have children. Of
course this is not the solution I need.

and the grander scheme isn't something bigger, then you can just alter the function to:

bool
Example::on_model_visible (const Gtk:TreeModel::const_iterator& iter)
{
  return (iter != store->children().begin && iter->children().empty());
}





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]