Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on deprecated Gtk.Widget.get_pointer #113

Open
jepler opened this issue Sep 23, 2023 · 1 comment
Open

Remove dependency on deprecated Gtk.Widget.get_pointer #113

jepler opened this issue Sep 23, 2023 · 1 comment

Comments

@jepler
Copy link
Owner

jepler commented Sep 23, 2023

The following deprecation warnings are shown on debian stable:

cropgtk.py:33: DeprecationWarning: 'imghdr' is deprecated and slated for removal in Python 3.13
cropgtk.py:259: DeprecationWarning: Gtk.Widget.get_pointer is deprecated

get_pointer:

Deprecated since: 3.4

Use gdk_window_get_device_position() instead.

imghdr: replace with use of PIL's image sniffing? see https://peps.python.org/pep-0594/#imghdr

@jepler jepler changed the title Deprecation warnings Remove dependency on deprecated Gtk.Widget.get_pointer Jan 26, 2024
@jepler
Copy link
Owner Author

jepler commented Jan 26, 2024

removing the dependency on imghdr is #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant