diff options
author | Cosimo Cecchi <[email protected]> | 2013-01-07 07:49:23 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-24 11:56:28 +0200 |
commit | d06cb3dabbd7fbb87cb2763e69bce9ac782450eb (patch) | |
tree | 850122cf5bc8b16ee0bab1746a1d356e7f6a8199 /libdocument/ev-document-misc.c | |
parent | 0568785bbd484714a63caa4b9ca9639a2867d6e9 (diff) | |
download | atril-d06cb3dabbd7fbb87cb2763e69bce9ac782450eb.tar.bz2 atril-d06cb3dabbd7fbb87cb2763e69bce9ac782450eb.tar.xz |
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
Diffstat (limited to 'libdocument/ev-document-misc.c')
-rw-r--r-- | libdocument/ev-document-misc.c | 22 |
1 files changed, 22 insertions, 0 deletions
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) { |