Fix: "AppIndicator3 was imported without specifying a version first"

PyGIWarning: AppIndicator3 was imported without specifying a version
first. Use gi.require_version('AppIndicator3', '0.1') before import to
ensure that the right version gets loaded.
This commit is contained in:
Chris Mayo 2016-05-03 20:20:46 +01:00
parent ddbc27486c
commit e046455a05
1 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,8 @@ def _scroll(tray_icon, event, direction=None):
try:
# raise ImportError
import gi
gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3
if _log.isEnabledFor(_DEBUG):