Re: resizing tables with widget and unref



rhfreeman <rhfreeman@micron.com> writes: 
> Well, this code seg faults so I am not surprised I can't do such things. I
> am basically guessing as I don't have a real idea of how to do this.
> remove_list is a global variable so I can access it here. So if I just have
> this in my function:
> 
> static void remove_list_from_panel(GtkWidget *widget, GtkWidget *main_vbox)
> {
>   gtk_container_remove(GTK_CONTAINER(main_vbox), remove_list);
> }
> 
> My code still seg faults, and I don't know why!
> 

Have you tried looking at where the segfault occurs using gdb (or your
platform's debugger?).

Havoc




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