[gtk+] Make accelmap initialization more forgiving
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make accelmap initialization more forgiving
- Date: Mon, 19 Dec 2011 18:01:32 +0000 (UTC)
commit f119c834c1770f183ef4722f82e9c120b3954474
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 3 19:35:27 2011 -0500
Make accelmap initialization more forgiving
gtk/gtkaccelmap.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkaccelmap.c b/gtk/gtkaccelmap.c
index 0c96cdc..efc06ba 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]