1
0
Fork 0

annotations: Use caller-allocates for color getters

This should avoid a separate initialization of a ClutterColor in
language bindings.
This commit is contained in:
Emmanuele Bassi 2011-02-14 18:36:51 +00:00
parent 9e17d06bc7
commit bdb309cbd6
5 changed files with 7 additions and 7 deletions

View file

@ -978,7 +978,7 @@ clutter_box_set_color (ClutterBox *box,
/**
* clutter_box_get_color:
* @box: a #ClutterBox
* @color: (out): return location for a #ClutterColor
* @color: (out caller-allocates): return location for a #ClutterColor
*
* Retrieves the background color of @box
*

View file

@ -365,7 +365,7 @@ clutter_colorize_effect_set_tint (ClutterColorizeEffect *effect,
/**
* clutter_colorize_effect_get_tint:
* @effect: a #ClutterColorizeEffect
* @tint: (out): return location for the color used
* @tint: (out caller-allocates): return location for the color used
*
* Retrieves the tint used by @effect
*

View file

@ -356,7 +356,7 @@ clutter_rectangle_new_with_color (const ClutterColor *color)
/**
* clutter_rectangle_get_color:
* @rectangle: a #ClutterRectangle
* @color: (out): return location for a #ClutterColor
* @color: (out caller-allocates): return location for a #ClutterColor
*
* Retrieves the color of @rectangle.
*/
@ -476,7 +476,7 @@ clutter_rectangle_set_border_width (ClutterRectangle *rectangle,
/**
* clutter_rectangle_get_border_color:
* @rectangle: a #ClutterRectangle
* @color: (out): return location for a #ClutterColor
* @color: (out caller-allocates): return location for a #ClutterColor
*
* Gets the color of the border used by @rectangle and places
* it into @color.

View file

@ -1685,7 +1685,7 @@ clutter_stage_set_color (ClutterStage *stage,
/**
* clutter_stage_get_color:
* @stage: A #ClutterStage
* @color: (out): return location for a #ClutterColor
* @color: (out caller-allocates): return location for a #ClutterColor
*
* Retrieves the stage color.
*/

View file

@ -3782,7 +3782,7 @@ clutter_text_set_selection_color (ClutterText *self,
/**
* clutter_text_get_selection_color:
* @self: a #ClutterText
* @color: return location for a #ClutterColor
* @color: (out caller-allocates): return location for a #ClutterColor
*
* Retrieves the color of the selection of a #ClutterText actor.
*
@ -4126,7 +4126,7 @@ clutter_text_set_color (ClutterText *self,
/**
* clutter_text_get_color:
* @self: a #ClutterText
* @color: (out): return location for a #ClutterColor
* @color: (out caller-allocates): return location for a #ClutterColor
*
* Retrieves the text color as set by clutter_text_set_color().
*