Re: List view: Howto get the number of displayed rows?
- From: amol <amol kulkarni celunite com>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: List view: Howto get the number of displayed rows?
- Date: Wed, 20 Jun 2007 15:51:37 +0530
Hi
I am not sure whether this is right/optimized solution.
1. gtk_list_store_insert_before (GtkListStore *list_store,
GtkTreeIter *iter, GtkTreeIter *sibling); with sibling = NULL.
2. gchar* gtk_tree_model_get_string_from_iter (GtkTreeModel
*tree_model, GtkTreeIter *iter);
if your list has 10 rows then "10" will be returned.
3. gtk_list_store_remove (GtkListStore *list_store,GtkTreeIter *iter);
Regards,
Amol.
On Wed, 2007-06-20 at 10:47 +0200, Felipe wrote:
Hi,
Perhaps a stupid question, but I searched unsuccessfully in the
documentation of GtkListStore and GtkTreeModel about the number of rows
that are currently displayed in a list view. Now I need to know if
exists a function for this or should I use gtk_tree_model_foreach() to
count the number of rows "manually"?
Thanks in advance,
Felipe
_______________________________________________
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]