From 537d7cb05feb2b91a7af7ef4a3faaeb1ec0e6074 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 12 May 2017 16:46:48 +0200 Subject: pluma-notebook: don't use deprecated gdk_cursor_new --- pluma/pluma-notebook.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c index 26e07d9c..d9bb4b52 100644 --- a/pluma/pluma-notebook.c +++ b/pluma/pluma-notebook.c @@ -397,7 +397,11 @@ drag_start (PlumaNotebook *notebook, /* get a new cursor, if necessary */ /* FIXME multi-head */ if (cursor == NULL) - cursor = gdk_cursor_new (GDK_FLEUR); + { + GdkDisplay *display; + display = gtk_widget_get_display (GTK_WIDGET (notebook)); + cursor = gdk_cursor_new_for_display (display, GDK_FLEUR); + } /* grab the pointer */ gtk_grab_add (GTK_WIDGET (notebook)); -- cgit v1.2.1