[cheese] Initialise X11 threading, bug 669845
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Initialise X11 threading, bug 669845
- Date: Sun, 19 Feb 2012 10:39:03 +0000 (UTC)
commit 70a6b8eabf0ae5829c5b465819b91e54e44543a4
Author: Gert Michael Kulyk <gkulyk klio>
Date: Sun Feb 19 01:08:38 2012 +0100
Initialise X11 threading, bug 669845
libcheese/cheese-gtk.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-gtk.c b/libcheese/cheese-gtk.c
index 78d02c3..f6f7715 100644
--- a/libcheese/cheese-gtk.c
+++ b/libcheese/cheese-gtk.c
@@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <gtk/gtk.h>
+#ifdef GDK_WINDOWING_X11
+ #include <X11/Xlib.h>
+#endif
#include <clutter-gtk/clutter-gtk.h>
#include "cheese-gtk.h"
@@ -47,6 +51,10 @@ cheese_gtk_init (int *argc, char ***argv)
{
ClutterInitError error;
+#ifdef GDK_WINDOWING_X11
+ XInitThreads ();
+#endif
+
error = gtk_clutter_init (argc, argv);
if (error != CLUTTER_INIT_SUCCESS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]