Re: undocumented parameters



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. Also, GtkNotebookPage: an opaque implementation
detail of GtkNotebook. What does "opaque" mean here?

Thanks,

Neil



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