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

Change the order of imports to get rid of a warning. #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lich-Corals
Copy link

@Lich-Corals Lich-Corals commented Feb 20, 2024

I just noticed that the program always shows a PyGIWarning when running in terminal. I moved the gi import above the Gtk nad Gdk imports to remove the warnings.

Those are the warnings which were shown:

PyGIWarning: Gdk was imported without specifying a version first. Use gi.require_version('Gdk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Nautilus, GObject, Gdk, Gtk
PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
  from gi.repository import Nautilus, GObject, Gdk, Gtk

@Lich-Corals Lich-Corals marked this pull request as ready for review February 20, 2024 16:21
@Lich-Corals
Copy link
Author

Lich-Corals commented Feb 20, 2024

Great work btw. I'm using your extension nearly every day. Thanks!

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

Successfully merging this pull request may close these issues.

None yet

1 participant