File tree 1 file changed +6
-5
lines changed 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 36
36
Gtk .get_major_version (), Gtk .get_micro_version (), Gtk .get_minor_version ())
37
37
38
38
try :
39
+ _display = Gdk .Display .get_default ()
39
40
cursord = {
40
- cursors .MOVE : Gdk .Cursor .new ( Gdk . CursorType . FLEUR ),
41
- cursors .HAND : Gdk .Cursor .new ( Gdk . CursorType . HAND2 ),
42
- cursors .POINTER : Gdk .Cursor .new ( Gdk . CursorType . LEFT_PTR ),
43
- cursors .SELECT_REGION : Gdk .Cursor .new ( Gdk . CursorType . TCROSS ),
44
- cursors .WAIT : Gdk .Cursor .new ( Gdk . CursorType . WATCH ),
41
+ cursors .MOVE : Gdk .Cursor .new_from_name ( _display , "move" ),
42
+ cursors .HAND : Gdk .Cursor .new_from_name ( _display , "pointer" ),
43
+ cursors .POINTER : Gdk .Cursor .new_from_name ( _display , "default" ),
44
+ cursors .SELECT_REGION : Gdk .Cursor .new_from_name ( _display , "crosshair" ),
45
+ cursors .WAIT : Gdk .Cursor .new_from_name ( _display , "wait" ),
45
46
}
46
47
except TypeError as exc :
47
48
# Happens when running headless. Convert to ImportError to cooperate with
You can’t perform that action at this time.
0 commit comments