summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-bg.h
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-07 00:15:29 +0100
committerStefano Karapetsas <[email protected]>2014-03-07 00:15:29 +0100
commit9b92002e153b16700fd15ffb32fe15d1b2e09704 (patch)
tree8fc17eb7d32a45749a99a52c1a34eb07760595b7 /libmate-desktop/mate-bg.h
parent34e86df9a8608aa88b5712e23ba02e0f4da4aaef (diff)
downloadmate-desktop-9b92002e153b16700fd15ffb32fe15d1b2e09704.tar.bz2
mate-desktop-9b92002e153b16700fd15ffb32fe15d1b2e09704.tar.xz
Revert "gtk3: mate_bg_create*thumbnail should return GdkPixbuf*"
This reverts commit 0eef05307bd0c2acb5c780b8f85a239ca810625d.
Diffstat (limited to 'libmate-desktop/mate-bg.h')
-rw-r--r--libmate-desktop/mate-bg.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libmate-desktop/mate-bg.h b/libmate-desktop/mate-bg.h
index c15afca..d8f8944 100644
--- a/libmate-desktop/mate-bg.h
+++ b/libmate-desktop/mate-bg.h
@@ -169,22 +169,39 @@ gboolean mate_bg_get_image_size (MateBG *bg,
int best_height,
int *width,
int *height);
+#if GTK_CHECK_VERSION (3, 0, 0)
+cairo_surface_t *mate_bg_create_thumbnail (MateBG *bg,
+ MateDesktopThumbnailFactory *factory,
+ GdkScreen *screen,
+ int dest_width,
+ int dest_height);
+#else
GdkPixbuf * mate_bg_create_thumbnail (MateBG *bg,
MateDesktopThumbnailFactory *factory,
GdkScreen *screen,
int dest_width,
int dest_height);
+#endif
gboolean mate_bg_is_dark (MateBG *bg,
int dest_width,
int dest_height);
gboolean mate_bg_has_multiple_sizes (MateBG *bg);
gboolean mate_bg_changes_with_time (MateBG *bg);
+#if GTK_CHECK_VERSION (3, 0, 0)
+cairo_surface_t *mate_bg_create_frame_thumbnail (MateBG *bg,
+ MateDesktopThumbnailFactory *factory,
+ GdkScreen *screen,
+ int dest_width,
+ int dest_height,
+ int frame_num);
+#else
GdkPixbuf * mate_bg_create_frame_thumbnail (MateBG *bg,
MateDesktopThumbnailFactory *factory,
GdkScreen *screen,
int dest_width,
int dest_height,
int frame_num);
+#endif
/* Set a surface as root - not a MateBG method. At some point
* if we decide to stabilize the API then we may want to make