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



commit a1aeca042f28ef89739e93270bc4627c6466075b
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]