]> Pileus Git - ~andy/gtk/commit
GtkRadioButtons: Mark group arguments as "allow-none"
authorMartin Pitt <martin.pitt@ubuntu.com>
Fri, 19 Nov 2010 09:19:32 +0000 (10:19 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Fri, 19 Nov 2010 15:29:43 +0000 (16:29 +0100)
commit3431f7a2d7fd63e670dfbc5c25b4a7adf7bb5739
tree8c0d60f40d59149f2389e97db5e119d75686f481
parenta4d59f7415968e2cd2d6bb0cff97dffaff022f2e
GtkRadioButtons: Mark group arguments as "allow-none"

In the current introspection data, the various gtk_radio_button_new_*
constructors take an existing group or widget. These all allow passing a NULL
widget or group list, so that it becomes easy to build a radio button list in a
loop (pass in None the first time, and the previously created button in all
other iterations).

Add the missing "allow-none" tag to the introspection data, so that this will
also eventually work for GIR users. NB that it does not actually work for some
constructors yet (like new_with_label_from_widget()) due to
https://bugzilla.gnome.org/show_bug.cgi?id=561264.

https://bugzilla.gnome.org/show_bug.cgi?id=635253
gtk/gtkradiobutton.c