[gcompris/gcomprixogoo] - Fixed a crash case by Miguel in the configuration.



commit 90d304fa2d4483d113030829aef181c21d0aa29c
Author: Bruno Coudoin <bcoudoin src gnome org>
Date:   Thu Mar 12 20:48:59 2009 +0000

    	- Fixed a crash case by Miguel in the configuration.
    	  in a languge setting configuration of an activity
    	  if we change the language, gcompris crashes.
    
    svn path=/trunk/; revision=3769

 ChangeLog                         |   10 ++++++++++
 src/gcompris/board_config_combo.c |   11 +++++++++--
 2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 23e3995..dbfd3d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,16 @@
 
 
 
+2009-03-12  Bruno coudoin  <bruno coudoin free fr>
+
+	- From trunk
+	- Fixed a crash case by Miguel in the configuration.
+	  in a languge setting configuration of an activity
+	  if we change the language, gcompris crashes.
+
+	* src/gcompris/board_config_combo.c:
+	(gc_board_config_combo_locales_asset):
+
 2009-06-21  Bruno coudoin  <bruno coudoin free fr>
 
 	- From trunk
diff --git a/src/gcompris/board_config_combo.c b/src/gcompris/board_config_combo.c
index 7fe3e52..391675a 100644
--- a/src/gcompris/board_config_combo.c
+++ b/src/gcompris/board_config_combo.c
@@ -453,13 +453,20 @@ GtkComboBox *gc_board_config_combo_locales_asset(GcomprisBoardConf *config, cons
   gtk_combo_box_set_active (GTK_COMBO_BOX(combobox),
 			    init_index);
 
+  _gc_boardconf_key *u = g_malloc0(sizeof(_gc_boardconf_key));
+  u -> key = g_strdup("locale_sound");
+  u -> config = config;
+
+  g_signal_connect(G_OBJECT(combobox),
+		   "destroy",
+		   G_CALLBACK(_gc_destroy_boardconf_key),
+		   u);
   g_signal_connect(G_OBJECT(combobox),
 		   "changed",
 		   G_CALLBACK(gc_board_config_combo_locales_changed),
-		   "locale_sound");
+		   u);
 
   return GTK_COMBO_BOX(combobox);
-
 }
 
 static void



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