Skip to content
  • Gustavo Serra Scalet's avatar
    Fix warnings and "Resume from idle" interface · 19675066
    Gustavo Serra Scalet authored
    Everytime I run gtimelog I saw on the following on my terminal:
    /usr/lib/python2.7/dist-packages/gtimelog/gtimelog.py:28: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
      from gi.repository import Notify
    /usr/lib/python2.7/dist-packages/gtimelog/gtimelog.py:33: PyGIWarning: Soup was imported without specifying a version first. Use gi.require_version('Soup', '2.4') before import to ensure that the right version gets loaded.
      from gi.repository import Soup
    /usr/lib/python2.7/dist-packages/gtimelog/gtimelog.py:773: PyGIWarning: GnomeKeyring was imported without specifying a version first. Use gi.require_version('GnomeKeyring', '1.0') before import to ensure that the right version gets loaded.
      from gi.repository import GnomeKeyring as gnomekeyring
    
    Additionally, the "resume from idle" had a different interface than expected by
    add_action:
    TypeError: insert_old_log_entries() takes at most 4 arguments (5 given)
    
    I'm running it on a Ubuntu 18.04. If you need more details about package
    versions, please ask.
    19675066