Re: notebook causes segmentation fault



{
   GtkWidget *notebook1;
   gint = page;

   page=gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook1));
   gtk_notebook_remove_page(GTK_NOTEBOOK(notebook1) , page);
}

Seems like you missed a step in setting the notebook1 pointer to a valid
widget. As of now, it is a stray pointer & obviously you would segfault.

You'd be receiving the widget's pointer to your callback anyway, so try
using that pointer.

Regards,
Raj



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