Edgar Denny wrote:
> 

<snip>

> If you wish to do it by passing integers, rather than as Rosa suggested,
> you can take the reference to the integer, cast it to a gpointer and pass
> this as the argument. Then in the callback, you can cast the gpointer back
> to a pointer to the integer. Messy, but it should also work.
> 

The portable way to accomplish this is to use the GPOINTER_TO_INT and
GINT_TO_POINTER macros from the glib library. Note that storing an
integer in a pointer is guaranteed to work on all architectures but
doing the reverse is not, and should not be done.
  Josh Green

_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to