Re: TreeModelFilter as LIST_ONLY



Jorge Cardona said the following:
Hi, recently i ask something about to set the model of a iconview from
a treemodelfilter with a filter and a path that only has 1 depth
children, so it look like a list, but iconview complain for the
LIST_ONLY flag, how can i create a new treemodelfilter class but that
return a LIST_ONLY flag and define a filter that only show the
children with no childrens.

I need some help on this, i was trying to solve it myself, but i need
more experience on c++ and gtk.

The problem is that a Gtk::TreeModelFilter only "wraps over" the actual Gtk::TreeModel, but it is still only the underlying Gtk::TreeModel underneath. Getting the flags of the Gtk::TreeModelFilter is equivalent to getting the flags of the underlying Gtk::TreeModel.

A Gtk::TreeStore's rows can have children and is therefore not usable by a Gtk::IconView. You really need to use a Gtk::ListStore with the Gtk::IconView.

--
José Alburquerque



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