Fix return transfer annotations for a number of functions and add docs

Add return transfer annotations (and while I was at it, docs), for
public functions that return MetaDisplay, MetaWindow, and MetaScreen.

http://bugzilla.gnome.org/show_bug.cgi?id=561297

http://bugzilla.gnome.org/show_bug.cgi?id=580027
This commit is contained in:
Owen W. Taylor
2008-11-17 16:34:28 -05:00
committed by Owen W. Taylor
parent 28a4be2536
commit c4a4de0056
6 changed files with 90 additions and 1 deletions

View File

@ -1252,6 +1252,14 @@ focus_ancestor_or_mru_window (MetaWorkspace *workspace,
}
}
/**
* meta_workspace_get_screen:
* @workspace: a #MetaWorkspace
*
* Gets the #MetaScreen that the workspace is part of.
*
* Return value: (transfer none): the #MetaScreen for the workspace
*/
MetaScreen *
meta_workspace_get_screen (MetaWorkspace *workspace)
{