Re: using multiple widgets in a callback



On Fri, Jul 26, 2002 at 03:21:21PM -0500, Jeffrey Goddard wrote:
I've seen, somewhere, a method for passing more than two widgets to a 
callback routine, but I can't seem to find it anywhere in my office. Could 
someone please give me a clue?
TIA 
Jeffrey
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Hi,

I don't know if there is a "correct" way to do this or not but when I
personally do such a thing I use g_object_set_data() to give one widget
pointers to the other widgets and pass that to the callback.  Then you
can use g_object_get_data() in the callback to get those other widgets
back.  Others may have different ways, that's just how I do it.

-Scott

-- 
We are not humanity.
-B



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