[maemo-commits] [maemo-commits] r12258 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jun 12 21:00:03 EEST 2007
Author: moimart
Date: 2007-06-12 20:59:51 +0300 (Tue, 12 Jun 2007)
New Revision: 12258

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/main.c
Log:
2007-06-12  Moises Martinez  <moises.martinez at nokia.com

        * src/main.c: Fixed problem with thread initialization with glib.
        Pointed out by Tommi.
	* ChangeLog updated.



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-12 16:10:30 UTC (rev 12257)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-12 17:59:51 UTC (rev 12258)
@@ -1,3 +1,8 @@
+2007-06-12  Moises Martinez  <moises.martinez at nokia.com
+
+	* src/main.c: Fixed problem with thread initialization with glib.
+	Pointed out by Tommi.
+
 2007-06-12  Johan Bilien  <johan.bilien at nokia.com>
 
 	* libhildondesktop/hildon-home-area.c:

Modified: projects/haf/trunk/hildon-desktop/src/main.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/main.c	2007-06-12 16:10:30 UTC (rev 12257)
+++ projects/haf/trunk/hildon-desktop/src/main.c	2007-06-12 17:59:51 UTC (rev 12258)
@@ -42,6 +42,10 @@
   GObject *desktop;
   gchar *gtkrc = NULL;
 
+  g_thread_init (NULL);
+  gdk_threads_init ();
+  gdk_threads_enter ();
+
   setlocale (LC_ALL, "");
 
   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
@@ -81,6 +85,7 @@
   hd_desktop_run (HD_DESKTOP (desktop));
 
   gtk_main ();
+  gdk_threads_leave ();
 
   return 0;
 }


More information about the maemo-commits mailing list