From 4ebc61c067af80a3cd24f1cfd79ec6b6be80e350 Mon Sep 17 00:00:00 2001 From: Lars Hamann Date: Wed, 2 Dec 1998 00:52:14 +0000 Subject: new class method/signal row_move. new public function. emit a row_move Tue Dec 1 22:45:58 1998 Lars Hamann * gtk/gtkclist.h (struct _GtkCListClass): new class method/signal row_move. * gtk/gtkclist.c (gtk_clist_row_move): new public function. emit a row_move signal (real_row_move): move source_row to dest_row (gtk_clist_swap_rows): use gtk_clist_row_move calls. (gtk_clist_columns_autosize): resize all columns to their optimal width * gtk/gtkctree.c (real_row_move): use gtk_ctree_move to move entire sub-tree. * gtk/gtknotebook.c (gtk_notebook_nth_page): get nth page widget. --- gtk/gtknotebook.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gtk/gtknotebook.c') diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 0d566d6fa8..dd861291c8 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3565,6 +3565,23 @@ gtk_notebook_get_current_page (GtkNotebook *notebook) return g_list_index (notebook->children, notebook->cur_page); } +GtkWidget * +gtk_notebook_nth_page (GtkNotebook *notebook, + gint page_num) +{ + GtkNotebookPage *page; + + g_return_val_if_fail (notebook != NULL, NULL); + g_return_val_if_fail (GTK_IS_NOTEBOOK (notebook), NULL); + + page = g_list_nth_data (notebook->children, page_num); + + if (page) + return page->child; + + return NULL; +} + gint gtk_notebook_page_num (GtkNotebook *notebook, GtkWidget *child) -- cgit v1.2.1