[maemo-commits] [maemo-commits] r12260 - in projects/haf/trunk/hildon-thumbnail: . thumbs

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jun 12 22:02:33 EEST 2007
Author: tko
Date: 2007-06-12 22:02:20 +0300 (Tue, 12 Jun 2007)
New Revision: 12260

Modified:
   projects/haf/trunk/hildon-thumbnail/ChangeLog
   projects/haf/trunk/hildon-thumbnail/thumbs/thumber-common.c
Log:
Add missing g_thread_init() call

2007-06-12  Tommi Komulainen  <tommi.komulainen at nokia.com>

	* thumbs/thumber-common.c (hildon_thumber_main): Call g_thread_init()
	before g_type_init() or gnome_vfs_init() to avoid GSlice problems.


Modified: projects/haf/trunk/hildon-thumbnail/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-thumbnail/ChangeLog	2007-06-12 18:08:59 UTC (rev 12259)
+++ projects/haf/trunk/hildon-thumbnail/ChangeLog	2007-06-12 19:02:20 UTC (rev 12260)
@@ -1,3 +1,8 @@
+2007-06-12  Tommi Komulainen  <tommi.komulainen at nokia.com>
+
+	* thumbs/thumber-common.c (hildon_thumber_main): Call g_thread_init()
+	before g_type_init() or gnome_vfs_init() to avoid GSlice problems.
+
 2006-10-13  Marius Vollmer  <marius.vollmer at nokia.com>
 
 	Released 0.8-1.

Modified: projects/haf/trunk/hildon-thumbnail/thumbs/thumber-common.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/thumbs/thumber-common.c	2007-06-12 18:08:59 UTC (rev 12259)
+++ projects/haf/trunk/hildon-thumbnail/thumbs/thumber-common.c	2007-06-12 19:02:20 UTC (rev 12260)
@@ -82,6 +82,8 @@
     width = atoi(argv[5]);
     height = atoi(argv[6]);
 
+    if (!g_thread_supported ())
+      g_thread_init (NULL);
     g_type_init();
 
     gnome_vfs_init();


More information about the maemo-commits mailing list