diff options
author | infirit <[email protected]> | 2014-05-10 00:19:46 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-28 08:44:02 +0100 |
commit | f2219d2afd13fd8dcfe6a35353828f4f143e8b48 (patch) | |
tree | 5714b398073883c8999a244c6f937d52887f2a13 /libmate-desktop/mate-bg.c | |
parent | 7056b2ab291f998496cf7ceb3cf24b37f407eb7f (diff) | |
download | mate-desktop-f2219d2afd13fd8dcfe6a35353828f4f143e8b48.tar.bz2 mate-desktop-f2219d2afd13fd8dcfe6a35353828f4f143e8b48.tar.xz |
Add support for GObjectIntrospection
Turned all GnomeRR structures into boxed types, then added the needed annotations and the Makefile.am bits.
Does not yet include API changes, but should bind (awfully) all of libgnome-desktop.
Based on gnome commit: cad94246fb5be76482212407a380cd75f9e7b932
url: https://git.gnome.org/browse/gnome-desktop/commit/?id=cad94246fb5be76482212407a380cd75f9e7b932
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r-- | libmate-desktop/mate-bg.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 692992e..85d4ceb 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -1394,6 +1394,11 @@ fit_factor (int from_width, int from_height, return MIN (to_width / (double) from_width, to_height / (double) from_height); } +/** + * mate_bg_create_thumbnail: + * + * Returns: (transfer full): a #GdkPixbuf showing the background as a thumbnail + */ GdkPixbuf * mate_bg_create_thumbnail (MateBG *bg, MateDesktopThumbnailFactory *factory, @@ -1677,14 +1682,13 @@ mate_bg_set_pixmap_as_root (GdkScreen *screen, GdkPixmap *surface) * mate_bg_set_surface_as_root_with_crossfade: * @screen: the #GdkScreen to change root background on * @surface: the cairo xlib surface to set root background from - * @context: a #GMainContext or %NULL * * Set the root pixmap, and properties pointing to it. * This function differs from mate_bg_set_surface_as_root() * in that it adds a subtle crossfade animation from the * current root pixmap to the new one. * - * Return value: a #MateBGCrossfade object + * Return value: (transfer full): a #MateBGCrossfade object **/ MateBGCrossfade * #if GTK_CHECK_VERSION (3, 0, 0) @@ -3206,9 +3210,15 @@ mate_bg_changes_with_time (MateBG *bg) return FALSE; } -/* Creates a thumbnail for a certain frame, where 'frame' is somewhat +/** + * mate_bg_create_frame_thumbnail: + * + * Creates a thumbnail for a certain frame, where 'frame' is somewhat * vaguely defined as 'suitable point to show while single-stepping - * through the slideshow'. Returns NULL if frame_num is out of bounds. + * through the slideshow'. + * + * Returns: (transfer full): the newly created thumbnail or + * or NULL if frame_num is out of bounds. */ GdkPixbuf * mate_bg_create_frame_thumbnail (MateBG *bg, |