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

Re: GtkTreeModel question



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

Hi

Yeah I know I have to get an iter first. But how do I get that iter, if I
only have a pointer to the struct I have added to the model. That is the problem.

Archit Baweja

"aruna pourohit" <aruna.pou@wipro.com> writes:

> 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.


> > 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
> > 
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-----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/>

iD8DBQE8iYCZ2rWNPKmGjMcRAgMmAJ4z17J1cLp+AfF0Pw472uBHbGADfgCdHIRB
XtZ3VwqrjQaNIvUefscTOgg=
=UhwB
-----END PGP SIGNATURE-----



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