Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
gcompris
Commits
0ce12615
Commit
0ce12615
authored
Aug 17, 2005
by
Yves Combe
Browse files
fix a bug in colors config combo_locales init.
parent
dcacdf73
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
0ce12615
2005-08-18 Yves Combe,,, <yves@ycombe.net>
fix a bug in colors config combo_locales init.
* src/boards/colors.c: (colors_config_start):
* src/gcompris/board_config.c: (gcompris_combo_locales):
2005-08-18 Yves Combe <yves@ycombe.net>
gcompris_change_locale and gcompris_reset_locale are usefull fonction to change locale easily in boards. colors uses it, and pythontest.
...
...
src/boards/colors.c
View file @
0ce12615
...
...
@@ -142,10 +142,12 @@ colors_config_start(GcomprisBoard *agcomprisBoard,
g_free
(
label
);
/* init the combo to previously saved value */
GHashTable
*
config
=
gcompris_get_board_conf
();
GHashTable
*
config
=
gcompris_get_conf
(
profile_conf
,
board_conf
);
gchar
*
locale
=
g_hash_table_lookup
(
config
,
"locale"
);
if
(
!
locale
)
locale
=
"NULL"
;
locale
=
g_strdup
(
"NULL"
)
;
/* Choose new value */
gcompris_combo_locales
(
"locale"
,
locale
);
...
...
src/gcompris/board_config.c
View file @
0ce12615
/* gcompris - board_config.c
*
* Time-stamp: <2005/08/18 0
0:53:22
yves>
* Time-stamp: <2005/08/18 0
1:42:58
yves>
*
* Copyright (C) 2001 Pascal Georges
*
...
...
@@ -557,8 +557,7 @@ GtkComboBox *gcompris_combo_locales(gchar *key, gchar *init)
strings
=
g_list_prepend
(
strings
,
_
(
"Default"
));
if
(
init
){
if
(
strcmp
(
init
,
"NULL"
)
!=
0
)
init_index
=
g_list_position
(
strings
,
g_list_find_custom
(
strings
,(
gconstpointer
)
init
,
(
GCompareFunc
)
my_strcmp
));
init_index
=
g_list_position
(
strings
,
g_list_find_custom
(
strings
,(
gconstpointer
)
init
,
(
GCompareFunc
)
my_strcmp
));
}
if
(
init_index
<
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment