Skip to content

Conversation

@cal0pteryx
Copy link
Contributor

Migration guide: https://docs.gtk.org/girepository/migrating-gi.html

This requires pygobject > 3.50 to be installed.

Enums and Flags now use Python's enum types, see link

GObject.GEnum -> enum.IntEnum
GObject.GFlags -> enum.IntFlag

Results using the new GIRepository 3.0 generator compared to using the GIRepository 2.0 generator:

  • Spelling: no changes (whitespace only)
  • Adw: no changes (whitespace only)
  • GLib/GObject: a few methods have changes in their signatures, e.g. MainContext.query
  • Gtk 4: no changes (whitespace only)

Closes #213

TODOs:

  • more tests
  • investigate changed signatures

@cal0pteryx cal0pteryx marked this pull request as draft November 16, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate generator to GIRepository 3.0

1 participant