summaryrefslogtreecommitdiff
path: root/gtk/gtkctree.c
diff options
context:
space:
mode:
authorLars Hamann <lars@gtk.org>1998-11-18 23:55:10 +0000
committerLars Hamann <lars@src.gnome.org>1998-11-18 23:55:10 +0000
commit735132708950a2f9b39410bceb43434ba06d9be1 (patch)
treed08c29afa17d41a4c7a950a2754cd4ac4e2ede16 /gtk/gtkctree.c
parent3725bc3ad9f8a4669674b51b351c72be8a1b1d89 (diff)
downloadgtk+-735132708950a2f9b39410bceb43434ba06d9be1.tar.gz
return the nth GtkCTreeNode in row_list. (from Samuel Solon
Thu Nov 19 00:15:27 1998 Lars Hamann <lars@gtk.org> * gtk/gtkctree.c (gtk_ctree_node_nth): return the nth GtkCTreeNode in row_list. (from Samuel Solon <ssolon@usa.net>) * gtk/gtkclist.c (gtk_clist_get_column_title): return column title (gtk_clist_get_column_widget): return column widget
Diffstat (limited to 'gtk/gtkctree.c')
-rw-r--r--gtk/gtkctree.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkctree.c b/gtk/gtkctree.c
index e3283b0906..140c8a4f23 100644
--- a/gtk/gtkctree.c
+++ b/gtk/gtkctree.c
@@ -4294,6 +4294,19 @@ gtk_ctree_find_node_ptr (GtkCTree *ctree,
return node;
}
+GtkCTreeNode *
+gtk_ctree_node_nth (GtkCTree *ctree,
+ guint row)
+{
+ g_return_val_if_fail (ctree != NULL, NULL);
+ g_return_val_if_fail (GTK_IS_CTREE (ctree), NULL);
+
+ if ((row < 0) || (row >= GTK_CLIST(ctree)->rows))
+ return NULL;
+
+ return GTK_CTREE_NODE (g_list_nth (GTK_CLIST (ctree)->row_list, row));
+}
+
gboolean
gtk_ctree_find (GtkCTree *ctree,
GtkCTreeNode *node,