Re: Trouble with GtkTreeModel & co.
- From: edscott wilson garcia <edscott imp mx>
- To: Andrej Prsa <andrej prsa guest arnes si>
- Cc: GTK Mailing list <gtk-list gnome org>
- Subject: Re: Trouble with GtkTreeModel & co.
- Date: 04 Jul 2003 13:44:49 -0500
El vie, 04-07-2003 a las 11:38, Andrej Prsa escribió:
> Hi, everyone!
>
> I am trying to "upgrade" from CLists to GtkTreeViews since my transition
> from 1.2 to 2.0. I have a spin button that declares how many rows a
> GtkTreeModel (with a GtkListStore) should contain; attached to the
> "changed" signal for a spin-button I have a callback that should do this.
> While I worked with CLists, I simply used clist->rows to obtain the number
> of rows already present and compared this value to the value in a
> spin-button - thus knowing how to change the CList structure. So how do I
> do this with GtkTreeModel & Co.? Specifically, how do I extract the number
> of rows already present?
My suggestion would be to run a gtk_tree_model_foreach () on the
treeview with a counter++, but there is probably a more clever solution.
Edscott
>
> Thanks,
>
> Andrej
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]