avoid gdk_cursor_new(), deprecated in GTK+ 3.16

This commit is contained in:
Paul Cornett
2015-11-02 08:28:18 -08:00
parent ed817dd366
commit 9f8deb74a7
3 changed files with 11 additions and 5 deletions

View File

@@ -265,7 +265,8 @@ void wxCursor::InitFromStock( wxStockCursor cursorId )
break;
}
M_CURSORDATA->m_cursor = gdk_cursor_new( gdk_cur );
GdkDisplay* display = gdk_window_get_display(wxGetTopLevelGDK());
M_CURSORDATA->m_cursor = gdk_cursor_new_for_display(display, gdk_cur);
}
#if wxUSE_IMAGE