callback error





I'm not getting the correct argument of a callback func.
In 'do_search' I'm not getting the 'list' variable correctly.


This is the code:

static void
do_search(GtkWidget *widget, GtkWidget *list)
{
//i also tried do_search(GtkWidget *list) 
...
}

foo()
{
GtkWidget *list;
...

gtk_signal_connect (GTK_OBJECT (button), "clicked",
		      GTK_SIGNAL_FUNC (do_search), list);

//do_search(button, list) works, but the above callback don't
}


How should I read/pass the argument list?


Omar



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