[gnome-games/wip/exalm/gtk4: 26/33] display-box: Stop using gdk_cursor_new_from_display()



commit 0ead49a688977e76d3213b23bc2c60cbc56567a9
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Jul 29 14:09:35 2018 +0500

    display-box: Stop using gdk_cursor_new_from_display()
    
    Replace it with gdk_cursor_new_from_name() instead.

 src/ui/fullscreen-box.vala | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/fullscreen-box.vala b/src/ui/fullscreen-box.vala
index 4f86b83d..91938ea5 100644
--- a/src/ui/fullscreen-box.vala
+++ b/src/ui/fullscreen-box.vala
@@ -117,10 +117,8 @@ private class Games.FullscreenBox : Gtk.Bin, Gtk.Buildable {
                    (!show && surface.cursor != null))
                        return;
 
-               if (!show) {
-                       var display = surface.get_display ();
-                       surface.cursor = new Gdk.Cursor.for_display (display, Gdk.CursorType.BLANK_CURSOR);
-               }
+               if (!show)
+                       surface.cursor = new Gdk.Cursor.from_name ("none", null);
                else
                        surface.cursor = null;
        }


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