Peter Robinson wrote:
[...]

void open_data_file(gpointer callback_data, guint callback_action, GtkWidget  
*widget) {
  GtkWidget *filew;
[...]

         g_signal_connect (G_OBJECT (GTK_FILE_SELECTION (filew)->ok_button),
"clicked", G_CALLBACK (data_file_ok_sel), of_context);

(...)

In the function data_file_ok_sel, however, for some reason the pointers context->fs and context->label have different values, and the program dumps core when it tries to read constext->fs as a file selection widget:

Seems you are using the somewhat obscure "swapped" flag for your 
"open_data_file"
callback... which you are not doing for "data_file_ok_sel"... where is the
prototype for "data_file_ok_sel" ?

Cheers,
                      -Tristan
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to