Re: notebook



Dennis Bjorklund <db zigo dhs org> writes:

> This is a signal from GtkNotebook
> 
>   void (* switch_page)       (GtkNotebook     *notebook,
>                               GtkNotebookPage *page,
>                               guint            page_num);
> 
> yet GtkNotebookPage is an internal type and there are no functions that 
> works on it (that i can find). How can the handler ever use this value?
> 
> I guess it should be GtkWidget * instead?
> 
> Should I file a bugreport?

It was left there for compatibility with GTK+-1.2. This argument offers
no extra information that is not provided with page_num; you can get
the child widget for the page with:

GtkWidget* gtk_notebook_get_nth_page     (GtkNotebook *notebook,
					  gint         page_num);

Regards,
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]