Re: using multiple widgets in a callback
- From: Jeffrey Goddard <magnasygg sunengineeringinc com>
- To: Scott Barron <sb125499 ohiou edu>
- Cc: "GTK Developement List" <gtk-app-devel-list gnome org>
- Subject: Re: using multiple widgets in a callback
- Date: Fri, 26 Jul 2002 16:22:29 -0500
I think that it's "correct" enough for me. Works great.
Thanks
Jeffrey
On Friday 26 July 2002 15:24, you wrote:
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]