Re: Don't shoot the newbie.



Hi there.

I fixed the bug eventually: after changing the gpointer * to gpointer,
it still gave odd results.  So I mucked around with gdb until I was
thoroughly confused.  The problem was exactly 1 line up:  I was
declaring an incorrect callback function by including a GdkEvent *.

As soon as I removed that, the code worked the way I had thought it
will.  I had simply gotten confused by not realising that different
callbacks require functions in different forms.  Odd, though, that there
were no errors =(

I guess that teaches me to skim through the Tutorial, though :)

Thanks!
-- Bradley

On 15 May 2001 16:32:04 -0400, Alex Larsson wrote:
On 15 May 2001, Bradley Shuttleworth wrote:

Thanks Havoc.

Apart from these, I seem to still be having some hassles.  But from the
gdb info I'm getting, it seems I'm getting data as a pointer to a
pointer to a GtkWindow - basically its my pointer handling that's up the
creek ...
 Yes.

                                    gpointer *data)

No * here, just "gpointer data"

Note this comment.

/ Alex









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