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
This commit is contained in:
Lars Hamann 1998-11-18 23:55:10 +00:00 committed by Lars Hamann
parent 3725bc3ad9
commit 7351327089
11 changed files with 109 additions and 0 deletions

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1,3 +1,11 @@
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
Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com> Wed Nov 18 11:54:57 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops * gtk/gtkdnd.c (gtk_drag_find_widget): Accept drops

View File

@ -1177,6 +1177,7 @@ gtk_clist_thaw (GtkCList *clist)
* gtk_clist_column_titles_active * gtk_clist_column_titles_active
* gtk_clist_column_titles_passive * gtk_clist_column_titles_passive
* gtk_clist_set_column_title * gtk_clist_set_column_title
* gtk_clist_get_column_title
* gtk_clist_set_column_widget * gtk_clist_set_column_widget
* gtk_clist_set_column_justification * gtk_clist_set_column_justification
* gtk_clist_set_column_visibility * gtk_clist_set_column_visibility
@ -1346,6 +1347,19 @@ gtk_clist_set_column_title (GtkCList *clist,
size_allocate_title_buttons (clist); size_allocate_title_buttons (clist);
} }
gchar *
gtk_clist_get_column_title (GtkCList *clist,
gint column)
{
g_return_val_if_fail (clist != NULL, NULL);
g_return_val_if_fail (GTK_IS_CLIST (clist), NULL);
if (column < 0 || column >= clist->columns)
return NULL;
return clist->column[column].title;
}
void void
gtk_clist_set_column_widget (GtkCList *clist, gtk_clist_set_column_widget (GtkCList *clist,
gint column, gint column,
@ -1389,6 +1403,22 @@ gtk_clist_set_column_widget (GtkCList *clist,
size_allocate_title_buttons (clist); size_allocate_title_buttons (clist);
} }
GtkWidget *
gtk_clist_get_column_widget (GtkCList *clist,
gint column)
{
g_return_val_if_fail (clist != NULL, NULL);
g_return_val_if_fail (GTK_IS_CLIST (clist), NULL);
if (column < 0 || column >= clist->columns)
return NULL;
if (clist->column[column].button)
return GTK_BUTTON (clist->column[column].button)->child;
return NULL;
}
void void
gtk_clist_set_column_justification (GtkCList *clist, gtk_clist_set_column_justification (GtkCList *clist,
gint column, gint column,

View File

@ -429,11 +429,19 @@ void gtk_clist_set_column_title (GtkCList *clist,
gint column, gint column,
const gchar *title); const gchar *title);
/* returns the title of column. Returns NULL if title is not set */
gchar * gtk_clist_get_column_title (GtkCList *clist,
gint column);
/* set a widget instead of a title for the column title button */ /* set a widget instead of a title for the column title button */
void gtk_clist_set_column_widget (GtkCList *clist, void gtk_clist_set_column_widget (GtkCList *clist,
gint column, gint column,
GtkWidget *widget); GtkWidget *widget);
/* returns the column widget */
GtkWidget * gtk_clist_get_column_widget (GtkCList *clist,
gint column);
/* set the justification on a column */ /* set the justification on a column */
void gtk_clist_set_column_justification (GtkCList *clist, void gtk_clist_set_column_justification (GtkCList *clist,
gint column, gint column,

View File

@ -4294,6 +4294,19 @@ gtk_ctree_find_node_ptr (GtkCTree *ctree,
return node; 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 gboolean
gtk_ctree_find (GtkCTree *ctree, gtk_ctree_find (GtkCTree *ctree,
GtkCTreeNode *node, GtkCTreeNode *node,

View File

@ -238,6 +238,8 @@ GtkCTreeNode * gtk_ctree_last (GtkCTree *ctree,
GtkCTreeNode *node); GtkCTreeNode *node);
GtkCTreeNode * gtk_ctree_find_node_ptr (GtkCTree *ctree, GtkCTreeNode * gtk_ctree_find_node_ptr (GtkCTree *ctree,
GtkCTreeRow *ctree_row); GtkCTreeRow *ctree_row);
GtkCTreeNode * gtk_ctree_node_nth (GtkCTree *ctree,
guint row);
gboolean gtk_ctree_find (GtkCTree *ctree, gboolean gtk_ctree_find (GtkCTree *ctree,
GtkCTreeNode *node, GtkCTreeNode *node,
GtkCTreeNode *child); GtkCTreeNode *child);