mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
Merge pull request #36 from dajohi/g_tree_foreach
Replace deprecated g_tree_traverse with g_tree_foreach.
This commit is contained in:
commit
1545e01447
@ -374,8 +374,8 @@ static void key_states_rescan(void)
|
|||||||
|
|
||||||
memset(used_keys, 0, sizeof(used_keys));
|
memset(used_keys, 0, sizeof(used_keys));
|
||||||
|
|
||||||
g_tree_traverse(key_states, (GTraverseFunc) key_state_destroy,
|
g_tree_foreach(key_states, (GTraverseFunc) key_state_destroy,
|
||||||
G_IN_ORDER, NULL);
|
NULL);
|
||||||
g_tree_destroy(key_states);
|
g_tree_destroy(key_states);
|
||||||
key_states = g_tree_new((GCompareFunc) strcmp);
|
key_states = g_tree_new((GCompareFunc) strcmp);
|
||||||
|
|
||||||
@ -884,8 +884,8 @@ void keyboard_deinit(void)
|
|||||||
g_hash_table_destroy(keys);
|
g_hash_table_destroy(keys);
|
||||||
g_hash_table_destroy(default_keys);
|
g_hash_table_destroy(default_keys);
|
||||||
|
|
||||||
g_tree_traverse(key_states, (GTraverseFunc) key_state_destroy,
|
g_tree_foreach(key_states, (GTraverseFunc) key_state_destroy,
|
||||||
G_IN_ORDER, NULL);
|
NULL);
|
||||||
g_tree_destroy(key_states);
|
g_tree_destroy(key_states);
|
||||||
|
|
||||||
signal_remove("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);
|
signal_remove("irssi init read settings", (SIGNAL_FUNC) read_keyboard_config);
|
||||||
|
Loading…
Reference in New Issue
Block a user