[Commits] compose.c 1.382.2.615 1.382.2.616 prefs_account.c 1.105.2.177 1.105.2.178

colin at claws-mail.org colin at claws-mail.org
Fri Oct 12 12:29:02 CEST 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv10397/src

Modified Files:
      Tag: gtk2
	compose.c prefs_account.c 
Log Message:
2012-10-12 [colin]	3.8.1cvs93

	* src/compose.c
	* src/prefs_account.c
	* src/common/utils.c
	* src/common/utils.h
		Fix bug #2751 'g_mutex_new/g_mutex_free removed from GLib 2.32'
		Thanks to Salvatore de Paolis

Index: prefs_account.c
===================================================================
RCS file: /home/claws-mail/claws/src/prefs_account.c,v
retrieving revision 1.105.2.177
retrieving revision 1.105.2.178
diff -u -d -r1.105.2.177 -r1.105.2.178
--- prefs_account.c	19 Sep 2012 14:48:46 -0000	1.105.2.177
+++ prefs_account.c	12 Oct 2012 10:29:00 -0000	1.105.2.178
@@ -3368,7 +3368,7 @@
 	struct GetPassData pass_data;
 	/* do complicated stuff to be able to call GTK from the mainloop */
 	pass_data.cond = g_cond_new();
-	pass_data.mutex = g_mutex_new();
+	pass_data.mutex = cm_mutex_new();
 	pass_data.pass = (gchar **)source;
 
 	g_mutex_lock(pass_data.mutex);
@@ -3378,7 +3378,7 @@
 	g_cond_wait(pass_data.cond, pass_data.mutex);
 	g_cond_free(pass_data.cond);
 	g_mutex_unlock(pass_data.mutex);
-	g_mutex_free(pass_data.mutex);
+	cm_mutex_free(pass_data.mutex);
 
 	return TRUE;
 }

Index: compose.c
===================================================================
RCS file: /home/claws-mail/claws/src/compose.c,v
retrieving revision 1.382.2.615
retrieving revision 1.382.2.616
diff -u -d -r1.382.2.615 -r1.382.2.616
--- compose.c	10 Oct 2012 07:36:42 -0000	1.382.2.615
+++ compose.c	12 Oct 2012 10:28:59 -0000	1.382.2.616
@@ -7274,7 +7274,7 @@
 	compose->account = account;
 	compose->folder = folder;
 	
-	compose->mutex = g_mutex_new();
+	compose->mutex = cm_mutex_new();
 	compose->set_cursor_pos = -1;
 
 #if !(GTK_CHECK_VERSION(2,12,0))
@@ -8607,7 +8607,7 @@
 	gtk_widget_destroy(compose->window);
 	toolbar_destroy(compose->toolbar);
 	g_free(compose->toolbar);
-	g_mutex_free(compose->mutex);
+	cm_mutex_free(compose->mutex);
 	g_free(compose);
 }
 



More information about the Commits mailing list