Problem sending data to gtk_button on clicked event

2005-11-09 Thread Evan Behar
I've been getting seg-faults when I try to work with data in my button clicked callback functions, so as a test, I compiled and ran the following program: #include gtk/gtk.h gchar m1[] = button 1; gchar m2[] = button 2; static void callback(GtkWidget* widget, GdkEvent *event, gpointer data) {

Re: Problem sending data to gtk_button on clicked event

2005-11-09 Thread Alan M. Evans
On Wed, 2005-11-09 at 08:39, Evan Behar wrote: I've been getting seg-faults when I try to work with data in my button clicked callback functions, so as a test, I compiled and ran the following program: #include gtk/gtk.h gchar m1[] = button 1; gchar m2[] = button 2; static void

Re: Problem sending data to gtk_button on clicked event

2005-11-09 Thread Olivier Sessink
Evan Behar wrote: I've been getting seg-faults when I try to work with data in my button clicked callback functions, so as a test, I compiled and ran the following program: #include gtk/gtk.h gchar m1[] = button 1; gchar m2[] = button 2; static void callback(GtkWidget* widget,

Re: Problem sending data to gtk_button on clicked event

2005-11-09 Thread Tristan Van Berkom
Evan Behar wrote: I've been getting seg-faults when I try to work with data in my button clicked callback functions, so as a test, I compiled and ran the following program: Be carefull how you prototype your callbacks, for example; the GtkButtonClass's closure for the clicked signal will