http://mail.gnome.org/archives/gtk-app-devel-list/2003-April/msg00204.html Page numbers in GtkNotebook From: Manu C S To: gtk-app-devel-list gnome org Subject: Page numbers in GtkNotebook Date: Tue, 15 Apr 2003 12:50:21 -0500 (CDT) Hi,How does one find out the page numbers of tabs in GtkNotebook?I tried gtk_notebook_get_current_page() in a callback forswitch page signal, but the page number I get from this varies each time. I want to be able to do something like this in my code: ------------------------------------------------------------- #define PAGE_0 0 #define PAGE_1 1 #define PAGE_2 2 ... on_top_switch_page (GtkNotebook* notebook, ....) { curr_page = gtk_notebook_get_current_page(notebook); switch (curr_page) { case PAGE_0: break; case PAGE_1: break; .... } } ------------------------------------------------------------- I found this question asked in the archives (2000-Jul), but I couldn't locate any suitable answers. Can anyone please help? It's rather urgent. Thanks, Manu Re: Page numbers in GtkNotebook From: “Audrey Vernon” To: “Manu C S” , Subject: Re: Page numbers in GtkNotebook Date: Tue, 15 Apr 2003…