Add GObject Introspection annotations

Add GObject Introspection annotations to methods where needed, in
particular adding (transfer none) to return values that don't transfer
ownership.

st_texture_cache_get_actor() and st_texture_cache_get_texture()
are annotated as (transfer none) since they return a newly
created *floating* texture.

https://bugzilla.gnome.org/show_bug.cgi?id=591245
This commit is contained in:
Owen W. Taylor
2009-09-16 19:07:23 -04:00
parent 58325fca76
commit 83402957bb
14 changed files with 60 additions and 28 deletions

View File

@@ -810,8 +810,8 @@ st_entry_set_text (StEntry *entry,
*
* Retrieve the internal #ClutterText so that extra parameters can be set
*
* Returns: the #ClutterText used by #StEntry. The entry is owned by the
* #StEntry and should not be unref'ed by the application.
* Returns: (transfer none): ethe #ClutterText used by #StEntry. The entry is
* owned by the #StEntry and should not be unref'ed by the application.
*/
ClutterActor*
st_entry_get_clutter_text (StEntry *entry)