Re: [gtk-list] Re: Okay, newbie here



On Sat, Nov 21, 1998 at 08:54:11PM -0700, Christopher Wiegand wrote:
> So I need to store a pointer to my widgets in a linked list like thing? I've
> got the program to show things, but I need a way to reference those widgets
> after I've created them, in a whole 'nother function. I think I'm going to
> have to do a "widget collection" list or something. I was just hoping there
> was some builtin way of doing it, because the only other way I could think of
> is global variables, which are annoying...

just create a structure with the widget pointers in it and pass that around
to the different handlers though the data field

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



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