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

@@ -113,7 +113,8 @@ void gtk_assert_dialog_process_backtrace (GtkAssertDialog *dlg)
{
/* set busy cursor */
GdkWindow *parent = gtk_widget_get_window(GTK_WIDGET(dlg));
GdkCursor *cur = gdk_cursor_new (GDK_WATCH);
GdkDisplay* display = gdk_window_get_display(parent);
GdkCursor* cur = gdk_cursor_new_for_display(display, GDK_WATCH);
gdk_window_set_cursor (parent, cur);
gdk_flush ();