[gtk+/gtk-3-2] gtk: add annotations for some GtkRadio* constructors
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-2] gtk: add annotations for some GtkRadio* constructors
- Date: Sat, 12 Nov 2011 04:10:01 +0000 (UTC)
commit b4565e127a42af694cbd35a0c6a538a05f3abb30
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Sat Oct 15 19:18:52 2011 +0200
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
gtk/gtkradiobutton.c | 2 +-
gtk/gtkradiomenuitem.c | 6 +++---
gtk/gtkradiotoolbutton.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 73f11c6..c835ae0 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -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
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c
index a38f667..d64a3c4 100644
--- a/gtk/gtkradiomenuitem.c
+++ b/gtk/gtkradiomenuitem.c
@@ -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
*
diff --git a/gtk/gtkradiotoolbutton.c b/gtk/gtkradiotoolbutton.c
index 75fbcd2..f56e2cb 100644
--- a/gtk/gtkradiotoolbutton.c
+++ b/gtk/gtkradiotoolbutton.c
@@ -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
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]