1. 17 Apr, 2020 5 commits
  2. 16 Apr, 2020 8 commits
    • Jean Felder's avatar
      gtktemplate: Do not crash on multiple init_template calls · 94f32d1f
      Jean Felder authored
      init_template method is automatically called when a widget is
      created and it is not supposed to be called multiple times. That is
      why this method is turned into a no-op after its first call via a
      lambda function.
      
      init_template can still be called after a widget creation (and it is
      supposed to do nothing). However, a second call will result in a crash
      because the lambda function has a parameter while init_template is not
      supposed to have any parameter.
      
      This issue is fixed by removing the parameter of the lambda function.
      
      A new test is also added to assert that a second init_template call
      does nothing.
      94f32d1f
    • Jean Felder's avatar
      gtk overrides: Fix template hierarchy issue · b5013bf7
      Jean Felder authored
      When a widget is inside a template it is created through a
      g_object_new and does not have a python wrapper when
      pygobject__g_instance_init is called. In that case, a wrapper is
      created and the "__init__" method is called to instantiate it. Then,
      "init_template" is called to init its own template (if it exists).
      
      However, "init_template" needs to be called before the object
      constructor in order to create and instantiate all its children,
      signals and properties.
      
      This issue is fixed by calling init_template before the contructor if
      the python object has been created through g_object_new.
      
      A new test for the template hierarchy is added (based on an example
      from Marinus Schraal).
      
      Closes: #257, #386
      b5013bf7
    • Jean Felder's avatar
      gimodule: Remove trailing whitespaces · ad9cfa67
      Jean Felder authored
      ad9cfa67
    • Christoph Reiter's avatar
      NEWS: Add a note on how to handle keeping an old release for py2 around · bfa56b28
      Christoph Reiter authored
      This should help distros update to the new version even if they have
      to still support Python 2.
      
      If there are any open questions please add something in #392
      
      Fixes #392
      bfa56b28
    • Christoph Reiter's avatar
      Rename PYGLIB_DEFINE_TYPE to PYGI_DEFINE_TYPE · 721a0969
      Christoph Reiter authored
      This is a leftover from when things were split up
      721a0969
    • Christoph Reiter's avatar
      Remove PYGOBJECT_REGISTER_GTYPE · 9787959f
      Christoph Reiter authored
      Less macro magic
      9787959f
    • Christoph Reiter's avatar
      Remove PYGLIB_REGISTER_TYPE · 009cb45c
      Christoph Reiter authored
      Less macro magic
      009cb45c
    • Christoph Reiter's avatar
      Remove all Python 2 C code · f3cb9615
      Christoph Reiter authored
      f3cb9615
  3. 15 Apr, 2020 1 commit
  4. 17 Mar, 2020 1 commit
  5. 16 Mar, 2020 3 commits
  6. 14 Mar, 2020 1 commit
  7. 08 Mar, 2020 4 commits
  8. 21 Feb, 2020 1 commit
  9. 15 Feb, 2020 1 commit
  10. 25 Jan, 2020 1 commit
  11. 24 Jan, 2020 2 commits
  12. 21 Jan, 2020 1 commit
  13. 20 Jan, 2020 1 commit
  14. 30 Dec, 2019 1 commit
  15. 28 Dec, 2019 2 commits
  16. 27 Dec, 2019 2 commits
  17. 20 Dec, 2019 1 commit
  18. 17 Dec, 2019 1 commit
  19. 24 Nov, 2019 1 commit
  20. 16 Nov, 2019 1 commit
  21. 18 Oct, 2019 1 commit