Make accelmap initialization more forgiving

This commit is contained in:
Matthias Clasen 2011-12-03 19:35:27 -05:00 committed by Ryan Lortie
parent 7ef340fb87
commit f119c834c1

View File

@ -179,9 +179,8 @@ accel_path_lookup (const gchar *accel_path)
void
_gtk_accel_map_init (void)
{
g_assert (accel_entry_ht == NULL);
accel_entry_ht = g_hash_table_new (accel_entry_hash, accel_entry_equal);
if (accel_entry_ht == NULL)
accel_entry_ht = g_hash_table_new (accel_entry_hash, accel_entry_equal);
}
gboolean