[gtk+] build: Do not call gtk_init()



commit b8f103bfaacd1c20e9786633c7b670ff317bce5e
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Aug 29 14:17:37 2015 +0100

    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 commit 15cc85db295b3d54f85c541b3c82d7b703c851c8 fully
    revert commit 6838861d26bfec9af53438022bd1f5b60bab3bf4.

 gtk/Makefile.am |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 5dcf1a5..4fd509c 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -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


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