diff options
author | infirit <[email protected]> | 2014-11-08 01:05:26 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-28 08:51:50 +0100 |
commit | 75ed2d2694c66baeccdc7e2222820f1045550ef9 (patch) | |
tree | 34fc2608c8dead58581255ebfc036fcc4ec1ca64 /libmate-desktop | |
parent | fd55cee48a6fa2fd5ee312923abe2c2893f519f8 (diff) | |
download | mate-desktop-75ed2d2694c66baeccdc7e2222820f1045550ef9.tar.bz2 mate-desktop-75ed2d2694c66baeccdc7e2222820f1045550ef9.tar.xz |
Always use gdk_window_get_window_type
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-bg-crossfade.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libmate-desktop/mate-bg-crossfade.c b/libmate-desktop/mate-bg-crossfade.c index 3242004..0ec7d33 100644 --- a/libmate-desktop/mate-bg-crossfade.c +++ b/libmate-desktop/mate-bg-crossfade.c @@ -45,10 +45,6 @@ #define cairo_surface_destroy g_object_unref #endif -#if GTK_CHECK_VERSION(3, 0, 0) -#define GDK_WINDOW_TYPE(d) (gdk_window_get_window_type (GDK_WINDOW (d))) -#endif - struct _MateBGCrossfadePrivate { GdkWindow *window; @@ -401,7 +397,7 @@ animations_are_disabled (MateBGCrossfade *fade) static void draw_background (MateBGCrossfade *fade) { - if (GDK_WINDOW_TYPE (fade->priv->window) == GDK_WINDOW_ROOT) { + if (gdk_window_get_window_type (fade->priv->window) == GDK_WINDOW_ROOT) { XClearArea (GDK_WINDOW_XDISPLAY (fade->priv->window), GDK_WINDOW_XID (fade->priv->window), 0, 0, @@ -525,7 +521,7 @@ mate_bg_crossfade_start (MateBGCrossfade *fade, g_return_if_fail (fade->priv->fading_surface != NULL); g_return_if_fail (fade->priv->end_surface != NULL); g_return_if_fail (!mate_bg_crossfade_is_started (fade)); - g_return_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN); + g_return_if_fail (gdk_window_get_window_type (window) != GDK_WINDOW_FOREIGN); source = g_timeout_source_new (1000 / 60.0); g_source_set_callback (source, |