Ticket #5676 enhancement closed fixed
Support gi.pygtkcompat in gi reactor
| Reported by: | itamar | Owned by: | itamar |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | jdahlin, jesstess | Branch: | branches/pygtkcompat-5676 |
| Author: | itamar | Launchpad Bug: |
Description
Newer versions of gi provide a compatibility layer for the older pygtk API. Currently, if pygtk has been loaded we don't allow loading gi reactor, since this is incompatible and cause segfaults. Likewise, once gi reactor is loaded we prevent imports of pygtk modules like gobject. However, if gi.pygtkcompat is available, we should instead:
- If we can figure out that pygtkcompat was enabled, don't prevent import of gi reactor even if we see pygtk loaded, since we know it's not actually the real pygtk.
- Enable the compatibility layer instead of preventing import of gobject and friends.
Change History
Note: See
TracTickets for help on using
tickets.
