Please, help me.



GtkWidget *temp= gtk_file_selection_new("File selection");

gulong handlerID= g_signal_connect_after(
G_OBJECT(GTK_FILE_SELECTION(temp)->ok_button), "clicked",
G_CALLBACK(EmptyCallBack), NULL
);

g_signal_connect_swapped(
G_OBJECT(GTK_FILE_SELECTION(temp)->ok_button), "clicked",
G_CALLBACK(gtk_widget_destroy), temp
);

g_signal_connect_swapped(
G_OBJECT(GTK_FILE_SELECTION(temp)->cancel_button), "clicked",
G_CALLBACK(gtk_widget_destroy), temp
);

if(g_signal_handler_is_connected(G_OBJECT(GTK_FILE_SELECTION(temp)->ok_button),
handlerID)){
g_message("check handler id\n");

ExtractFilePath(temp, (GtkWidget *)data);
}

I don't know why "g_singal_handler_is_connected()" is performed before
"GTK_FILE_SELECTION(temp)->ok_button" is clicked.

What is the problems at g_signal_handler_is_connnected()?

I want to run "ExtractFilePath()" when clicked ok_button.

p.s I am sorry that I can't write in English very well




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]