On Sun, 02 Jun 2002 14:00:59 PDT, Peter Jay Salzman <p dirac org> said: > gtkgui.c:238: warning: passing arg 1 of `gtk_signal_connect' from > incompatible pointer type > gtk_signal_connect( GTK_CLIST(SpriteCList), "select_row", > GTK_SIGNAL_FUNC(SpriteRowSelectCallback), > GTK_CLIST(SpriteCList)->selection); > > however, it works in the sense that when i select a new row, my callback > function gets called with the correct row/column data. > > the callback is: > > void SpriteRowSelectCallback(GtkCList *CList, gint row, gint col, > what exactly is gcc complaining about? It's complaining that you're pasing SpriteCList to gtk_signal_connect(), when the first parameter is of type "GtkObject *object", and SpriteCList isnt a "GtkObject *". Try gtk_signal_connect(GTK_OBJECT(SpriteCList), /* other parms */ instead. -- Valdis Kletnieks Computer Systems Senior Engineer Virginia Tech
Attachment:
pgpMS9U6i5TFt.pgp
Description: PGP signature