Commit 90d304fa authored by Bruno Coudoin's avatar Bruno Coudoin Committed by Bruno Coudoin

- 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
parent 4aa8c15a
......@@ -19,6 +19,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>
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment