Re: newbie signal question



Just a bit ago, I wrote:

 > What if I don't want the notebook to switch pages?  I trap the
 > switch_page signal, yes.  Can I return something?  If so, what?

The return value seems to be ignored, because the following code
doesn't treat page 3 specially:

static gint
page_switch_callback (GtkWidget *widget, 
		      GtkNotebookPage *page, 
		      gint page_num,
		      gpointer data)
{
  printf("Switching to page %d\n", page_num);
  return page_num == 3;
}

-- 
-russ <nelson@crynwr.com>  http://web.crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok |   Freedom is the primary
521 Pleasant Valley Rd. | +1 315 268 1925 voice |   cause of Peace, Love,
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   |   Truth and Justice.



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