Re: Hiding individual TreeRows



On 5/26/06, Murray Cumming <murrayc murrayc com> wrote:
On Fri, 2006-05-26 at 13:30 -0500, Jonathon Jongsma wrote:
> On 5/26/06, Matt Bragano <maestro485 comcast net> wrote:
> > Hi all,
> >
> > I've been experimenting with different ways to hide individual TreeRows
> > on the fly, but with limited success.  Basically if a row's name begins
> > with a " . " then I'd like to hide it, but not necessarily erase it from
> > the TreeView using erase() since I'd like to be able to reverse this
> > action without recreating the entire view.  I was looking around the
> > mailing list archives and I stumbled upon this post:
> >
> > http://marc.theaimsgroup.com/?l=gtkmm&m=109957757907166&w=2
>
> using the cell_data_func,
[snip]

No, I think he needs Gtk::TreeModelFilter:
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1TreeModelFilter.html

Here's an example:
http://cvs.gnome.org/viewcvs/gtkmm/examples/book/treeview/filter/

I guess that Nautilus uses this.

--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Wow, that's exactly what I needed for one of my applications, I think.  Thanks.

Joe



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