Re: introspection vs gtk_init()

The issue was introduced by the fix for the bug:

i.e. commit:

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
the place.

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 verbum org> wrote:

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: for an earlier variant.  A general pattern here is 
to break out initialization components into GOnce.

gtk-devel-list mailing list
gtk-devel-list gnome org

[ ] ebassi [ gmail com]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]