summaryrefslogtreecommitdiff
path: root/graphics/mirage/files/patch-mirage.py
blob: 243324d416a3210dc36a683ece5ef85d2b548567 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- mirage.py.orig	2011-02-13 22:40:05 UTC
+++ mirage.py
@@ -71,7 +71,7 @@ class Base:
 
 	def __init__(self):
 		
-		gtk.gdk.threads_init()
+		#gtk.gdk.threads_init()
 		
 		# FIX THIS! Does not work on windows and what happens if mo-files exists
 		# in both dirs?
@@ -841,9 +841,7 @@ class Base:
 			self.thumbpane_bottom_coord_loaded = bottom_coord
 		# update images:
 		if not self.thumbpane_updating:
-			thread = threading.Thread(target=self.thumbpane_update_pending_images, args=(force_upto_imgnum, None))
-			thread.setDaemon(True)
-			thread.start()
+			self.thumbpane_update_pending_images(force_upto_imgnum, None)
 
 	def thumbpane_create_dir(self):
 		if not os.path.exists(os.path.expanduser('~/.thumbnails/')):
@@ -4579,6 +4577,6 @@ class Base:
 
 if __name__ == "__main__":
 	base = Base()
-	gtk.gdk.threads_enter()
+	#gtk.gdk.threads_enter()
 	base.main()
-	gtk.gdk.threads_leave()
+	#gtk.gdk.threads_leave()