gcompris r3769 - in trunk: . src/gcompris



Author: bcoudoin
Date: Thu Mar 12 20:48:59 2009
New Revision: 3769
URL: http://svn.gnome.org/viewvc/gcompris?rev=3769&view=rev

Log:
	- Fixed a crash case by Miguel in the configuration.
	  in a languge setting configuration of an activity
	  if we change the language, gcompris crashes.



Modified:
   trunk/ChangeLog
   trunk/src/gcompris/board_config_combo.c

Modified: trunk/src/gcompris/board_config_combo.c
==============================================================================
--- trunk/src/gcompris/board_config_combo.c	(original)
+++ trunk/src/gcompris/board_config_combo.c	Thu Mar 12 20:48:59 2009
@@ -453,13 +453,20 @@
   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]