[anjal] Init GThread if not done.



commit 71ce9bb1a857da9165948060835e1ac2859e6d3c
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Mon Mar 23 14:08:29 2009 +0530

    Init GThread if not done.
---
 src/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main.c b/src/main.c
index be25ec2..b51d37f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -58,7 +58,8 @@ main (int argc, char *argv[])
 	e_cursors_init ();
 	e_icon_factory_init ();
 	e_passwords_init();
-	g_thread_init (NULL);
+	if (!g_thread_supported ()) 
+		g_thread_init (NULL);
 	mail_msg_init ();
 	gnome_sound_init ("localhost");
 



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