Re: How to work with a gpointer argument

2010-08-10 Thread Tadej Borovšak
Hi. > void rip( GtkWidget *widget, GdkEvent *event, gpointer > source_combo_box ) You're getting a segfault because GtkButton::clicked signal[1] has only 2 arguments: a GtkButton and user provided data. Your function should be defined as: void rip (GtkWidget *button, gpointer source_combo_

How to work with a gpointer argument

2010-08-10 Thread Trevor Vallender
I have a callback function which looks like: void rip( GtkWidget *widget, GdkEvent *event, gpointer source_combo_box ) { gtk_combo_box_append_text( source_combo_box, "HHH"); } And causes a segmentation fault whenever it is called. Why is this? I thought perhaps I need to cast the source_combo