diff options
author | infirit <[email protected]> | 2015-09-06 11:43:35 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-06 11:43:35 +0200 |
commit | 2788b437751963cb933eadbcbc0dd5ff33fa7338 (patch) | |
tree | 237fbff5d18df7894defcca177d21a5eeac1b514 /src/eom-thumbnail.c | |
parent | 79f28eb676ac6c7e707fde3fbb47f8b02f8f5aea (diff) | |
download | eom-2788b437751963cb933eadbcbc0dd5ff33fa7338.tar.bz2 eom-2788b437751963cb933eadbcbc0dd5ff33fa7338.tar.xz |
A bunch of annotation fixes from Eog
Diffstat (limited to 'src/eom-thumbnail.c')
-rw-r--r-- | src/eom-thumbnail.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/eom-thumbnail.c b/src/eom-thumbnail.c index b7c5dc1..67b7137 100644 --- a/src/eom-thumbnail.c +++ b/src/eom-thumbnail.c @@ -377,6 +377,14 @@ eom_thumbnail_stretch_frame_image (GdkPixbuf *frame_image, return result_pixbuf; } +/** + * eom_thumbnail_add_frame: + * @thumbnail: a #GdkPixbuf + * + * Adds a frame to @thumbnail + * + * Returns: (transfer full): a new #GdkPixbuf, storing @thumbnail nicely framed. + **/ GdkPixbuf * eom_thumbnail_add_frame (GdkPixbuf *thumbnail) { @@ -406,6 +414,15 @@ eom_thumbnail_add_frame (GdkPixbuf *thumbnail) return result_pixbuf; } +/** + * eom_thumbnail_fit_to_size: + * @thumbnail: a #GdkPixbuf + * @dimension: the maximum width or height desired + * + * Ensures a pixbuf fits a given @dimension + * + * Returns: (transfer full): a new #GdkPixbuf + **/ GdkPixbuf * eom_thumbnail_fit_to_size (GdkPixbuf *thumbnail, gint dimension) { @@ -434,6 +451,17 @@ eom_thumbnail_fit_to_size (GdkPixbuf *thumbnail, gint dimension) return gdk_pixbuf_copy (thumbnail); } +/** + * eom_thumbnail_load: + * @image: a #EomImage + * @error: location to store the error ocurring or %NULL to ignore + * + * Loads the thumbnail for @image. In case of error, %NULL is returned + * and @error is set. + * + * Returns: (transfer full): a new #GdkPixbuf with the thumbnail for + * @image or %NULL in case of error. + **/ GdkPixbuf* eom_thumbnail_load (EomImage *image, GError **error) { |