Re: notebook causes segmentation fault

2005-03-25 Thread Antonio Gomes
Hi , try this: 1) while connecting the signal (on main function, I don't know), pass the "notebook" widget as a "user pointer" argument ... something like that : gtk_signal_connect(GTK_OBJECT(my_button), "clicked", GTK_SIGNAL_FUNC(close_current_tab_cb), my_notebookPointer); 2) on callbac

Re: notebook causes segmentation fault

2005-03-22 Thread Raj
{ 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

notebook causes segmentation fault

2005-03-22 Thread Eljin
Hello, I'm new to the list and admittedly a novice to programming. I'm trying to use "gtk_notebook_remove _page" or any other "notebook" function and am not understanding why my program keeps crashing with a segmentation fault. I'm using GTK 2.4.3, Glade and Anjuta to build a simple app. In Glad