diff options
author | Lars Hamann <lars@gtk.org> | 1998-12-02 00:52:14 +0000 |
---|---|---|
committer | Lars Hamann <lars@src.gnome.org> | 1998-12-02 00:52:14 +0000 |
commit | 4ebc61c067af80a3cd24f1cfd79ec6b6be80e350 (patch) | |
tree | 9113164bd41b9a111b0a0512bda4eca1a4491ee0 /gtk/gtknotebook.c | |
parent | 70784023413b1e6fb748ad5e51d8d311ed651f0f (diff) | |
download | gtk+-4ebc61c067af80a3cd24f1cfd79ec6b6be80e350.tar.gz |
new class method/signal row_move. new public function. emit a row_move
Tue Dec 1 22:45:58 1998 Lars Hamann <lars@gtk.org>
* 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.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 17 |
1 files changed, 17 insertions, 0 deletions
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) |