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 th
On Sat, Jan 09, 2010 at 07:56:53AM -0500, dhk wrote:
> Never mind. I was getting the page number from the notebook not the
> page number parameter of the "switch-page" callback. The documentation
> doesn't specify which page the index is for, it just says "page_num :
> the index of the page".
Mi
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
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
>> p
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 thr
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 t