[gnome-games/wip/exalm/gtk4: 37/42] ui: Stop using gdk_cursor_new_from_display()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 37/42] ui: Stop using gdk_cursor_new_from_display()
- Date: Wed, 12 Sep 2018 11:55:48 +0000 (UTC)
commit c032d6d31fac95e6f814679014d797a5895e8afe
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jul 29 14:09:35 2018 +0500
ui: Stop using gdk_cursor_new_from_display()
Replace it with gdk_cursor_new_from_name() instead.
src/ui/display-box.vala | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/display-box.vala b/src/ui/display-box.vala
index fd92faee..4aba6edf 100644
--- a/src/ui/display-box.vala
+++ b/src/ui/display-box.vala
@@ -123,10 +123,8 @@ private class Games.DisplayBox : Gtk.Bin {
(!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]