gcompris r3769 - in trunk: . src/gcompris
- From: bcoudoin svn gnome org
- To: svn-commits-list gnome org
- Subject: gcompris r3769 - in trunk: . src/gcompris
- Date: Thu, 12 Mar 2009 20:48:59 +0000 (UTC)
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]