GNOME Bugzilla – Bug 73229
No pleasant way to get a count of pages in the notebook
Last modified: 2011-02-04 16:11:17 UTC
There should be a gtk_notebook_get_n_pages() function. (My use-case is wanting to set the "next tab" menu item insensitive if the current page is the last page.)
You should be able to do this: gtk_notebook_page_num (GTK_NOTEBOOK (notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), -1)); But get_nth_page doesn't accept -1 to mean the last page.
Mon Sep 23 18:01:52 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtknotebook.[ch]: Add gtk_notebook_get_n_pages (#73229, Havoc Pennington) * gtk/gtknotebook.c (gtk_notebook_get_nth_page): Handle -1 to mean the last page, as we do elsewhere. (#73229)