[gtk+] gtk-demo: Drop uses of gdk_cursor_new()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk-demo: Drop uses of gdk_cursor_new()
- Date: Tue, 28 Oct 2014 04:57:50 +0000 (UTC)
commit e36b57e7f9d636a8181e8faf1b281a0db0c6c199
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 28 00:56:46 2014 -0400
gtk-demo: Drop uses of gdk_cursor_new()
Use gdk_cursor_new_for_display() instead.
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 534a62d..28a7522 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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]