[gnome-games/wip/exalm/ui4: 21/26] fullscreen-box: Stop using Gdk.CursorType



commit c87eae8e532c36f5ffba655f5e056e941f9bf8fd
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jun 9 15:27:12 2019 +0500

    fullscreen-box: Stop using Gdk.CursorType
    
    The recommended way nowadays is to use `new Gdk.Cursor.from_name()` and
    pass a css name as string rather than using the enum.

 src/ui/fullscreen-box.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ui/fullscreen-box.vala b/src/ui/fullscreen-box.vala
index e197c5a1..d2d04010 100644
--- a/src/ui/fullscreen-box.vala
+++ b/src/ui/fullscreen-box.vala
@@ -121,7 +121,7 @@ private class Games.FullscreenBox : Gtk.EventBox, Gtk.Buildable {
 
                if (!show) {
                        var display = window.get_display ();
-                       window.cursor = new Gdk.Cursor.for_display (display, Gdk.CursorType.BLANK_CURSOR);
+                       window.cursor = new Gdk.Cursor.from_name (display, "none");
                }
                else
                        window.cursor = null;


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