From 54efcf0e903e50ce927d3b22aa1edfa7dfa1744a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 3 Dec 2014 12:11:55 +0000 Subject: [PATCH] gdk: Use non-deprecated GdkCursor API The non-display safe variant has been deprecated in GTK+ 3.15. --- clutter/gdk/clutter-stage-gdk.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c index bac1be115..c0188e0c0 100644 --- a/clutter/gdk/clutter-stage-gdk.c +++ b/clutter/gdk/clutter-stage-gdk.c @@ -228,7 +228,7 @@ clutter_stage_gdk_realize (ClutterStageWindow *stage_window) if (!cursor_visible) { if (stage_gdk->blank_cursor == NULL) - stage_gdk->blank_cursor = gdk_cursor_new (GDK_BLANK_CURSOR); + stage_gdk->blank_cursor = gdk_cursor_new_for_display (backend_gdk->display, GDK_BLANK_CURSOR); attributes.cursor = stage_gdk->blank_cursor; } @@ -347,7 +347,11 @@ clutter_stage_gdk_set_cursor_visible (ClutterStageWindow *stage_window, else { if (stage_gdk->blank_cursor == NULL) - stage_gdk->blank_cursor = gdk_cursor_new (GDK_BLANK_CURSOR); + { + GdkDisplay *display = clutter_gdk_get_default_display (); + + stage_gdk->blank_cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR); + } gdk_window_set_cursor (stage_gdk->window, stage_gdk->blank_cursor); }