summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-05-12 16:46:48 +0200
committerraveit65 <[email protected]>2017-05-25 20:13:59 +0200
commit537d7cb05feb2b91a7af7ef4a3faaeb1ec0e6074 (patch)
tree410c854ff87a7552435d5fa39d49e2a4a413f6a8
parent7a8333fdbf00ea4d2d9fffb9e39da5addbe0d874 (diff)
downloadpluma-537d7cb05feb2b91a7af7ef4a3faaeb1ec0e6074.tar.bz2
pluma-537d7cb05feb2b91a7af7ef4a3faaeb1ec0e6074.tar.xz
pluma-notebook: don't use deprecated gdk_cursor_new
-rw-r--r--pluma/pluma-notebook.c6
1 files changed, 5 insertions, 1 deletions
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));