Re: Strange Callback Behavior
- From: Tristan Van Berkom <tvb gnome org>
- To: Peter Robinson <Peter Robinson t-online de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Strange Callback Behavior
- Date: Mon, 05 Jun 2006 09:47:36 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]