[gtk+] label: Stop using gdk_cursor_new_for_display



commit fa5e3ee54e8c09d88cc94e03df5e1110b9ab798d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Nov 1 21:19:31 2017 -0400

    label: Stop using gdk_cursor_new_for_display
    
    We prefer to use the name-based api for cursors nowadays.

 gtk/gtklabel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index a950d97..a29db71 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4960,7 +4960,7 @@ gtk_label_set_selectable_hint (GtkLabel *label)
     {
       GdkCursor *cursor;
 
-      cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), GDK_XTERM);
+      cursor = gdk_cursor_new_from_name (gtk_widget_get_display (widget), "text");
       gtk_widget_set_cursor (widget, cursor);
       g_object_unref (cursor);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]