[kupfer] core: Call gtk.gdk.threads_init()



commit 97fb77ece9312ad5dfe7239160806a2d083811b8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri May 14 18:30:59 2010 +0200

    core: Call gtk.gdk.threads_init()

 kupfer/core/data.py    |    1 -
 kupfer/core/sources.py |    5 +++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/core/data.py b/kupfer/core/data.py
index c4ee1e2..afb8cd1 100644
--- a/kupfer/core/data.py
+++ b/kupfer/core/data.py
@@ -5,7 +5,6 @@ import operator
 import os
 
 import gobject
-gobject.threads_init()
 
 from kupfer.obj import base, sources, compose
 from kupfer import pretty, scheduler
diff --git a/kupfer/core/sources.py b/kupfer/core/sources.py
index 8471e91..ac93773 100644
--- a/kupfer/core/sources.py
+++ b/kupfer/core/sources.py
@@ -10,6 +10,11 @@ import threading
 import time
 import weakref
 
+import glib
+import gtk
+glib.threads_init()
+gtk.gdk.threads_init()
+
 from kupfer import config, pretty, scheduler
 from kupfer import conspickle
 from kupfer.obj import base, sources



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