gtk: add annotations for some GtkRadio* constructors

Since constructors like gtk_radio_button_new_from_widget take an
instance of their type as the first argument, the gi scanner interprets
them as methods.

https://bugzilla.gnome.org/show_bug.cgi?id=661858
This commit is contained in:
Torsten Schönfeld 2011-10-15 19:18:52 +02:00
parent 88329aeff4
commit 4ef61e2311
3 changed files with 6 additions and 6 deletions

View File

@ -483,7 +483,7 @@ gtk_radio_button_new_with_mnemonic (GSList *group,
}
/**
* gtk_radio_button_new_from_widget:
* gtk_radio_button_new_from_widget: (constructor)
* @radio_group_member: (allow-none): an existing #GtkRadioButton.
*
* Creates a new #GtkRadioButton, adding it to the same group as

View File

@ -298,7 +298,7 @@ gtk_radio_menu_item_new_with_mnemonic (GSList *group,
}
/**
* gtk_radio_menu_item_new_from_widget:
* gtk_radio_menu_item_new_from_widget: (constructor)
* @group: An existing #GtkRadioMenuItem
*
* Creates a new #GtkRadioMenuItem adding it to the same group as @group.
@ -321,7 +321,7 @@ gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group)
}
/**
* gtk_radio_menu_item_new_with_mnemonic_from_widget:
* gtk_radio_menu_item_new_with_mnemonic_from_widget: (constructor)
* @group: An existing #GtkRadioMenuItem
* @label: the text of the button, with an underscore in front of the
* mnemonic character
@ -351,7 +351,7 @@ gtk_radio_menu_item_new_with_mnemonic_from_widget (GtkRadioMenuItem *group,
}
/**
* gtk_radio_menu_item_new_with_label_from_widget:
* gtk_radio_menu_item_new_with_label_from_widget: (constructor)
* @group: an existing #GtkRadioMenuItem
* @label: the text for the label
*

View File

@ -184,7 +184,7 @@ gtk_radio_tool_button_new_from_stock (GSList *group,
}
/**
* gtk_radio_tool_button_new_from_widget:
* gtk_radio_tool_button_new_from_widget: (constructor)
* @group: (allow-none): An existing #GtkRadioToolButton, or %NULL
*
* Creates a new #GtkRadioToolButton adding it to the same group as @gruup
@ -207,7 +207,7 @@ gtk_radio_tool_button_new_from_widget (GtkRadioToolButton *group)
}
/**
* gtk_radio_tool_button_new_with_stock_from_widget:
* gtk_radio_tool_button_new_with_stock_from_widget: (constructor)
* @group: (allow-none): An existing #GtkRadioToolButton.
* @stock_id: the name of a stock item
*