Re: GtkNotebook switch-page Signal

2010-01-09 Thread David Nečas
On Fri, Jan 08, 2010 at 05:59:27PM -0500, dhk wrote: When changing from one tab to another in a GtkNotebook I often need to know the tab that was selected. It seems the switch-page signal just tells the current page and there are functions that tell the current page and will navigate through

Re: GtkNotebook switch-page Signal

2010-01-09 Thread dhk
David Nečas wrote: On Fri, Jan 08, 2010 at 05:59:27PM -0500, dhk wrote: When changing from one tab to another in a GtkNotebook I often need to know the tab that was selected. It seems the switch-page signal just tells the current page and there are functions that tell the current page and

Re: GtkNotebook switch-page Signal

2010-01-09 Thread dhk
dhk wrote: David Nečas wrote: On Fri, Jan 08, 2010 at 05:59:27PM -0500, dhk wrote: When changing from one tab to another in a GtkNotebook I often need to know the tab that was selected. It seems the switch-page signal just tells the current page and there are functions that tell the current

Re: GtkNotebook switch-page Signal

2010-01-09 Thread Carlos Pereira
This is a typical callback for the switch-page signal: void my_callback (GtkNotebook *notebook, GtkNotebookPage *notebook_page, int page, void *data) { GtkWidget* vbox_page; vbox_page = gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook), page); 1) page is the number (0 = first page, etc.) of

GtkNotebook switch-page Signal

2010-01-08 Thread dhk
When changing from one tab to another in a GtkNotebook I often need to know the tab that was selected. It seems the switch-page signal just tells the current page and there are functions that tell the current page and will navigate through the page, but I don't see anything that will tell tell