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, fill
the 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 manually
using a combo of gtk_tree_iter_next and my_compare_func?

I have checked the doc/APIs but couldn't find what I needed.

Archit Baweja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE8iId72rWNPKmGjMcRAtiDAJ4uT1msly5EIjQnyV4GjP5+b7iJ9wCfRqky
AR3bE5o/kgqv4aypWmOQlWE=
=lLdL
-----END PGP SIGNATURE-----



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