Re: How to use a gpointer?



On Wed, Mar 03, 1999 at 11:18:49AM +0100, Christian B. Westermann wrote:
> Can anybody show me how to use a gpointer. In the following example I
> want to use the variable 'value' in my function 'handle_value'. I filled
> the spaces with ??? where I don't know how to do it.

If You want to pass the *value* the below shuld work. If You want
to pass the values location it is somthind different...

> value_ptr=&value;
Not neaded

> GTK_SIGNAL_FUNC(handle_value),(gpointer)???);
  GTK_SIGNAL_FUNC(handle_value),(gpointer) value);
> 
> the_value=??????data; 
  the_value= (int) data; 



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