build: Do not call gtk_init()
It needs to open a display connection, which is obviously going to fail miserably on any headless build machine. Instead, we need to find where we started requiring to initialize GTK when calling a get_type() function, and stop doing that. This commit and commit15cc85db29
fully revert commit6838861d26
.
This commit is contained in:
parent
15cc85db29
commit
b8f103bfaa
@ -1376,7 +1376,6 @@ Gtk-3.0.gir: $(INTROSPECTION_SCANNER) libgtk-3.la $(top_builddir)/gdk/Gdk-3.0.gi
|
||||
Gtk_3_0_gir_SCANNERFLAGS = \
|
||||
--warn-all \
|
||||
--add-include-path=$(top_builddir)/gdk \
|
||||
--add-init-section="gtk_init (NULL, NULL);" \
|
||||
--include-uninstalled=$(top_builddir)/gdk/Gdk-3.0.gir
|
||||
Gtk_3_0_gir_INCLUDES = Atk-1.0
|
||||
if USE_X11
|
||||
|
Loading…
Reference in New Issue
Block a user