Re: undocumented parameters



Hi,

Neil Zanella <nzanella gmail com> writes:

> OK, I am now connecting the "switch-page" for notebooks which seems to
> be the only
> one that works. However,
>
> void foo(GtkNotebook *notebook, GtkNotebookPage *page, guint page_num,
> gpointer data) {
>
>   assert(page_num == (guint) gtk_notebook_get_current_page(notebook));
>   ...
> }
>
> The above assertion always fails. What's the matter? Seems like the
> signal is called before emission.

Sure. gtk_notebook_switch_page() is a class closure. So the signal is
emitted first and the default implementation is run last. Dude, you've
got the source code, why don't you look at it?


Sven



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