Re: GtkTreeModel question



yes you are right, first you have to get the iter and then
remove it from the store. As far as I know this is way you
have to do.

----- Original Message -----
From: Archit Baweja <bighead users sourceforge net>
Date: Friday, March 8, 2002 3:12 pm
Subject: GtkTreeModel question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I'm working on a GtkTree (gtk-2.0 btw).
Here's what I do
1) I add say a struct to a GtkTreeStore using gtk_tree_store_set. I 
have kept 
a pointer to that struct too with me.
2) Now say I want to remove that struct using 
gtk_tree_store_remove. So I
need a valid GtkTreeIter for that node.

Here is where I run into a problem. I remember there being a 
function called
gtk_tree_model_get_iter_from_data, to which if I pass the pointer 
to the struct
I added, it would search all the nodes for it, and if it found it, 
fillthe GtkTreeIter (which I pass too to the func) with the 
relevant info about
the node, so I can do a subsequent gtk_tree_store_remove or whatever.

So is there another func which does the same, or do I have to it 
manuallyusing a combo of gtk_tree_iter_next and my_compare_func?

I have checked the do
Archit Baweja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <" 
target="l">http://www.gnupg.org/>
iD8DBQE8iId72rWNPKmGjMcRAtiDAJ4uT1msly5EIjQnyV4GjP5+b7iJ9wCfRqky
AR3bE5o/kgqv4aypWmOQlWE=
=lLdL
-----END PGP SIGNATURE-----
_______________________________________________
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]