RE: How to remove all the selectd row in Treeview?
- From: "Tom Liu" <tom liu flextrade com>
- To: "'Tim Müller'" <zen18864 zen co uk>, <gtk-app-devel-list gnome org>
- Subject: RE: How to remove all the selectd row in Treeview?
- Date: Thu, 30 Oct 2003 11:56:07 -0500
Thanks for all who give me helps.
I spend a lot of time on GtkTreeView now. Still have a lot of confuse.
Also I have a lot of question on GTK.
Can we set up a list and put all the question and answer as FAQ?
This way for the other new GTK programmers will be easy to search for
answer.
Also functions like remove all selected rows should be put in to gtk++?
Thanks.
-----Original Message-----
From: gtk-app-devel-list-admin gnome org
[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of Tim Müller
Sent: Thursday, October 30, 2003 11:44 AM
To: Tom Liu; gtk-app-devel-list gnome org
Subject: Re: How to remove all the selectd row in Treeview?
On Thursday 30 October 2003 15:41, Tom Liu wrote:
I made a list with TreeView, I want to remove all the select rows,
which
function I should use?
(the selection may have more than one row).
My suggestion is something like this:
http://scentric.net/tutorial/sec-treemodels.html#sec-treemodel-remove-ro
w
Theoretically, you could also make an array of GtkTreeIter structs, get
the
paths and convert them all into tree iters, and then remove all those
iters.
While possible (because GtkListStore has persistent iters), I find it a
bit
dirty and hackish.
Cheers
-Tim
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]