[pitivi] call XInitThreads
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] call XInitThreads
- Date: Thu, 11 Jun 2015 09:15:32 +0000 (UTC)
commit 415d99ea5708d19cb7f7064c104d6328a4332f51
Author: Lubosz Sarnecki <lubosz gmail com>
Date: Tue Nov 11 18:54:14 2014 +0100
call XInitThreads
pitivi/application.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/application.py b/pitivi/application.py
index d8874d7..0898b94 100644
--- a/pitivi/application.py
+++ b/pitivi/application.py
@@ -24,6 +24,14 @@
import os
import time
+from ctypes import cdll
+
+try:
+ x11 = cdll.LoadLibrary('libX11.so')
+ x11.XInitThreads()
+except OSError:
+ pass
+
from gi.repository import GObject
from gi.repository import Gio
from gi.repository import Gtk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]