don't call gtk.gdk/threads_init() under windows. Fixes #5020
This commit is contained in:
		
							parent
							
								
									1290a751e1
								
							
						
					
					
						commit
						c15f487deb
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -3529,7 +3529,10 @@ if __name__ == '__main__':
 | 
			
		|||
	Interface()
 | 
			
		||||
 | 
			
		||||
	try:
 | 
			
		||||
		gtk.gdk.threads_init()
 | 
			
		||||
		if os.name != 'nt':
 | 
			
		||||
			# This makes Gajim unusable under windows, and threads are used only
 | 
			
		||||
			# for GPG, so not under windows
 | 
			
		||||
			gtk.gdk.threads_init()
 | 
			
		||||
		gtk.main()
 | 
			
		||||
	except KeyboardInterrupt:
 | 
			
		||||
		print >> sys.stderr, 'KeyboardInterrupt'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue