[sushi] main: init threads on startup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] main: init threads on startup
- Date: Wed, 20 Apr 2011 20:19:51 +0000 (UTC)
commit 57e67e7176c6f56555c680e9b64afc493a05ebe2
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 20 15:48:11 2011 -0400
main: init threads on startup
configure.ac | 1 +
src/main.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cf2cda2..5ef4cf5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,6 +57,7 @@ GDK_PIXBUF_MIN_VERSION=2.22.1
PKG_CHECK_MODULES(SUSHI,
glib-2.0 >= $GLIB_MIN_VERSION
+ gthread-2.0
gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_MIN_VERSION
gjs-1.0 >= $GJS_MIN_VERSION
gjs-dbus-1.0 >= $GJS_MIN_VERSION
diff --git a/src/main.c b/src/main.c
index bae9faf..a36236e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -114,6 +114,7 @@ main (int argc, char **argv)
GtkSettings *settings;
GError *error;
+ g_thread_init (NULL);
clutter_x11_set_use_argb_visual (TRUE);
gtk_clutter_init (&argc, &argv);
clutter_gst_init (0, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]