File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 Gtk .get_major_version (), Gtk .get_micro_version (), Gtk .get_minor_version ())
3737
3838try :
39+ _display = Gdk .Display .get_default ()
3940 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" ),
4546 }
4647except TypeError as exc :
4748 # Happens when running headless. Convert to ImportError to cooperate with
You can’t perform that action at this time.
0 commit comments