[gtk+/gtk-3-4] radiobutton: add missing (element-type) annotation for radio groups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] radiobutton: add missing (element-type) annotation for radio groups
- Date: Sun, 15 Jul 2012 17:00:50 +0000 (UTC)
commit f245f370b0c39b39eb2a904174c3df36fb4fc3c3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed May 30 17:31:02 2012 -0400
radiobutton: add missing (element-type) annotation for radio groups
The GSLists should specify their element-type in every annotation. We
are missing some.
https://bugzilla.gnome.org/show_bug.cgi?id=677127
gtk/gtkradiomenuitem.c | 7 ++++---
gtk/gtkradiotoolbutton.c | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c
index 4a3f026..0413328 100644
--- a/gtk/gtkradiomenuitem.c
+++ b/gtk/gtkradiomenuitem.c
@@ -93,7 +93,8 @@ G_DEFINE_TYPE (GtkRadioMenuItem, gtk_radio_menu_item, GTK_TYPE_CHECK_MENU_ITEM)
/**
* gtk_radio_menu_item_new:
- * @group: the group to which the radio menu item is to be attached
+ * @group: (element-type GtkRadioMenuItem): the group to which the
+ * radio menu item is to be attached
*
* Creates a new #GtkRadioMenuItem.
*
@@ -155,7 +156,7 @@ gtk_radio_menu_item_get_property (GObject *object,
/**
* gtk_radio_menu_item_set_group:
* @radio_menu_item: a #GtkRadioMenuItem.
- * @group: the new group.
+ * @group: (element-type GtkRadioMenuItem): the new group.
*
* Sets the group of a radio menu item, or changes it.
*/
@@ -265,7 +266,7 @@ gtk_radio_menu_item_new_with_label (GSList *group,
/**
* gtk_radio_menu_item_new_with_mnemonic:
- * @group: group the radio menu item is inside
+ * @group: (element-type GtkRadioMenuItem): group the radio menu item is inside
* @label: the text of the button, with an underscore in front of the
* mnemonic character
*
diff --git a/gtk/gtkradiotoolbutton.c b/gtk/gtkradiotoolbutton.c
index d3cb2e2..6c964ed 100644
--- a/gtk/gtkradiotoolbutton.c
+++ b/gtk/gtkradiotoolbutton.c
@@ -151,8 +151,8 @@ gtk_radio_tool_button_new (GSList *group)
/**
* gtk_radio_tool_button_new_from_stock:
- * @group: (allow-none): an existing radio button group, or %NULL if you are
- * creating a new group
+ * @group: (allow-none) (element-type GtkRadioButton): an existing radio button
+ * group, or %NULL if you are creating a new group
* @stock_id: the name of a stock item
*
* Creates a new #GtkRadioToolButton, adding it to @group.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]