image cropping does not work depending on... gtk theme.
It seems that all themes do not provide "tcross". This leads to this exception that make scanned image crop to not be accessible.
janv. 07 15:25:54 glamdring paperwork[7113]: Unable to load tcross from the cursor theme
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: ERROR paperwork.frontend.diag === UNCATCHED EXCEPTION ===
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: Traceback (most recent call last):
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: File "/app/lib/python3.5/site-packages/paperwork-1.2.4-py3.5.egg/paperwork/frontend/mainwindow/pages.py", line 1655, in _on_mouse_button_release
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: callback()
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: File "/app/lib/python3.5/site-packages/paperwork-1.2.4-py3.5.egg/paperwork/frontend/mainwindow/pages.py", line 1703, in _on_edit_crop
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: action = PageCuttingAction(child)
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: File "/app/lib/python3.5/site-packages/paperwork-1.2.4-py3.5.egg/paperwork/frontend/mainwindow/pages.py", line 483, in __init__
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: child_drawer, child_drawer.max_size
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: File "/app/lib/python3.5/site-packages/paperwork-1.2.4-py3.5.egg/paperwork/frontend/util/imgcutting.py", line 261, in __init__
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: 'on_grip': Gdk.Cursor.new(Gdk.CursorType.TCROSS)
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: TypeError: constructor returned NULL
janv. 07 15:25:54 glamdring work.openpaper.Paperwork.desktop[1613]: ERROR paperwork.frontend.diag ===========================
janv. 07 15:25:57 glamdring work.openpaper.Paperwork.desktop[1613]: INFO paperwork.frontend.util.canvas Animators: 1
I had selected "DMZ Black" cursor theme, reverting it to Adwaita do fixes the issue.
with DMZ Black cursor theme
$ flatpak run --command=python3 work.openpaper.Paperwork -c "from gi.repository import Gdk; print(Gdk.Cursor.new(Gdk.CursorType.TCROSS))"
-c:1: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
Gdk-Message: Unable to load tcross from the cursor theme
Traceback (most recent call last):
File "<string>", line 1, in <module>
TypeError: constructor returned NULL
with Adwaita cursor theme
$ flatpak run --command=python3 work.openpaper.Paperwork -c "from gi.repository import Gdk; print(Gdk.Cursor.new(Gdk.CursorType.TCROSS))"
-c:1: PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '3.0') before import to ensure that the right version gets loaded.
<__gi__.GdkWaylandCursor object at 0x7f8402c71c60 (GdkWaylandCursor at 0x7f83f0003120)>
(i use flatpak master version).
Edited by Alexandre Vaissière