Re: giving gint to a SIGNAL_FUNC
- From: "Ray Strode" <halfline hotmail com>
- To: lhimdul gmx de
- Cc: gnome-devel-list gnome org
- Subject: Re: giving gint to a SIGNAL_FUNC
- Date: Mon, 26 Jun 2000 07:14:20 HST
>Hi,
>
>gtk_signal_connect(GTK_OBJECT(button), "clicked",
> GTK_SIGNAL_FUNC(log), NULL);
>
>Instead of "NULL" I want to give a gint to the SIGNAL_FUNC. Does anybody
>know how to do this?
Use GINT_TO_POINTER( var ) inplace of NULL, and in your callback
use gint var = GPOINTER_TO_INT( data );
--
Halfline(Ray Strode)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]