Re: undocumented parameters

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

 



Hi,

Neil Zanella <nzanella@xxxxxxxxx> 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux