From e36b57e7f9d636a8181e8faf1b281a0db0c6c199 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 28 Oct 2014 00:56:46 -0400 Subject: [PATCH] gtk-demo: Drop uses of gdk_cursor_new() Use gdk_cursor_new_for_display() instead. --- demos/gtk-demo/hypertext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/gtk-demo/hypertext.c b/demos/gtk-demo/hypertext.c index 534a62dda8..28a7522319 100644 --- a/demos/gtk-demo/hypertext.c +++ b/demos/gtk-demo/hypertext.c @@ -239,8 +239,8 @@ do_hypertext (GtkWidget *do_widget) GtkWidget *sw; GtkTextBuffer *buffer; - hand_cursor = gdk_cursor_new (GDK_HAND2); - regular_cursor = gdk_cursor_new (GDK_XTERM); + hand_cursor = gdk_cursor_new_for_display (gtk_widget_get_display (do_widget), GDK_HAND2); + regular_cursor = gdk_cursor_new_for_display (gtk_widget_get_display (do_widget), GDK_XTERM); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_screen (GTK_WINDOW (window),