Fix annotation for xdg_mime_list_parents

There is a fatal crash in Sugar when retrieving mimetypes for some Journal
entries when contructing the icon palette (for both the Journal list view
and detail view). We isolated the problem to xdgmime.c, the call to
xdg_get_mime_parents. Dnarvaez observed that the annotation for the
return argument was missing and that the annotation for the return for
mime_list_parents was wrong. This patch fixes these annotations.

Fixes #4530
This commit is contained in:
Walter Bender 2013-08-15 07:55:20 -04:00 committed by Daniel Narvaez
parent 51bc902afa
commit 7d931c845e

View File

@ -762,7 +762,7 @@ xdg_mime_mime_type_subclass (const char *mime,
/** /**
* sugar_mime_list_mime_parents: * sugar_mime_list_mime_parents:
* *
* Return value: (array zero-terminated=1) (transfer full): * Return value: (transfer container):
**/ **/
char ** char **
xdg_mime_list_mime_parents (const char *mime) xdg_mime_list_mime_parents (const char *mime)
@ -788,6 +788,11 @@ xdg_mime_list_mime_parents (const char *mime)
return result; return result;
} }
/**
* sugar_mime_get_mime_parents:
*
* Return value: (transfer none):
**/
const char ** const char **
xdg_mime_get_mime_parents (const char *mime) xdg_mime_get_mime_parents (const char *mime)
{ {