[poppler] configure.ac glib/demo

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun May 25 10:17:17 PDT 2008


 configure.ac     |    4 ++--
 glib/demo/main.c |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

New commits:
commit f44c33344d4af31ee008826179bcd92db445f35a
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Sun May 25 19:16:12 2008 +0200

    [glib] Init glib threads in demo app as required by g_timer

diff --git a/configure.ac b/configure.ac
index 73054a5..0c97f30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -304,9 +304,9 @@ AC_ARG_ENABLE(gtk-test,
               enable_gtk_test=$enableval,
               enable_gtk_test="try")
 if test x$enable_gtk_test = xyes; then
-  PKG_CHECK_MODULES(GTK_TEST, gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libglade-2.0)
+  PKG_CHECK_MODULES(GTK_TEST, gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libglade-2.0 gthread-2.0)
 elif test x$enable_gtk_test = xtry; then
-  PKG_CHECK_MODULES(GTK_TEST, gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libglade-2.0,
+  PKG_CHECK_MODULES(GTK_TEST, gtk+-2.0 >= 2.8.0 gdk-pixbuf-2.0 libglade-2.0 gthread-2.0,
                     [enable_gtk_test="yes"],
                     [enable_gtk_test="no"])
 fi
diff --git a/glib/demo/main.c b/glib/demo/main.c
index 5701545..26e4c32 100644
--- a/glib/demo/main.c
+++ b/glib/demo/main.c
@@ -147,6 +147,10 @@ gint main (gint argc, gchar **argv)
 		return 1;
 	}
 
+	if (!g_thread_supported ())
+		g_thread_init (NULL);
+	
+
 	gtk_init (&argc, &argv);
 
 	if (g_ascii_strncasecmp (argv[1], "file://", strlen ("file://")) == 0) {


More information about the poppler mailing list