CList signal connecting



i'm getting the following error:

gtkgui.c:238: warning: passing arg 1 of `gtk_signal_connect' from
incompatible pointer type

from this line:

   (line 238):
   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,
   		GdkEventButton *event, gpointer user_data)
   {
   	printf("row change received: row %d, col: %d\n", row, col);
   }

what exactly is gcc complaining about?

pete

ps- the book i'm using to learn gtk is ok -- sams "learn gtk in some
small number of days".   however, i'm beginning to suspect there's more
to gtk programming.

i'm finding myself writing the same code over and over with slight
variations.   is there some kind of "gtk cookbook" that shows, maybe,
techniques and ideas behind GUI programming rather than introducing and
explaining widgets and callbacks?  something with code snippets showing
how a real gtk programmer would approach a real world problem.

or experience the only book here?



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