diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-12-03 19:35:27 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-12-19 12:51:10 -0500 |
commit | f119c834c1770f183ef4722f82e9c120b3954474 (patch) | |
tree | e468485326e8336be762e06e9a6e54e4ac1dfc03 /gtk/gtkaccelmap.c | |
parent | 7ef340fb879f46efa1db267472712609818c0471 (diff) | |
download | gtk+-f119c834c1770f183ef4722f82e9c120b3954474.tar.gz |
Make accelmap initialization more forgiving
Diffstat (limited to 'gtk/gtkaccelmap.c')
-rw-r--r-- | gtk/gtkaccelmap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c index 0c96cdca74..efc06ba90a 100644 --- a/gtk/gtkaccelmap.c +++ b/gtk/gtkaccelmap.c @@ -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 |