[gtk+/native-layout] Add some missing introspection annotations
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Add some missing introspection annotations
- Date: Sun, 4 Apr 2010 02:29:32 +0000 (UTC)
commit 9414dc2cf664a04a89c294d6b1beed3eea27f093
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 22 23:47:24 2010 -0500
Add some missing introspection annotations
gdk/gdkvisual.c | 4 ++--
gdk/x11/gdkcolor-x11.c | 2 +-
gdk/x11/gdkscreen-x11.c | 10 +++++-----
gdk/x11/gdkvisual-x11.c | 13 +++++++------
4 files changed, 15 insertions(+), 14 deletions(-)
---
diff --git a/gdk/gdkvisual.c b/gdk/gdkvisual.c
index b314dca..9e75563 100644
--- a/gdk/gdkvisual.c
+++ b/gdk/gdkvisual.c
@@ -48,11 +48,11 @@ gdk_list_visuals (void)
/**
* gdk_visual_get_system:
*
- * Get the system'sdefault visual for the default GDK screen.
+ * Get the system's default visual for the default GDK screen.
* This is the visual for the root window of the display.
* The return value should not be freed.
*
- * Return value: system visual
+ * Return value: (transfer none): system visual
**/
GdkVisual*
gdk_visual_get_system (void)
diff --git a/gdk/x11/gdkcolor-x11.c b/gdk/x11/gdkcolor-x11.c
index 35c18b8..4fc75b9 100644
--- a/gdk/x11/gdkcolor-x11.c
+++ b/gdk/x11/gdkcolor-x11.c
@@ -351,7 +351,7 @@ gdk_colormap_sync (GdkColormap *colormap,
*
* Gets the system's default colormap for @screen
*
- * Returns: the default colormap for @screen.
+ * Returns: (transfer none): the default colormap for @screen.
*
* Since: 2.2
*/
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 1d274f4..8c494aa 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -527,8 +527,8 @@ gdk_screen_get_monitor_geometry (GdkScreen *screen,
* For setting an overall opacity for a top-level window, see
* gdk_window_set_opacity().
- * Return value: a colormap to use for windows with an alpha channel
- * or %NULL if the capability is not available.
+ * Return value: (transfer none): a colormap to use for windows with
+ * an alpha channel or %NULL if the capability is not available.
*
* Since: 2.8
**/
@@ -559,8 +559,8 @@ gdk_screen_get_rgba_colormap (GdkScreen *screen)
* alpha channel. See the docs for gdk_screen_get_rgba_colormap()
* for caveats.
*
- * Return value: a visual to use for windows with an alpha channel
- * or %NULL if the capability is not available.
+ * Return value: (transfer none): a visual to use for windows with an
+ * alpha channel or %NULL if the capability is not available.
*
* Since: 2.8
**/
@@ -579,7 +579,7 @@ gdk_screen_get_rgba_visual (GdkScreen *screen)
/**
* gdk_x11_screen_get_xscreen:
* @screen: a #GdkScreen.
- * @returns: an Xlib <type>Screen*</type>
+ * @returns: (transfer none): an Xlib <type>Screen*</type>
*
* Returns the screen of a #GdkScreen.
*
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index 1e78165..898543b 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -349,7 +349,7 @@ gdk_visual_get_best_type (void)
* This is the visual for the root window of the display.
* The return value should not be freed.
*
- * Return value: the system visual
+ * Return value: (transfer none): the system visual
*
* Since: 2.2
**/
@@ -367,7 +367,7 @@ gdk_screen_get_system_visual (GdkScreen * screen)
* Get the visual with the most available colors for the default
* GDK screen. The return value should not be freed.
*
- * Return value: best visual
+ * Return value: (transfer none): best visual
**/
GdkVisual*
gdk_visual_get_best (void)
@@ -386,7 +386,7 @@ gdk_visual_get_best (void)
* over grayscale or fixed-colormap visuals. The return value should not
* be freed. %NULL may be returned if no visual supports @depth.
*
- * Return value: best visual for the given depth
+ * Return value: (transfer none): best visual for the given depth
**/
GdkVisual*
gdk_visual_get_best_with_depth (gint depth)
@@ -415,7 +415,7 @@ gdk_visual_get_best_with_depth (gint depth)
* should not be freed. %NULL may be returned if no visual has type
* @visual_type.
*
- * Return value: best visual of the given type
+ * Return value: (transfer none): best visual of the given type
**/
GdkVisual*
gdk_visual_get_best_with_type (GdkVisualType visual_type)
@@ -442,7 +442,8 @@ gdk_visual_get_best_with_type (GdkVisualType visual_type)
*
* Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type().
*
- * Return value: best visual with both @depth and @visual_type, or %NULL if none
+ * Return value: (transfer none): best visual with both @depth and
+ * @visual_type, or %NULL if none
**/
GdkVisual*
gdk_visual_get_best_with_both (gint depth,
@@ -660,7 +661,7 @@ gdk_x11_visual_get_xvisual (GdkVisual *visual)
*
* Gets the screen to which this visual belongs
*
- * Return value: the screen to which this visual belongs.
+ * Return value: (transfer none): the screen to which this visual belongs.
*
* Since: 2.2
**/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]