Re: [gtk-list] Re: dynamic creation of buttons



On Thu, Jan 06, 2000 at 08:58:36PM +0100,
Nicolas GEORGE <george@clipper.ens.fr> wrote:
> The correct way tu use it is (int)user_data.

I assume you're suggesting that he do this in the callback, but this may
not work on all systems. You should always use the
GINT_TO_POINTER/GPOINTER_TO_INT macros when storing integers in
pointers, otherwise, your program may not be portable.

-- 
Eric Gillespie, Jr. <*> epg@pobox.com

All hail the Dollar, King of the Earth.

PGP signature



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