Skip to content

scheduler: fix introspection annotations

  • Replace scope async by notified, as the callback can be called multiple times
  • Properly document closure and destroy notification
  • Language bindings need the destroy notification to do their memory management magic, so remap gtk_source_scheduler_add_full() to the actually useless gtk_source_scheduler_add()

This fixes a Python issue where gtk_source_scheduler_add() segfaults when the callback returns True (=CONTINUE), while gtk_source_scheduler_add_full() works fine, despite both have the exact same public signature (ref), as the destroy is handled by PyGObject internally.

Merge request reports

Loading