From: Tobias Geerinckx-Rice Date: Tue, 02 Mar 2021 18:04:33 +0100 Subject: [PATCH] gnu: python-matplotlib: Run under Wayland with GTK3. Adopted from upstream's fix[0] for . [0]: https://github.com/liuyun88/matplotlib/commit/3d5000463bd23cb046681220f5511f07743f7d82 --- diff -Naur a/lib/matplotlib/backends/backend_gtk3.py b/lib/matplotlib/backends/backend_gtk3.py --- a/lib/matplotlib/backends/backend_gtk3.py 2019-11-21 23:47:05.000000000 +0100 +++ b/lib/matplotlib/backends/backend_gtk3.py 2021-03-02 18:00:57.479929766 +0100 @@ -42,11 +42,12 @@ try: + _display = Gdk.Display.get_default() cursord = { - cursors.MOVE : Gdk.Cursor.new(Gdk.CursorType.FLEUR), - cursors.HAND : Gdk.Cursor.new(Gdk.CursorType.HAND2), - cursors.POINTER : Gdk.Cursor.new(Gdk.CursorType.LEFT_PTR), - cursors.SELECT_REGION : Gdk.Cursor.new(Gdk.CursorType.TCROSS), - cursors.WAIT : Gdk.Cursor.new(Gdk.CursorType.WATCH), + cursors.MOVE : Gdk.Cursor.new_from_name(_display, "move"), + cursors.HAND : Gdk.Cursor.new_from_name(_display, "pointer"), + cursors.POINTER : Gdk.Cursor.new_from_name(_display, "default"), + cursors.SELECT_REGION : Gdk.Cursor.new_from_name(_display, "crosshair"), + cursors.WAIT : Gdk.Cursor.new_from_name(_display, "wait"), } except TypeError as exc: # Happens when running headless. Convert to ImportError to cooperate with name='id' value='041a12c46b77094c3a89276cf55d9cf1f68fb9a3'/>
AgeCommit message (Expand)Author
2020-08-29build: Remove references to the 'nix-hash' program....* configure.ac: Remove check for 'nix-hash'. * tests/base32.scm (%nix-hash, %have-nix-hash?): Remove. ("sha256 & bytevector->nix-base32-string"): Remove test. * build-aux/pre-inst-env.in: Do not set 'NIX_HASH' environment variable. Ludovic Courtès