rohanpm / qingfanyi

Interactive Chinese to English dictionary lookup tool for Linux desktops
GNU General Public License v3.0
0 stars 1 forks source link

Fix pygi version warnings #19

Open rohanpm opened 8 years ago

rohanpm commented 8 years ago

Some versions of pygi produce warnings like this on startup:

PyGIWarning: Atspi was imported without specifying a version first. Use gi.require_version('Atspi', '2.0') before import to ensure that the right version gets loaded.

rohanpm commented 8 years ago

/usr/lib/python2.7/site-packages/qingfanyi/process/keybind.py:19: PyGIWarning: Keybinder was imported without specifying a version first. Use gi.require_version('Keybinder', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Keybinder /usr/lib/python2.7/site-packages/qingfanyi/process/keybind.py:20: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk /usr/lib/python2.7/site-packages/qingfanyi/process/translate.py:21: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gtk /usr/lib/python2.7/site-packages/pyatspi/init.py:17: PyGIWarning: Atspi was imported without specifying a version first. Use gi.require_version('Atspi', '2.0') before import to ensure that the right version gets loaded. from gi.repository import Atspi /usr/lib/python2.7/site-packages/qingfanyi/wm.py:23: PyGIWarning: GdkX11 was imported without specifying a version first. Use gi.require_version('GdkX11', '3.0') before import to ensure that the right version gets loaded. from gi.repository import Gdk, GLib, GdkX11