[gtk+/gi-annotations-2: 7/8] [GI] Add (type) annotations to real types



commit 62c6d292dd80c5918aa30ec9571353e3a93a0f19
Author: Pavel Holejsovsky <pholejs src gnome org>
Date:   Tue Jan 18 06:47:09 2011 +0100

    [GI] Add (type) annotations to real types

 gdk/gdkrgba.c      |    6 +++---
 gtk/gtkselection.c |    8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gdk/gdkrgba.c b/gdk/gdkrgba.c
index 97c4071..de06cb2 100644
--- a/gdk/gdkrgba.c
+++ b/gdk/gdkrgba.c
@@ -272,7 +272,7 @@ gdk_rgba_parse (GdkRGBA     *rgba,
 
 /**
  * gdk_rgba_hash:
- * @p: a #GdkRGBA pointer.
+ * @p: (type GdkRGBA): a #GdkRGBA pointer.
  *
  * A hash function suitable for using for a hash
  * table that stores #GdkRGBA<!-- -->s.
@@ -294,8 +294,8 @@ gdk_rgba_hash (gconstpointer p)
 
 /**
  * gdk_rgba_equal:
- * @p1: a #GdkRGBA pointer.
- * @p2: another #GdkRGBA pointer.
+ * @p1: (type GdkRGBA): a #GdkRGBA pointer.
+ * @p2: (type GdkRGBA): another #GdkRGBA pointer.
  *
  * Compares two RGBA colors.
  *
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index daa5081..2a58b7d 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -1218,7 +1218,7 @@ gtk_selection_data_get_format (const GtkSelectionData *selection_data)
  *
  * Retrieves the raw data of the selection.
  *
- * Returns: the raw data of the selection.
+ * Returns: (type gpointer): the raw data of the selection.
  *
  * Since: 2.14
  **/
@@ -1596,9 +1596,9 @@ gtk_selection_data_set_text (GtkSelectionData     *selection_data,
  * 
  * Gets the contents of the selection data as a UTF-8 string.
  * 
- * Return value: if the selection data contained a recognized
- *   text type and it could be converted to UTF-8, a newly allocated
- *   string containing the converted text, otherwise %NULL.
+ * Return value: (type utf8): if the selection data contained a
+ *   recognized text type and it could be converted to UTF-8, a newly
+ *   allocated string containing the converted text, otherwise %NULL.
  *   If the result is non-%NULL it must be freed with g_free().
  **/
 guchar *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]