diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2011-02-02 15:11:06 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2011-02-02 15:11:06 +0100 |
commit | 0e795b67c33400dcff78500a3fa0861af3ff0111 (patch) | |
tree | ff84bdc3a4c0d2663a2dd625bf2f21ce9639dd67 /gtk/gtkradiobutton.c | |
parent | 3067ef4a9b9fd51441dafcf05b6e0513d709df40 (diff) | |
download | gtk+-0e795b67c33400dcff78500a3fa0861af3ff0111.tar.gz |
[GI] Mark mis-detected constructors as such
constructors which take an object of the same class as its first argument are
mis-detected as method call with "self" argument by the GIR scanner. Using the
new (constructor) annotation from bug 561264, mark some of them as proper
constuctors, so that you can call them with NULL as first argument from
bindings; in particular, this fixes gdk_window_new() and the
gtk_radio_button_new_with*() constructors.
Diffstat (limited to 'gtk/gtkradiobutton.c')
-rw-r--r-- | gtk/gtkradiobutton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 59a77c5aba..31651962ec 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -500,7 +500,7 @@ gtk_radio_button_new_from_widget (GtkRadioButton *radio_group_member) } /** - * gtk_radio_button_new_with_label_from_widget: + * gtk_radio_button_new_with_label_from_widget: (constructor) * @radio_group_member: (allow-none): widget to get radio group from or %NULL * @label: a text string to display next to the radio button. * @@ -520,7 +520,7 @@ gtk_radio_button_new_with_label_from_widget (GtkRadioButton *radio_group_member, } /** - * gtk_radio_button_new_with_mnemonic_from_widget: + * gtk_radio_button_new_with_mnemonic_from_widget: (constructor) * @radio_group_member: (allow-none): widget to get radio group from or %NULL * @label: the text of the button, with an underscore in front of the * mnemonic character |