summaryrefslogtreecommitdiff
path: root/deskutils/gdesklets/files/patch-sensor::Sensor.py
blob: 21804656d3b11bf831476708ceb70229860817e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Yay! Many thanks to Franz Klammer <klammer@webonaut.com>,
# the theads is now work. That make a lot of desklets work now.

--- sensor/Sensor.py.orig	Mon Nov 17 16:46:57 2003
+++ sensor/Sensor.py	Mon Nov 17 16:48:43 2003
@@ -134,6 +134,8 @@
     #
     def _add_thread(self, threadfunction, *args):
 
+        gtk.threads_init()
+
         # the thread should not start before setup is complete, therefore
         # we are using the GTK idle handler
         def run_thread(threadfunction, args):