From e6a2a3f4b70ee15d90a2db73ed37f6064dd661df Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 21 Jul 2015 18:00:31 -0300 Subject: project: replace deprecated gdk_cursor_new In 3.16 release gdk_cursor_new was deprecated in favor of gdk_cursor_new_for_display. Nautilus, however, did not updated to use the proposed function, and is still using the deprecated method. Fix that by using the proposed gdk_cursor_new_for_display method. --- libnautilus-private/nautilus-canvas-container.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libnautilus-private') diff --git a/libnautilus-private/nautilus-canvas-container.c b/libnautilus-private/nautilus-canvas-container.c index 67a8cb8da..a2620dc81 100644 --- a/libnautilus-private/nautilus-canvas-container.c +++ b/libnautilus-private/nautilus-canvas-container.c @@ -4156,11 +4156,13 @@ start_stretching (NautilusCanvasContainer *container) NautilusCanvasContainerDetails *details; NautilusCanvasIcon *icon; GtkWidget *toplevel; + GdkDisplay *display; GtkCornerType corner; GdkCursor *cursor; details = container->details; icon = details->stretch_icon; + display = gtk_widget_get_display (GTK_WIDGET (container)); /* Check if we hit the stretch handles. */ if (!nautilus_canvas_item_hit_test_stretch_handles (icon->item, @@ -4171,16 +4173,16 @@ start_stretching (NautilusCanvasContainer *container) switch (corner) { case GTK_CORNER_TOP_LEFT: - cursor = gdk_cursor_new (GDK_TOP_LEFT_CORNER); + cursor = gdk_cursor_new_for_display (display, GDK_TOP_LEFT_CORNER); break; case GTK_CORNER_BOTTOM_LEFT: - cursor = gdk_cursor_new (GDK_BOTTOM_LEFT_CORNER); + cursor = gdk_cursor_new_for_display (display,GDK_BOTTOM_LEFT_CORNER); break; case GTK_CORNER_TOP_RIGHT: - cursor = gdk_cursor_new (GDK_TOP_RIGHT_CORNER); + cursor = gdk_cursor_new_for_display (display,GDK_TOP_RIGHT_CORNER); break; case GTK_CORNER_BOTTOM_RIGHT: - cursor = gdk_cursor_new (GDK_BOTTOM_RIGHT_CORNER); + cursor = gdk_cursor_new_for_display (display,GDK_BOTTOM_RIGHT_CORNER); break; default: cursor = NULL; -- cgit v1.2.1