On Thu, 3 Aug 2000, Nghia wrote:
>
> Ok, I was advised to use structures to solve the problem which I almost
> did except for a segmentation fault during the passing the structure to
> gtk_singal_connect. Here is what I used
>
> struct widget {
> GtkWidget *intput;
> GtkWidget *output;
> };
> void button_one_clicked(GtkWidget *button, struct widget
> *widget_holder){
> }
> gtk_signal_connect(GTK_OBJECT(button_one, "clicked",
> GTK_SIGNAL_FUNC(button_one_clicked), widget_holder);
>
> But the moment the function button_one_clicked is run it crashes, even
> before it loads any variables (I've checked this by making the function
> empty).
Your pieces of code looks innocent (well, we don't know the type of
'widget_holder', but since gcc didn't warn, it looks like it was a pointer).
You should post reduced version of your code for us being able to help you.
> Is there something I did wrong? gcc didn't return any errors.
>
> Nghia
Best regards,
-Vlad
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list