xt:
http://www.nabble.com/Treeview-Row-Count-tp25593281p25850819.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Kristian Rietveld wrote:
> Also note that for *lists* (so no parent nodes, no children) a call
> like gtk_tree_model_iter_n_children (model, NULL) will suffice.
>
>
> -kris.
>
> On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak wrote:
>> Hello.
>>
>>> Is there a function to give the number of row
Also note that for *lists* (so no parent nodes, no children) a call
like gtk_tree_model_iter_n_children (model, NULL) will suffice.
-kris.
On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak wrote:
> Hello.
>
>> Is there a function to give the number of rows in a treeview?
>
> You probably want to
Hello.
> Is there a function to give the number of rows in a treeview?
You probably want to know how many lines are in the GtkTreeModel that
serves as data source for GtkTreeView. There is no simple function
that would serve you this number, so you'll have to take one of the
two available paths:
Is there a function to give the number of rows in a treeview?
Thanks,
dhk
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list