diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-10-28 00:56:46 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-10-28 00:56:46 -0400 |
commit | e36b57e7f9d636a8181e8faf1b281a0db0c6c199 (patch) | |
tree | cd4b7861401c305f96c0232a53c9939b847f3d4a /demos | |
parent | abe7187cfb2c19a177a28b9adc236060bf17665e (diff) | |
download | gtk+-e36b57e7f9d636a8181e8faf1b281a0db0c6c199.tar.gz |
gtk-demo: Drop uses of gdk_cursor_new()
Use gdk_cursor_new_for_display() instead.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/hypertext.c | 4 |
1 files 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), |