Re: CList signal connecting
- From: Peter Jay Salzman <p dirac org>
- To: Valdis Kletnieks vt edu
- Cc: gtk-list gnome org
- Subject: Re: CList signal connecting
- Date: Sun, 2 Jun 2002 14:36:14 -0700
begin Valdis Kletnieks vt edu <Valdis Kletnieks vt edu>
> 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.
wow, that worked. *sigh*. i certainly hope gtk gets easier with
experience. there seems to be ALOT of details to remember.
thanks valdis!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]