summaryrefslogtreecommitdiff
path: root/libmate-desktop/libmateui/mate-bg-crossfade.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2012-02-22 01:58:42 -0300
committerPerberos <[email protected]>2012-02-22 01:58:42 -0300
commitbc53751054ab3b2e693620311e6cd80bccb8b831 (patch)
tree1a28322443cdfee0dd6ef521f000815f967e7f71 /libmate-desktop/libmateui/mate-bg-crossfade.h
parent23d4ca43c7d3659ad619c0534424ef16b94be6ca (diff)
downloadmate-desktop-bc53751054ab3b2e693620311e6cd80bccb8b831.tar.bz2
mate-desktop-bc53751054ab3b2e693620311e6cd80bccb8b831.tar.xz
some ugly gtk3 porting
Diffstat (limited to 'libmate-desktop/libmateui/mate-bg-crossfade.h')
-rw-r--r--libmate-desktop/libmateui/mate-bg-crossfade.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/libmate-desktop/libmateui/mate-bg-crossfade.h b/libmate-desktop/libmateui/mate-bg-crossfade.h
index 6da8795..2f8b3cb 100644
--- a/libmate-desktop/libmateui/mate-bg-crossfade.h
+++ b/libmate-desktop/libmateui/mate-bg-crossfade.h
@@ -30,6 +30,7 @@
#endif
#include <gdk/gdk.h>
+#include <gtk/gtk.h>
#ifdef __cplusplus
extern "C" {
@@ -62,10 +63,16 @@ struct _MateBGCrossfadeClass
GType mate_bg_crossfade_get_type (void);
MateBGCrossfade *mate_bg_crossfade_new (int width, int height);
-gboolean mate_bg_crossfade_set_start_pixmap (MateBGCrossfade *fade,
- GdkPixmap *pixmap);
-gboolean mate_bg_crossfade_set_end_pixmap (MateBGCrossfade *fade,
- GdkPixmap *pixmap);
+
+
+#if GTK_CHECK_VERSION(3, 0, 0)
+ gboolean mate_bg_crossfade_set_start_pixmap(MateBGCrossfade* fade, cairo_surface_t* pixmap);
+ gboolean mate_bg_crossfade_set_end_pixmap(MateBGCrossfade* fade, cairo_surface_t* pixmap);
+#else
+ gboolean mate_bg_crossfade_set_start_pixmap(MateBGCrossfade* fade, GdkPixmap* pixmap);
+ gboolean mate_bg_crossfade_set_end_pixmap(MateBGCrossfade* fade, GdkPixmap* pixmap);
+#endif
+
void mate_bg_crossfade_start (MateBGCrossfade *fade,
GdkWindow *window);
gboolean mate_bg_crossfade_is_started (MateBGCrossfade *fade);