Make accelmap initialization more forgiving
This commit is contained in:

committed by
Ryan Lortie

parent
7ef340fb87
commit
f119c834c1
@ -179,8 +179,7 @@ accel_path_lookup (const gchar *accel_path)
|
|||||||
void
|
void
|
||||||
_gtk_accel_map_init (void)
|
_gtk_accel_map_init (void)
|
||||||
{
|
{
|
||||||
g_assert (accel_entry_ht == NULL);
|
if (accel_entry_ht == NULL)
|
||||||
|
|
||||||
accel_entry_ht = g_hash_table_new (accel_entry_hash, accel_entry_equal);
|
accel_entry_ht = g_hash_table_new (accel_entry_hash, accel_entry_equal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user