gpointer and callback

Hi it´s me again
I´m trying to pass a string to a callback but I don´t know how.
I´ve tryed this:
char str[256];
g_signal_connect (G_OBJECT (clist), "select_row", G_CALLBACK (MyCallback), str );

void Call_Menu(GtkWidget *widget, gint row, gint column, GdkEventButton *event, gpointer data){
    g_printf("%s\n", (char *) data);
Any suggestion? any help?
Ariel Antonio Fritz

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