1. 15 Apr, 2020 1 commit
  2. 03 May, 2018 1 commit
    • Christoph Reiter's avatar
      importer: raise ImportError in load_module() and not find_module(). See #213 · 9c671606
      Christoph Reiter authored
      find_module() should either return None or a loader, but we raised ImportError
      there in case we already knew that the namespace was missing.
      
      Move that check to load_module() instead. While there shouldn't be any functional
      difference, raising in find_module() under Python 3 resulted in a chained
      exception with an unrelated error message printed first.
      9c671606
  3. 12 Nov, 2015 1 commit
  4. 26 Oct, 2015 2 commits
  5. 22 Sep, 2015 1 commit
    • Christoph Reiter's avatar
      Don't emit require_version warning if namespace was loaded previously using g_irepository_require · ea75a89a
      Christoph Reiter authored
      Instead of tracking loaded dependencies ourself to hide warnings if they
      were loaded by a previous import just look if the namespace was loaded
      before the import. This (a) makes the implementation much simpler and
      (b) also takes into account namespaces loaded outside of Python/PyGObject
      using the libgirepository C API (as is common in applications using
      libpeas with Python plugins)
      
      This also introduces a new Python wrapper for g_irepository_is_registered()
      to allow checking the loading state of namespaces before imports.
      
      This fixes unnecessary require_version warnings in gedit, gnome-builder,
      totem, rhythmbox etc.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=754491
      ea75a89a
  6. 02 Jun, 2015 1 commit
  7. 24 Jan, 2015 2 commits
  8. 25 Mar, 2014 1 commit
  9. 06 Nov, 2012 1 commit
  10. 22 Mar, 2012 1 commit
  11. 21 Mar, 2012 1 commit
  12. 11 Aug, 2011 3 commits
  13. 24 Feb, 2011 1 commit
  14. 23 Feb, 2011 1 commit
  15. 22 Feb, 2011 1 commit
  16. 28 Jul, 2010 1 commit
  17. 27 Jul, 2010 1 commit
    • Tomeu Vizoso's avatar
      Allow specifying a version when loading a typelib · 2082ee35
      Tomeu Vizoso authored
      * gi/importer.py: Defer loading the typelib until first usage.
      * gi/module.py: Load the typelib in IntrospectionModule().
      * gi/overrides/*.py: Adapt to API change.
      * gi/pygi-repository.c: Add wrappers for g_irepository_enumerate and
        g_irepository_get_version.
      2082ee35
  18. 12 Jul, 2010 1 commit
  19. 11 May, 2010 1 commit
    • John (J5) Palmieri's avatar
      wrap GObject module so we can go through GI when requesting attrs · c20b9f63
      John (J5) Palmieri authored
      * This gives us the best of both worlds.
        - We remain backwards compatable with pygobject by checking for existing
          attrs in the gobject module
        - If an attr does not exist we use the GI mechanism to look it up so that
          things like flags look the same whether exported from GObject, Gtk
          or any GI managed library
      
      * add DynamicGObjectModule tests and make tests use the new module
        - change import gobject to from gi.repository import GObject
      c20b9f63
  20. 22 Jan, 2010 1 commit
  21. 25 Nov, 2009 1 commit
  22. 23 Nov, 2009 1 commit
    • Johan Dahlin's avatar
      Create overridden modules in two passes · a644edf0
      Johan Dahlin authored
      This patch splits overridden module creation into two passes. The first pass
      creates the auto-generated module normally before the overridden module is
      attempted to be imported. The second pass imports the overridden module and
      replaces the auto-generated module with the overridden. This is necessary
      for the overridden modules to be able to access the auto-generated ones.
      a644edf0
  23. 08 Nov, 2009 1 commit