Re: Callbacks for windows that return large amounts of data




 I would create a struct and pass it as the callback data.
 This way, you have a more organized data structure that can be easily
understood by someone reading the code.

Harring.


--- "Luesley, William" <william luesley amsjv com> wrote:
If I create a dialog window which obtains a lot of data form the user in
multiple widgets, what is the best way to get at that data in the associated
callback function?
 
The two thoughts I'd had were either making the widgets required global
(yuck!),  or using gtk_object_set_data to link all the widgets to the parent
widget, and then pass the parent widget as data to the callback.
 
However, neither of these ideas sounds totally correct to me.
 
Finally, if anyone can recommend any programs that have examples of "good"
GTK+ code that I could look over I would be most grateful.
 
 
Thanks in advance for your help, 
 
 
Will Luesley.
 
 



********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



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