Re: introspection vs gtk_init()
- Date: Sat, 29 Aug 2015 14:35:22 +0100
- From: Emmanuele Bassi <ebassi@xxxxxxxxx>
- Subject: Re: introspection vs gtk_init()
The issue was introduced by the fix for the bug:
I've reverted the commit from Matthias, since it broke the build, and
I'd also revert the commit from John Ralls, because it introduced a
regression: now everything that creates a class with a key binding
requires an open display connection — including building the GTK API
This is not really something that can be fixed with a GOnce, though;
installing key bindings happen in the class initialization all over
We could have something that defers the initialization of the actual
key binding until the widget is realized, i.e. when we know it has a
display connection available.
On 29 August 2015 at 14:01, Colin Walters <walters@xxxxxxxxxx> wrote:
> In https://git.gnome.org/browse/gtk+/commit/?id=6838861d26bfec9af53438022bd1f5b60bab3bf4
> I think we need to avoid get_type() functions requiring any explicit initialization or external resources; we definitely don't want to require an X server for builds that use introspection.
> See: https://bugzilla.gnome.org/show_bug.cgi?id=696457 for an earlier variant. A general pattern here is to break out initialization components into GOnce.
> gtk-devel-list mailing list
[@] ebassi [@gmail.com]
gtk-devel-list mailing list