GNOME Bugzilla – Bug 634708
RadioButton get_group() etc use AV* return
Last modified: 2010-11-21 20:51:21 UTC
Created attachment 174352 [details] [review] patch and test cases This is an idea to have gtk_radio_button_get_group() and friends use an AV* return to let the typemap do some work, instead of explicit PUSHs.
Patch looks good to me in general, but I gotta ask: what's your motivation? what do we gain?
I had this bouncing around for a while. I saw the pod saying "list" (eg. Gtk2::RadioMenuItem) which is a bit unclear, being an arrayref not multiple values as such, and wondered that an "arrayref" type from the typemap could indicate it in the code and the pod. There's almost an opportunity for some code sharing between the four places, some return type like "GSList_of_GObject", unless the widget ones should have the silly "ref sink" and the RadioAction one not, and except that most other GSList returns are done as lists style return instead of arrayref.
Alright, convinced. Committed. Thanks.