From d06cb3dabbd7fbb87cb2763e69bce9ac782450eb Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 7 Jan 2013 07:49:23 +0100 Subject: libdocument: add missing transfer and element-type annotations https://bugzilla.gnome.org/show_bug.cgi?id=691354 origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=7917b62 --- libdocument/ev-document-misc.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'libdocument/ev-document-misc.c') diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c index 6794d050..529c5b97 100644 --- a/libdocument/ev-document-misc.c +++ b/libdocument/ev-document-misc.c @@ -94,6 +94,14 @@ create_thumbnail_frame (int width, return retval; } +/** + * ev_document_misc_get_thumbnail_frame: + * @width: the desired width + * @height: the desired height + * @source_pixbuf: a #GdkPixbuf + * + * Returns: (transfer full): a #GdkPixbuf + */ GdkPixbuf * ev_document_misc_get_thumbnail_frame (int width, int height, @@ -102,6 +110,14 @@ ev_document_misc_get_thumbnail_frame (int width, return create_thumbnail_frame (width, height, source_pixbuf, TRUE); } +/** + * ev_document_misc_get_loading_thumbnail: + * @width: the desired width + * @height: the desired height + * @inverted_colors: whether to invert colors + * + * Returns: (transfer full): a #GdkPixbuf + */ GdkPixbuf * ev_document_misc_get_loading_thumbnail (int width, int height, @@ -199,6 +215,12 @@ ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf) return surface; } +/** + * ev_document_misc_pixbuf_from_surface: + * @surface: a #cairo_surface_t + * + * Returns: (transfer full): a #GdkPixbuf + */ GdkPixbuf * ev_document_misc_pixbuf_from_surface (cairo_surface_t *surface) { -- cgit v1.2.1